[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp SelectionDAGPrinter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Aug 17 20:31:13 PDT 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAG.cpp updated: 1.147 -> 1.148
SelectionDAGPrinter.cpp updated: 1.20 -> 1.21
---
Log message:
Fix printing of VTSDNodes
---
Diffs of the changes: (+5 -0)
SelectionDAG.cpp | 3 +++
SelectionDAGPrinter.cpp | 2 ++
2 files changed, 5 insertions(+)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.147 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.148
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.147 Wed Aug 17 15:08:02 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Wed Aug 17 22:31:02 2005
@@ -1891,6 +1891,7 @@
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 @@
std::cerr << "<" << M->getValue() << ":" << M->getOffset() << ">";
else
std::cerr << "<null:" << M->getOffset() << ">";
+ } else if (const VTSDNode *N = dyn_cast<VTSDNode>(this)) {
+ std::cerr << ":" << getValueTypeString(N->getVT());
}
}
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.20 llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.21
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.20 Tue Aug 16 16:55:35 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp Wed Aug 17 22:31:02 2005
@@ -82,6 +82,8 @@
Op += "<" + M->getValue()->getName() + ":" + itostr(M->getOffset()) + ">";
else
Op += "<null:" + itostr(M->getOffset()) + ">";
+ } else if (const VTSDNode *N = dyn_cast<VTSDNode>(Node)) {
+ std::cerr << ":" << getValueTypeString(N->getVT());
}
return Op;
}
More information about the llvm-commits
mailing list