aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-12-18 07:02:08 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-12-18 07:02:08 +0000
commit88ce93e0efc644e1a27a518d2c26f62a1d9ddb7a (patch)
treebe172c70b58d14ebbcff99c48fa52987be1c2dda /lib
parentb9488a68906811f3fc93383fe7866c9640051615 (diff)
downloadexternal_llvm-88ce93e0efc644e1a27a518d2c26f62a1d9ddb7a.zip
external_llvm-88ce93e0efc644e1a27a518d2c26f62a1d9ddb7a.tar.gz
external_llvm-88ce93e0efc644e1a27a518d2c26f62a1d9ddb7a.tar.bz2
SelectionDAG::dump() should print SrcValue of LoadSDNode and StoreSDNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45151 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAG.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index a1b1d97..85dd37f 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -3958,6 +3958,15 @@ void SDNode::dump(const SelectionDAG *G) const {
const char *AM = getIndexedModeName(LD->getAddressingMode());
if (*AM)
cerr << " " << AM;
+
+ const Value *SrcValue = LD->getSrcValue();
+ int SrcOffset = LD->getSrcValueOffset();
+ cerr << " <";
+ if (SrcValue)
+ cerr << SrcValue;
+ else
+ cerr << "null";
+ cerr << ":" << SrcOffset << ">";
} else if (const StoreSDNode *ST = dyn_cast<StoreSDNode>(this)) {
if (ST->isTruncatingStore())
cerr << " <trunc "
@@ -3966,6 +3975,15 @@ void SDNode::dump(const SelectionDAG *G) const {
const char *AM = getIndexedModeName(ST->getAddressingMode());
if (*AM)
cerr << " " << AM;
+
+ const Value *SrcValue = ST->getSrcValue();
+ int SrcOffset = ST->getSrcValueOffset();
+ cerr << " <";
+ if (SrcValue)
+ cerr << SrcValue;
+ else
+ cerr << "null";
+ cerr << ":" << SrcOffset << ">";
}
}