[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp SelectionDAGPrinter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Jan 15 13:11:52 PST 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAG.cpp updated: 1.34 -> 1.35
SelectionDAGPrinter.cpp updated: 1.6 -> 1.7
---
Log message:
Print extra type for nodes with extra type info.
---
Diffs of the changes: (+4 -0)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.34 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.35
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.34 Sat Jan 15 01:14:32 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Sat Jan 15 15:11:37 2005
@@ -1123,6 +1123,8 @@
} 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: llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.6 llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.7
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.6 Thu Jan 13 14:49:43 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp Sat Jan 15 15:11:37 2005
@@ -90,6 +90,8 @@
} 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;
}
More information about the llvm-commits
mailing list