[llvm-commits] [llvm] r74274 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
Chris Lattner
sabre at nondot.org
Thu Jun 25 22:55:44 PDT 2009
Author: lattner
Date: Fri Jun 26 00:55:43 2009
New Revision: 74274
URL: http://llvm.org/viewvc/llvm-project?rev=74274&view=rev
Log:
dot graph viewing is apparently not using SDNode::print_details, this is bad,
but in the meantime lets print targetflags on node labels.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp?rev=74274&r1=74273&r2=74274&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp Fri Jun 26 00:55:43 2009
@@ -138,10 +138,15 @@
else
Op += itostr(Offset);
}
+ if (unsigned char TF = GADN->getTargetFlags())
+ Op += " [TF=" + utostr(TF) + "]";
+
} else if (const FrameIndexSDNode *FIDN = dyn_cast<FrameIndexSDNode>(Node)) {
Op += " " + itostr(FIDN->getIndex());
} else if (const JumpTableSDNode *JTDN = dyn_cast<JumpTableSDNode>(Node)) {
Op += " " + itostr(JTDN->getIndex());
+ if (unsigned char TF = JTDN->getTargetFlags())
+ Op += " [TF=" + utostr(TF) + "]";
} else if (const ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(Node)){
if (CP->isMachineConstantPoolEntry()) {
Op += '<';
@@ -165,6 +170,8 @@
}
}
Op += " A=" + itostr(CP->getAlignment());
+ if (unsigned char TF = CP->getTargetFlags())
+ Op += " TF=" + utostr(TF);
} else if (const BasicBlockSDNode *BBDN = dyn_cast<BasicBlockSDNode>(Node)) {
Op = "BB: ";
const Value *LBB = (const Value*)BBDN->getBasicBlock()->getBasicBlock();
More information about the llvm-commits
mailing list