[MIR] Teach the printer how to print complex types for generic machine instructions.
authorQuentin Colombet <qcolombet@apple.com>
Tue, 8 Mar 2016 00:38:01 +0000 (00:38 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Tue, 8 Mar 2016 00:38:01 +0000 (00:38 +0000)
commitd655483944a00f0dec07113a0ff8605a7806dc26
tree93135f42e98498f85d751500f4eb32dc768dbb5d
parentdafed5d7d82613ca153c1bee70addb17d6d20c3a
[MIR] Teach the printer how to print complex types for generic machine instructions.

Before this change, we would get the type definition in the middle
of the instruction.
E.g., %0(48) = G_ADD %struct_alias = type { i32, i16 } %edi, %edi

Now, we have just the expected type name:
%0(48) = G_ADD %struct_alias %edi, %edi

llvm-svn: 262885
llvm/lib/CodeGen/MIRPrinter.cpp