summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MIRPrinter.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2015-08-06 16:55:53 +0000
committerAlex Lorenz <arphaman@gmail.com>2015-08-06 16:55:53 +0000
commitdc8de2a6b78c4f2d96c7a825a7b61faba3b834b0 (patch)
treecfd03deee65e241fb2790c7b24e697072890b44d /llvm/lib/CodeGen/MIRPrinter.cpp
parentbd753c93157a40a4d99327d544f382dd1828f492 (diff)
downloadbcm5719-llvm-dc8de2a6b78c4f2d96c7a825a7b61faba3b834b0.tar.gz
bcm5719-llvm-dc8de2a6b78c4f2d96c7a825a7b61faba3b834b0.zip
MIR Serialization: Serialize the 'invariant' machine memory operand flag.
llvm-svn: 244230
Diffstat (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/MIRPrinter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp
index c84cec9ed2e..cc131bc4641 100644
--- a/llvm/lib/CodeGen/MIRPrinter.cpp
+++ b/llvm/lib/CodeGen/MIRPrinter.cpp
@@ -652,11 +652,13 @@ void MIPrinter::print(const MachineOperand &Op, const TargetRegisterInfo *TRI) {
void MIPrinter::print(const MachineMemOperand &Op) {
OS << '(';
- // TODO: Print operand's other flags.
+ // TODO: Print operand's target specific flags.
if (Op.isVolatile())
OS << "volatile ";
if (Op.isNonTemporal())
OS << "non-temporal ";
+ if (Op.isInvariant())
+ OS << "invariant ";
if (Op.isLoad())
OS << "load ";
else {
OpenPOWER on IntegriCloud