From: Evan Cheng Date: Tue, 10 Oct 2006 20:05:10 +0000 (+0000) Subject: SDNode::dump should also print out extension type and VT. X-Git-Tag: android-x86-6.0-r1~1003^2~40328 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=0ac1c6ad9af78654188ca5164c1d0839e834444e;p=android-x86%2Fexternal-llvm.git SDNode::dump should also print out extension type and VT. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30860 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 2b7a9db73ab..61f0a49d7a6 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -2691,6 +2691,27 @@ void SDNode::dump(const SelectionDAG *G) const { std::cerr << "getOffset() << ">"; } else if (const VTSDNode *N = dyn_cast(this)) { std::cerr << ":" << getValueTypeString(N->getVT()); + } else if (const LoadSDNode *LD = dyn_cast(this)) { + bool doExt = true; + switch (LD->getExtensionType()) { + default: doExt = false; break; + case ISD::EXTLOAD: + std::cerr << " getLoadVT()) << ">"; + + if (LD->getAddressingMode() == ISD::PRE_INDEXED) + std::cerr << "
";
+    else if (LD->getAddressingMode() == ISD::POST_INDEXED)
+      std::cerr << " ";
   }
 }