summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2016-03-08 00:29:15 +0000
committerQuentin Colombet <qcolombet@apple.com>2016-03-08 00:29:15 +0000
commit12350a8e133caefd43d1bc1d18baa66ba5202a3d (patch)
tree774426855a739a0d7c10acec40d4db56673e1ef7 /llvm/lib
parent851996778f87ec30a67a8e24e02b2f815aabb74d (diff)
downloadbcm5719-llvm-12350a8e133caefd43d1bc1d18baa66ba5202a3d.tar.gz
bcm5719-llvm-12350a8e133caefd43d1bc1d18baa66ba5202a3d.zip
[MIR] Print the type of generic machine instructions.
llvm-svn: 262880
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/MIRPrinter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp
index fa336c5edad..6c3c63f919a 100644
--- a/llvm/lib/CodeGen/MIRPrinter.cpp
+++ b/llvm/lib/CodeGen/MIRPrinter.cpp
@@ -552,6 +552,10 @@ void MIPrinter::print(const MachineInstr &MI) {
if (MI.getFlag(MachineInstr::FrameSetup))
OS << "frame-setup ";
OS << TII->getName(MI.getOpcode());
+ if (isPreISelGenericOpcode(MI.getOpcode())) {
+ assert(MI.getType() && "Generic instructions must have a type");
+ OS << ' ' << *MI.getType();
+ }
if (I < E)
OS << ' ';
OpenPOWER on IntegriCloud