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 | bd0f08874376281eec745d50f1eeb17d5acda020 (patch) | |
tree | c371f168702a41b1f02086c4583d5327521d2f6e /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 84a035056e4f335e5a87be02a159526fc42ccc20 (diff) | |
download | bcm5719-llvm-bd0f08874376281eec745d50f1eeb17d5acda020.tar.gz bcm5719-llvm-bd0f08874376281eec745d50f1eeb17d5acda020.zip |
Clean up.
llvm-svn: 31243
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 3511b79b8ba..6b1a1e15daa 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/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. |