From 45aeccc1fda9e0938c38f554c002c6950bd92500 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Tue, 10 Oct 2006 20:11:26 +0000 Subject: [PATCH] Also update getNodeLabel for LoadSDNode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30861 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index c0d6b54a4b5..75c0cb337e7 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -130,6 +130,27 @@ std::string DOTGraphTraits::getNodeLabel(const SDNode *Node, Op = Op + " VT=" + getValueTypeString(N->getVT()); } else if (const StringSDNode *N = dyn_cast(Node)) { Op = Op + "\"" + N->getValue() + "\""; + } else if (const LoadSDNode *LD = dyn_cast(Node)) { + bool doExt = true; + switch (LD->getExtensionType()) { + default: doExt = false; break; + case ISD::EXTLOAD: + Op = Op + "getLoadVT()) + ">"; + + if (LD->getAddressingMode() == ISD::PRE_INDEXED) + Op = Op + "
";
+    else if (LD->getAddressingMode() == ISD::POST_INDEXED)
+      Op = Op + "";
   }
   
   return Op;
-- 
2.11.0