[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
Evan Cheng
evan.cheng at apple.com
Tue Oct 17 14:18:40 PDT 2006
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAGPrinter.cpp updated: 1.39 -> 1.40
---
Log message:
Fix printer for StoreSDNode.
---
Diffs of the changes: (+5 -4)
SelectionDAGPrinter.cpp | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.39 llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.40
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.39 Tue Oct 17 14:33:52 2006
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp Tue Oct 17 16:18:26 2006
@@ -148,10 +148,11 @@
if (doExt)
Op = Op + MVT::getValueTypeString(LD->getLoadedVT()) + ">";
- if (LD->getAddressingMode() == ISD::PRE_INDEXED)
- Op = Op + "<pre>";
- else if (LD->getAddressingMode() == ISD::POST_INDEXED)
- Op = Op + "<post>";
+ Op += LD->getAddressingModeName(LD->getAddressingMode());
+ } else if (const StoreSDNode *ST = dyn_cast<StoreSDNode>(Node)) {
+ if (ST->isTruncatingStore())
+ Op = Op + "<trunc " + MVT::getValueTypeString(ST->getStoredVT()) + ">";
+ Op += ST->getAddressingModeName(ST->getAddressingMode());
}
return Op;
More information about the llvm-commits
mailing list