mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-26 05:56:51 +00:00
Print extra type for nodes with extra type info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19575 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
33eba0440c
commit
8a389bb376
@ -1123,6 +1123,8 @@ void SDNode::dump() const {
|
||||
} else if (const ExternalSymbolSDNode *ES =
|
||||
dyn_cast<ExternalSymbolSDNode>(this)) {
|
||||
std::cerr << "'" << ES->getSymbol() << "'";
|
||||
} else if (const MVTSDNode *M = dyn_cast<MVTSDNode>(this)) {
|
||||
std::cerr << " - Ty = " << MVT::getValueTypeString(M->getExtraValueType());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -90,6 +90,8 @@ std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node,
|
||||
} else if (const ExternalSymbolSDNode *ES =
|
||||
dyn_cast<ExternalSymbolSDNode>(Node)) {
|
||||
Op += "'" + std::string(ES->getSymbol()) + "'";
|
||||
} else if (const MVTSDNode *M = dyn_cast<MVTSDNode>(Node)) {
|
||||
Op = Op + "ty=" + MVT::getValueTypeString(M->getExtraValueType());
|
||||
}
|
||||
return Op;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user