forked from OSchip/llvm-project
[MIR] Print the type of generic machine instructions.
llvm-svn: 262880
This commit is contained in:
parent
851996778f
commit
12350a8e13
|
@ -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 << ' ';
|
||||
|
||||
|
|
|
@ -13,6 +13,6 @@ registers:
|
|||
body: |
|
||||
bb.0.entry:
|
||||
liveins: %edi
|
||||
; CHECK: %0(32) = G_ADD %edi
|
||||
; CHECK: %0(32) = G_ADD i32 %edi
|
||||
%0(32) = G_ADD i32 %edi, %edi
|
||||
...
|
||||
|
|
Loading…
Reference in New Issue