Print extra type for nodes with extra type info.
authorChris Lattner <sabre@nondot.org>
Sat, 15 Jan 2005 21:11:37 +0000 (21:11 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 15 Jan 2005 21:11:37 +0000 (21:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19575 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp

index 52cef5b89ceb8932d536b94025fe72d95093a0fe..89c53e8c1ba6a4c9444175481a68c23437cefe91 100644 (file)
@@ -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());
   }
 }
 
index f398568130d6751809ed9cfeeb99e59ad6bde032..00f865775622661328f28f139435d3a36ae2649c 100644 (file)
@@ -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;
 }