mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-23 11:38:38 +00:00
Also update getNodeLabel for LoadSDNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30861 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0ac1c6ad9a
commit
45aeccc1fd
@ -130,6 +130,27 @@ std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node,
|
|||||||
Op = Op + " VT=" + getValueTypeString(N->getVT());
|
Op = Op + " VT=" + getValueTypeString(N->getVT());
|
||||||
} else if (const StringSDNode *N = dyn_cast<StringSDNode>(Node)) {
|
} else if (const StringSDNode *N = dyn_cast<StringSDNode>(Node)) {
|
||||||
Op = Op + "\"" + N->getValue() + "\"";
|
Op = Op + "\"" + N->getValue() + "\"";
|
||||||
|
} else if (const LoadSDNode *LD = dyn_cast<LoadSDNode>(Node)) {
|
||||||
|
bool doExt = true;
|
||||||
|
switch (LD->getExtensionType()) {
|
||||||
|
default: doExt = false; break;
|
||||||
|
case ISD::EXTLOAD:
|
||||||
|
Op = Op + "<anyext ";
|
||||||
|
break;
|
||||||
|
case ISD::SEXTLOAD:
|
||||||
|
Op = Op + " <sext ";
|
||||||
|
break;
|
||||||
|
case ISD::ZEXTLOAD:
|
||||||
|
Op = Op + " <zext ";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (doExt)
|
||||||
|
Op = Op + MVT::getValueTypeString(LD->getLoadVT()) + ">";
|
||||||
|
|
||||||
|
if (LD->getAddressingMode() == ISD::PRE_INDEXED)
|
||||||
|
Op = Op + "<pre>";
|
||||||
|
else if (LD->getAddressingMode() == ISD::POST_INDEXED)
|
||||||
|
Op = Op + "<post>";
|
||||||
}
|
}
|
||||||
|
|
||||||
return Op;
|
return Op;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user