Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAGPrinter.cpp updated: 1.36 -> 1.37 --- Log message: Also update getNodeLabel for LoadSDNode. --- Diffs of the changes: (+21 -0) SelectionDAGPrinter.cpp | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+) Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.36 llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.37 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.36 Mon Oct 2 08:01:17 2006 +++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp Tue Oct 10 15:11:26 2006 @@ -130,6 +130,27 @@ Op = Op + " VT=" + getValueTypeString(N->getVT()); } else if (const StringSDNode *N = dyn_cast<StringSDNode>(Node)) { Op = Op + "\"" + N->getValue() + "\""; + } else if (const LoadSDNode *LD = dyn_cast<LoadSDNode>(Node)) { + bool doExt = true; + switch (LD->getExtensionType()) { + default: doExt = false; break; + case ISD::EXTLOAD: + Op = Op + "<anyext "; + break; + case ISD::SEXTLOAD: + Op = Op + " <sext "; + break; + case ISD::ZEXTLOAD: + Op = Op + " <zext "; + break; + } + if (doExt) + Op = Op + MVT::getValueTypeString(LD->getLoadVT()) + ">"; + + if (LD->getAddressingMode() == ISD::PRE_INDEXED) + Op = Op + "<pre>"; + else if (LD->getAddressingMode() == ISD::POST_INDEXED) + Op = Op + "<post>"; } return Op; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits