mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Fix printer for StoreSDNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31017 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2cacccae19
commit
649b7ef627
@ -148,10 +148,11 @@ std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node,
|
||||
if (doExt)
|
||||
Op = Op + MVT::getValueTypeString(LD->getLoadedVT()) + ">";
|
||||
|
||||
if (LD->getAddressingMode() == ISD::PRE_INDEXED)
|
||||
Op = Op + "<pre>";
|
||||
else if (LD->getAddressingMode() == ISD::POST_INDEXED)
|
||||
Op = Op + "<post>";
|
||||
Op += LD->getAddressingModeName(LD->getAddressingMode());
|
||||
} else if (const StoreSDNode *ST = dyn_cast<StoreSDNode>(Node)) {
|
||||
if (ST->isTruncatingStore())
|
||||
Op = Op + "<trunc " + MVT::getValueTypeString(ST->getStoredVT()) + ">";
|
||||
Op += ST->getAddressingModeName(ST->getAddressingMode());
|
||||
}
|
||||
|
||||
return Op;
|
||||
|
Loading…
Reference in New Issue
Block a user