mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 05:00:26 +00:00
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
This commit is contained in:
parent
b9488a6890
commit
88ce93e0ef
@ -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 << ">";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user