[llvm-commits] CVS: llvm/include/llvm/CodeGen/SelectionDAGNodes.h

Chris Lattner lattner at cs.uiuc.edu
Sun Jan 16 18:25:14 PST 2005



Changes in directory llvm/include/llvm/CodeGen:

SelectionDAGNodes.h updated: 1.17 -> 1.18
---
Log message:

Add methods


---
Diffs of the changes:  (+4 -0)

Index: llvm/include/llvm/CodeGen/SelectionDAGNodes.h
diff -u llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.17 llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.18
--- llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.17	Sat Jan 15 00:16:35 2005
+++ llvm/include/llvm/CodeGen/SelectionDAGNodes.h	Sun Jan 16 20:24:59 2005
@@ -410,6 +410,10 @@
   bool use_empty() const { return Uses.empty(); }
   bool hasOneUse() const { return Uses.size() == 1; }
 
+  typedef std::vector<SDNode*>::const_iterator use_iterator;
+  use_iterator use_begin() const { return Uses.begin(); }
+  use_iterator use_end() const { return Uses.end(); }
+
   /// hasNUsesOfValue - Return true if there are exactly NUSES uses of the
   /// indicated value.  This method ignores uses of other values defined by this
   /// operation.






More information about the llvm-commits mailing list