mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-27 13:20:29 +00:00
Reapply: Add type output to llvm-dis annotations. Patch by Yuri!
llvm-svn: 127824
This commit is contained in:
parent
6bad79b514
commit
ab87d41b43
@ -7,7 +7,7 @@
|
||||
; BARE: }
|
||||
|
||||
@B = external global i32
|
||||
; ANNOT: @B = external global i32 ; [#uses=0]
|
||||
; ANNOT: @B = external global i32 ; [#uses=0 type=i32*]
|
||||
|
||||
define <4 x i1> @foo(<4 x float> %a, <4 x float> %b) nounwind {
|
||||
entry:
|
||||
@ -15,6 +15,5 @@ entry:
|
||||
ret <4 x i1> %cmp
|
||||
}
|
||||
|
||||
; ANNOT: %cmp = fcmp olt <4 x float> %a, %b ; [#uses=1]
|
||||
|
||||
; ANNOT: %cmp = fcmp olt <4 x float> %a, %b ; [#uses=1 type=<4 x i1>]
|
||||
|
||||
|
@ -74,7 +74,7 @@ public:
|
||||
if (!V.getType()->isVoidTy()) {
|
||||
OS.PadToColumn(50);
|
||||
Padded = true;
|
||||
OS << "; [#uses=" << V.getNumUses() << ']'; // Output # uses
|
||||
OS << "; [#uses=" << V.getNumUses() << " type=" << V.getType()->getDescription() << "]"; // Output # uses and type
|
||||
}
|
||||
if (const Instruction *I = dyn_cast<Instruction>(&V)) {
|
||||
const DebugLoc &DL = I->getDebugLoc();
|
||||
|
Loading…
Reference in New Issue
Block a user