diff options
author | Nikita Popov <npopov@redhat.com> | 2023-03-07 14:57:06 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2023-03-07 15:10:56 +0100 |
commit | ffe8f47d7237cf5767f0424708670af64ba0702d (patch) | |
tree | d45f8880de6f32582bab12ccd89f992a066fa201 /llvm/lib/CodeGen/MachineOperand.cpp | |
parent | dbe6894ac634b96b4156c6becd0825be6e9639ab (diff) | |
download | llvm-ffe8f47d7237cf5767f0424708670af64ba0702d.zip llvm-ffe8f47d7237cf5767f0424708670af64ba0702d.tar.gz llvm-ffe8f47d7237cf5767f0424708670af64ba0702d.tar.bz2 |
[IR] Add operator<< overload for CmpInst::Predicate (NFC)
I regularly try and fail to use this while debugging.
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineOperand.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineOperand.cpp b/llvm/lib/CodeGen/MachineOperand.cpp index 1178a93..5a43f69 100644 --- a/llvm/lib/CodeGen/MachineOperand.cpp +++ b/llvm/lib/CodeGen/MachineOperand.cpp @@ -991,7 +991,7 @@ void MachineOperand::print(raw_ostream &OS, ModuleSlotTracker &MST, case MachineOperand::MO_Predicate: { auto Pred = static_cast<CmpInst::Predicate>(getPredicate()); OS << (CmpInst::isIntPredicate(Pred) ? "int" : "float") << "pred(" - << CmpInst::getPredicateName(Pred) << ')'; + << Pred << ')'; break; } case MachineOperand::MO_ShuffleMask: |