Fix printer for StoreSDNode.

llvm-svn: 31017
This commit is contained in:
Evan Cheng 2006-10-17 21:18:26 +00:00
parent 1839d76f69
commit 2f4ddce75c
1 changed files with 5 additions and 4 deletions

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;