summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MIRPrinter.cpp
diff options
context:
space:
mode:
authorDaniel Sanders <daniel_l_sanders@apple.com>2017-03-14 21:32:08 +0000
committerDaniel Sanders <daniel_l_sanders@apple.com>2017-03-14 21:32:08 +0000
commit8a4bae99937c003eb9c7a3be1f16c54cab1c0c80 (patch)
treeed98a7ce243a33e0198d7c7d48cbe3586b529cb9 /llvm/lib/CodeGen/MIRPrinter.cpp
parenta43a2993821ea229128b579e48e6cc2865c98a45 (diff)
downloadbcm5719-llvm-8a4bae99937c003eb9c7a3be1f16c54cab1c0c80.tar.gz
bcm5719-llvm-8a4bae99937c003eb9c7a3be1f16c54cab1c0c80.zip
[globalisel][tblgen] Add support for ComplexPatterns
Summary: Adds a new kind of MachineOperand: MO_Placeholder. This operand must not appear in the MIR and only exists as a way of creating an 'uninitialized' operand until a matcher function overwrites it. Depends on D30046, D29712 Reviewers: t.p.northover, ab, rovka, aditya_nandakumar, javed.absar, qcolombet Reviewed By: qcolombet Subscribers: dberris, kristof.beyls, llvm-commits Differential Revision: https://reviews.llvm.org/D30089 llvm-svn: 297782
Diffstat (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/MIRPrinter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp
index 469844666ec..899973488bb 100644
--- a/llvm/lib/CodeGen/MIRPrinter.cpp
+++ b/llvm/lib/CodeGen/MIRPrinter.cpp
@@ -906,6 +906,9 @@ void MIPrinter::print(const MachineOperand &Op, const TargetRegisterInfo *TRI,
<< CmpInst::getPredicateName(Pred) << ')';
break;
}
+ case MachineOperand::MO_Placeholder:
+ OS << "<placeholder>";
+ break;
}
}
OpenPOWER on IntegriCloud