Add new method.
authorChris Lattner <sabre@nondot.org>
Wed, 23 Feb 2005 16:50:59 +0000 (16:50 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 23 Feb 2005 16:50:59 +0000 (16:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20287 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Value.h

index 267b9eb1b3e263d20d9cf262e5791b568a5e957c..b9db5d643a6bce5de68c5370a484605d352e4063 100644 (file)
@@ -117,9 +117,14 @@ public:
   ///
   bool hasNUses(unsigned N) const;
 
+  /// hasNUsesOrMore - Return true if this value has N users or more.  This is
+  /// logically equivalent to getNumUses() >= N.
+  ///
+  bool hasNUsesOrMore(unsigned N) const;
+
   /// getNumUses - This method computes the number of uses of this Value.  This
-  /// is a linear time operation.  Use hasOneUse or hasNUses to check for
-  /// specific values.
+  /// is a linear time operation.  Use hasOneUse, hasNUses, or hasMoreThanNUses
+  /// to check for specific values.
   unsigned getNumUses() const;
 
   /// addUse/killUse - These two methods should only be used by the Use class.