aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/SelectionDAG.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-07-27 06:38:21 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-07-27 06:38:21 +0000
commitb9ee9e60a905b90fa3e84c5c6091af6e5a0382d2 (patch)
tree3732ceda59888d11eccf868069a58c9a70a24511 /include/llvm/CodeGen/SelectionDAG.h
parentb2c121ac14707db27d73169dab6c5d8592709843 (diff)
Remove NodeDepth; Add NodeId which is a unique id per node per DAG. It can only be set by SelectionDAG.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29336 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAG.h')
-rw-r--r--include/llvm/CodeGen/SelectionDAG.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h
index 473021afad..53caf88548 100644
--- a/include/llvm/CodeGen/SelectionDAG.h
+++ b/include/llvm/CodeGen/SelectionDAG.h
@@ -421,7 +421,11 @@ public:
/// DeleteNode - Remove the specified node from the system. This node must
/// have no referrers.
void DeleteNode(SDNode *N);
-
+
+ /// AssignNodeIds - Assign a unique node id for each node in the DAG. It
+ /// returns the maximum id.
+ int AssignNodeIds();
+
void dump() const;
/// InsertISelMapEntry - A helper function to insert a key / element pair