summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-15 21:11:37 +0000
committerChris Lattner <sabre@nondot.org>2005-01-15 21:11:37 +0000
commit630d1937bf2625771f6f2fc76fdeeb2e065a60d0 (patch)
tree7c1962f21ed91ec86a287b11fee1360f77e0bf7e /llvm/lib/CodeGen
parenta2071f124727089595f40566a49541156a6b91bc (diff)
downloadbcm5719-llvm-630d1937bf2625771f6f2fc76fdeeb2e065a60d0.tar.gz
bcm5719-llvm-630d1937bf2625771f6f2fc76fdeeb2e065a60d0.zip
Print extra type for nodes with extra type info.
llvm-svn: 19575
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 52cef5b89ce..89c53e8c1ba 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -1123,6 +1123,8 @@ void SDNode::dump() const {
} else if (const ExternalSymbolSDNode *ES =
dyn_cast<ExternalSymbolSDNode>(this)) {
std::cerr << "'" << ES->getSymbol() << "'";
+ } else if (const MVTSDNode *M = dyn_cast<MVTSDNode>(this)) {
+ std::cerr << " - Ty = " << MVT::getValueTypeString(M->getExtraValueType());
}
}
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
index f398568130d..00f86577562 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
@@ -90,6 +90,8 @@ std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node,
} else if (const ExternalSymbolSDNode *ES =
dyn_cast<ExternalSymbolSDNode>(Node)) {
Op += "'" + std::string(ES->getSymbol()) + "'";
+ } else if (const MVTSDNode *M = dyn_cast<MVTSDNode>(Node)) {
+ Op = Op + "ty=" + MVT::getValueTypeString(M->getExtraValueType());
}
return Op;
}
OpenPOWER on IntegriCloud