summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorMichael Berg <michael_c_berg@apple.com>2018-09-11 21:35:32 +0000
committerMichael Berg <michael_c_berg@apple.com>2018-09-11 21:35:32 +0000
commitc72a7259bee5779f8627bbf464f53c0c993274e0 (patch)
tree731d1d510cff1301c6f8f3e82132a435fe99c39f /llvm/lib/CodeGen/MachineInstr.cpp
parentf0d7daa972a136d4e1dd1869d4908f3eef331d10 (diff)
downloadbcm5719-llvm-c72a7259bee5779f8627bbf464f53c0c993274e0.tar.gz
bcm5719-llvm-c72a7259bee5779f8627bbf464f53c0c993274e0.zip
add IR flags to MI
Summary: Initial support for nsw, nuw and exact flags in MI Reviewers: spatel, hfinkel, wristow Reviewed By: spatel Subscribers: nlopes Differential Revision: https://reviews.llvm.org/D51738 llvm-svn: 341996
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 4c0d53ce9aa..37e23aee000 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -1479,6 +1479,12 @@ void MachineInstr::print(raw_ostream &OS, ModuleSlotTracker &MST,
OS << "afn ";
if (getFlag(MachineInstr::FmReassoc))
OS << "reassoc ";
+ if (getFlag(MachineInstr::NoUWrap))
+ OS << "nuw ";
+ if (getFlag(MachineInstr::NoSWrap))
+ OS << "nsw ";
+ if (getFlag(MachineInstr::IsExact))
+ OS << "exact ";
// Print the opcode name.
if (TII)
OpenPOWER on IntegriCloud