diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-16 21:55:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-16 21:55:35 +0000 |
commit | 33182325f551226873d8e77c146016a6bd30a07d (patch) | |
tree | 987eeb476e22c32862ddee12681982b048fd423e /llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | |
parent | 371e49515dbdeadc01eb22be431fa7e00ba351fa (diff) | |
download | bcm5719-llvm-33182325f551226873d8e77c146016a6bd30a07d.tar.gz bcm5719-llvm-33182325f551226873d8e77c146016a6bd30a07d.zip |
Eliminate the RegSDNode class, which 3 nodes (CopyFromReg/CopyToReg/ImplicitDef)
used to tack a register number onto the node.
Instead of doing this, make a new node, RegisterSDNode, which is a leaf
containing a register number. These three operations just become normal
DAG nodes now, instead of requiring special handling.
Note that with this change, it is no longer correct to make illegal
CopyFromReg/CopyToReg nodes. The legalizer will not touch them, and this
is bad, so don't do it. :)
llvm-svn: 22806
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index a60acc12080..20cec1f11d8 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -72,8 +72,8 @@ std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node, if (LBB) Op += LBB->getName(); //Op += " " + (const void*)BBDN->getBasicBlock(); - } else if (const RegSDNode *C2V = dyn_cast<RegSDNode>(Node)) { - Op += " #" + utostr(C2V->getReg()); + } else if (const RegisterSDNode *R = dyn_cast<RegisterSDNode>(Node)) { + Op += " #" + utostr(R->getReg()); } else if (const ExternalSymbolSDNode *ES = dyn_cast<ExternalSymbolSDNode>(Node)) { Op += "'" + std::string(ES->getSymbol()) + "'"; |