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:
Evan Cheng 2006-10-17 21:18:26 +00:00
parent 2cacccae19
commit 649b7ef627

View File

@ -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;