From 7bea038b3e24772b1a89634836aa79cb99c68bd9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 26 Jun 2009 05:55:43 +0000 Subject: [PATCH] dot graph viewing is apparently not using SDNode::print_details, this is bad, but in the meantime lets print targetflags on node labels. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74274 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index 5a7b3fd75dc..f3ac22ea88d 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -138,10 +138,15 @@ std::string DOTGraphTraits::getNodeLabel(const SDNode *Node, else Op += itostr(Offset); } + if (unsigned char TF = GADN->getTargetFlags()) + Op += " [TF=" + utostr(TF) + "]"; + } else if (const FrameIndexSDNode *FIDN = dyn_cast(Node)) { Op += " " + itostr(FIDN->getIndex()); } else if (const JumpTableSDNode *JTDN = dyn_cast(Node)) { Op += " " + itostr(JTDN->getIndex()); + if (unsigned char TF = JTDN->getTargetFlags()) + Op += " [TF=" + utostr(TF) + "]"; } else if (const ConstantPoolSDNode *CP = dyn_cast(Node)){ if (CP->isMachineConstantPoolEntry()) { Op += '<'; @@ -165,6 +170,8 @@ std::string DOTGraphTraits::getNodeLabel(const SDNode *Node, } } Op += " A=" + itostr(CP->getAlignment()); + if (unsigned char TF = CP->getTargetFlags()) + Op += " TF=" + utostr(TF); } else if (const BasicBlockSDNode *BBDN = dyn_cast(Node)) { Op = "BB: "; const Value *LBB = (const Value*)BBDN->getBasicBlock()->getBasicBlock();