summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorMichael Berg <michael_c_berg@apple.com>2018-05-03 00:07:56 +0000
committerMichael Berg <michael_c_berg@apple.com>2018-05-03 00:07:56 +0000
commit7d1b25d0538f52931b0b12d781fe8c1487b01010 (patch)
tree037b8a0dcc4d0b81f56caeb70d7c4f94c84a8321 /llvm/lib/CodeGen/MachineInstr.cpp
parent01e2e79abf0a69d4e041a87463ccd0afc27b603a (diff)
downloadbcm5719-llvm-7d1b25d0538f52931b0b12d781fe8c1487b01010.tar.gz
bcm5719-llvm-7d1b25d0538f52931b0b12d781fe8c1487b01010.zip
MachineInst support mapping SDNode fast math flags for support in Back End code generation
Summary: Machine Instruction flags for fast math support and MIR print support Reviewers: spatel, arsenm Reviewed By: arsenm Subscribers: wdng Differential Revision: https://reviews.llvm.org/D45781 llvm-svn: 331417
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 572404b8c96..0f466e4b2d1 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -1302,6 +1302,20 @@ void MachineInstr::print(raw_ostream &OS, ModuleSlotTracker &MST,
OS << "frame-setup ";
if (getFlag(MachineInstr::FrameDestroy))
OS << "frame-destroy ";
+ if (getFlag(MachineInstr::FmNoNans))
+ OS << "nnan ";
+ if (getFlag(MachineInstr::FmNoInfs))
+ OS << "ninf ";
+ if (getFlag(MachineInstr::FmNsz))
+ OS << "nsz ";
+ if (getFlag(MachineInstr::FmArcp))
+ OS << "arcp ";
+ if (getFlag(MachineInstr::FmContract))
+ OS << "contract ";
+ if (getFlag(MachineInstr::FmAfn))
+ OS << "afn ";
+ if (getFlag(MachineInstr::FmReassoc))
+ OS << "reassoc ";
// Print the opcode name.
if (TII)
OpenPOWER on IntegriCloud