diff options
author | Thorsten Schütt <schuett@gmail.com> | 2024-10-30 16:34:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-30 16:34:01 +0100 |
commit | 72b115301d1c0d56f40f5030bb8d16f422ac211b (patch) | |
tree | 92c6cc67c1485b1da10ceed1e637e38ac83e287c /llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp | |
parent | 475e736bb5eeea8ec70aca51d1a3d98179c69530 (diff) | |
download | llvm-72b115301d1c0d56f40f5030bb8d16f422ac211b.zip llvm-72b115301d1c0d56f40f5030bb8d16f422ac211b.tar.gz llvm-72b115301d1c0d56f40f5030bb8d16f422ac211b.tar.bz2 |
[GlobalISel] Import samesign flag (#113090)
Credits: https://github.com/llvm/llvm-project/pull/111419
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp')
-rw-r--r-- | llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp b/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp index 59f2fc6..15b9164 100644 --- a/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp +++ b/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp @@ -898,8 +898,9 @@ MachineIRBuilder::buildFPTrunc(const DstOp &Res, const SrcOp &Op, MachineInstrBuilder MachineIRBuilder::buildICmp(CmpInst::Predicate Pred, const DstOp &Res, const SrcOp &Op0, - const SrcOp &Op1) { - return buildInstr(TargetOpcode::G_ICMP, Res, {Pred, Op0, Op1}); + const SrcOp &Op1, + std::optional<unsigned> Flags) { + return buildInstr(TargetOpcode::G_ICMP, Res, {Pred, Op0, Op1}, Flags); } MachineInstrBuilder MachineIRBuilder::buildFCmp(CmpInst::Predicate Pred, |