summaryrefslogtreecommitdiff
path: root/include/llvm/Value.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-02-23 16:50:59 +0000
committerChris Lattner <sabre@nondot.org>2005-02-23 16:50:59 +0000
commit977a39570fcade4dfed60124f67eabc51efa76c6 (patch)
treee2e57ff088ba68f4c277f541a805bf618f279c49 /include/llvm/Value.h
parent35f0aecdb012ba150953f6f3a98862be9c72d265 (diff)
downloadllvm-977a39570fcade4dfed60124f67eabc51efa76c6.tar.gz
llvm-977a39570fcade4dfed60124f67eabc51efa76c6.tar.bz2
llvm-977a39570fcade4dfed60124f67eabc51efa76c6.tar.xz
Add new method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20287 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Value.h')
-rw-r--r--include/llvm/Value.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h
index 267b9eb1b3..b9db5d643a 100644
--- a/include/llvm/Value.h
+++ b/include/llvm/Value.h
@@ -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.