diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-10-10 20:11:26 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-10-10 20:11:26 +0000 |
commit | 45aeccc1fda9e0938c38f554c002c6950bd92500 (patch) | |
tree | dc5bb63bdcb6c51519cea5baec60d4a43f056d5a /lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | |
parent | 0ac1c6ad9af78654188ca5164c1d0839e834444e (diff) |
Also update getNodeLabel for LoadSDNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30861 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index c0d6b54a4b..75c0cb337e 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -130,6 +130,27 @@ std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node, 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; |