From: Chris Lattner Date: Sat, 15 Jan 2005 21:11:37 +0000 (+0000) Subject: Print extra type for nodes with extra type info. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8a389bb37603fa99a980475a4f5cdc27fa4014f1;p=oota-llvm.git Print extra type for nodes with extra type info. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19575 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 52cef5b89ce..89c53e8c1ba 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1123,6 +1123,8 @@ void SDNode::dump() const { } else if (const ExternalSymbolSDNode *ES = dyn_cast(this)) { std::cerr << "'" << ES->getSymbol() << "'"; + } else if (const MVTSDNode *M = dyn_cast(this)) { + std::cerr << " - Ty = " << MVT::getValueTypeString(M->getExtraValueType()); } } diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index f398568130d..00f86577562 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -90,6 +90,8 @@ std::string DOTGraphTraits::getNodeLabel(const SDNode *Node, } else if (const ExternalSymbolSDNode *ES = dyn_cast(Node)) { Op += "'" + std::string(ES->getSymbol()) + "'"; + } else if (const MVTSDNode *M = dyn_cast(Node)) { + Op = Op + "ty=" + MVT::getValueTypeString(M->getExtraValueType()); } return Op; }