[llvm-commits] [llvm] r127824 - in /llvm/trunk: test/Assembler/comment.ll tools/llvm-dis/llvm-dis.cpp
Stuart Hastings
stuart at apple.com
Thu Mar 17 12:50:04 PDT 2011
Author: stuart
Date: Thu Mar 17 14:50:04 2011
New Revision: 127824
URL: http://llvm.org/viewvc/llvm-project?rev=127824&view=rev
Log:
Reapply: Add type output to llvm-dis annotations. Patch by Yuri!
Modified:
llvm/trunk/test/Assembler/comment.ll
llvm/trunk/tools/llvm-dis/llvm-dis.cpp
Modified: llvm/trunk/test/Assembler/comment.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/comment.ll?rev=127824&r1=127823&r2=127824&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/comment.ll (original)
+++ llvm/trunk/test/Assembler/comment.ll Thu Mar 17 14:50:04 2011
@@ -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 @@
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>]
Modified: llvm/trunk/tools/llvm-dis/llvm-dis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-dis/llvm-dis.cpp?rev=127824&r1=127823&r2=127824&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-dis/llvm-dis.cpp (original)
+++ llvm/trunk/tools/llvm-dis/llvm-dis.cpp Thu Mar 17 14:50:04 2011
@@ -74,7 +74,7 @@
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();
More information about the llvm-commits
mailing list