diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index cb682c14658d..f413010185bf 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1891,6 +1891,7 @@ const char *SDNode::getOperationName(const SelectionDAG *G) const { case ISD::PCMARKER: return "PCMarker"; case ISD::SRCVALUE: return "SrcValue"; + case ISD::VALUETYPE: return "ValueType"; case ISD::EntryToken: return "EntryToken"; case ISD::TokenFactor: return "TokenFactor"; case ISD::Constant: return "Constant"; @@ -2070,6 +2071,8 @@ void SDNode::dump(const SelectionDAG *G) const { std::cerr << "<" << M->getValue() << ":" << M->getOffset() << ">"; else std::cerr << "getOffset() << ">"; + } else if (const VTSDNode *N = dyn_cast(this)) { + std::cerr << ":" << getValueTypeString(N->getVT()); } } diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index 20cec1f11d8e..2a51d203fe1f 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -82,6 +82,8 @@ std::string DOTGraphTraits::getNodeLabel(const SDNode *Node, Op += "<" + M->getValue()->getName() + ":" + itostr(M->getOffset()) + ">"; else Op += "getOffset()) + ">"; + } else if (const VTSDNode *N = dyn_cast(Node)) { + std::cerr << ":" << getValueTypeString(N->getVT()); } return Op; }