diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-10-27 23:52:51 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-10-27 23:52:51 +0000 |
commit | def69b92e70d156ed6f8c7af33c9a87d3f475e09 (patch) | |
tree | 681befebf4ae35b448945444ed8ba7166448b65a /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 8c494ab759266322aa05d5e99af9c05eb0d44576 (diff) |
Clean up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31243 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 3511b79b8b..6b1a1e15da 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -260,6 +260,9 @@ const TargetMachine &SelectionDAG::getTarget() const { static unsigned getNodeIDOpcode(FoldingSetNodeID &ID) { return ID.getRawData(0); } + +/// AddNodeIDOpcode - Add the node opcode to the NodeID data. +/// static void AddNodeIDOpcode(FoldingSetNodeID &ID, unsigned OpC) { ID.AddInteger(OpC); } @@ -270,15 +273,18 @@ void AddNodeIDValueTypes(FoldingSetNodeID &ID, SDVTList VTList) { ID.AddPointer(VTList.VTs); } - +/// AddNodeIDOperand - Add an operands data to the NodeID data. +/// static void AddNodeIDOperand(FoldingSetNodeID &ID, SDOperand Op) { ID.AddPointer(Op.Val); ID.AddInteger(Op.ResNo); } +/// AddNodeIDOperands - Various routines for adding operands to the NodeID data. +/// static void AddNodeIDOperands(FoldingSetNodeID &ID) { } -void AddNodeIDOperands(FoldingSetNodeID &ID, SDOperand Op) { +static void AddNodeIDOperands(FoldingSetNodeID &ID, SDOperand Op) { AddNodeIDOperand(ID, Op); } static void AddNodeIDOperands(FoldingSetNodeID &ID, @@ -298,6 +304,8 @@ static void AddNodeIDOperands(FoldingSetNodeID &ID, AddNodeIDOperand(ID, *Ops); } +/// AddNodeIDOperands - Various routines for adding node info to the NodeID +/// data. static void AddNodeIDNode(FoldingSetNodeID &ID, unsigned short OpC, SDVTList VTList) { AddNodeIDOpcode(ID, OpC); @@ -333,6 +341,8 @@ static void AddNodeIDNode(FoldingSetNodeID &ID, AddNodeIDOperands(ID, OpList, N); } +/// AddNodeIDNode - Generic routine for adding a nodes info to the NodeID +/// data. static void AddNodeIDNode(FoldingSetNodeID &ID, SDNode *N) { AddNodeIDOpcode(ID, N->getOpcode()); // Add the return value info. |