mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-07 11:33:44 +00:00
Also print alignment and volatileness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45164 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e395598c98
commit
8131013861
@ -3939,6 +3939,15 @@ void SDNode::dump(const SelectionDAG *G) const {
|
||||
} else if (const VTSDNode *N = dyn_cast<VTSDNode>(this)) {
|
||||
cerr << ":" << MVT::getValueTypeString(N->getVT());
|
||||
} else if (const LoadSDNode *LD = dyn_cast<LoadSDNode>(this)) {
|
||||
const Value *SrcValue = LD->getSrcValue();
|
||||
int SrcOffset = LD->getSrcValueOffset();
|
||||
cerr << " <";
|
||||
if (SrcValue)
|
||||
cerr << SrcValue;
|
||||
else
|
||||
cerr << "null";
|
||||
cerr << ":" << SrcOffset << ">";
|
||||
|
||||
bool doExt = true;
|
||||
switch (LD->getExtensionType()) {
|
||||
default: doExt = false; break;
|
||||
@ -3958,24 +3967,10 @@ 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 << ">";
|
||||
if (LD->isVolatile())
|
||||
cerr << " <volatile>";
|
||||
cerr << " alignment=" << LD->getAlignment();
|
||||
} else if (const StoreSDNode *ST = dyn_cast<StoreSDNode>(this)) {
|
||||
if (ST->isTruncatingStore())
|
||||
cerr << " <trunc "
|
||||
<< MVT::getValueTypeString(ST->getStoredVT()) << ">";
|
||||
|
||||
const char *AM = getIndexedModeName(ST->getAddressingMode());
|
||||
if (*AM)
|
||||
cerr << " " << AM;
|
||||
|
||||
const Value *SrcValue = ST->getSrcValue();
|
||||
int SrcOffset = ST->getSrcValueOffset();
|
||||
cerr << " <";
|
||||
@ -3984,6 +3979,17 @@ void SDNode::dump(const SelectionDAG *G) const {
|
||||
else
|
||||
cerr << "null";
|
||||
cerr << ":" << SrcOffset << ">";
|
||||
|
||||
if (ST->isTruncatingStore())
|
||||
cerr << " <trunc "
|
||||
<< MVT::getValueTypeString(ST->getStoredVT()) << ">";
|
||||
|
||||
const char *AM = getIndexedModeName(ST->getAddressingMode());
|
||||
if (*AM)
|
||||
cerr << " " << AM;
|
||||
if (ST->isVolatile())
|
||||
cerr << " <volatile>";
|
||||
cerr << " alignment=" << ST->getAlignment();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user