diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2007-03-10 15:54:12 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2007-03-10 15:54:12 +0000 |
commit | 3400e6af6b10acea219c02ac262637220f84218f (patch) | |
tree | 090875112f02363816a052d2cec508b0d4960c8a /include/llvm/Support | |
parent | c1fb0473ed415824bf6ffdbd8d6e3c4a31db3d62 (diff) | |
download | external_llvm-3400e6af6b10acea219c02ac262637220f84218f.zip external_llvm-3400e6af6b10acea219c02ac262637220f84218f.tar.gz external_llvm-3400e6af6b10acea219c02ac262637220f84218f.tar.bz2 |
Add getter methods for the extremes of a ConstantRange.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35056 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r-- | include/llvm/Support/ConstantRange.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/llvm/Support/ConstantRange.h b/include/llvm/Support/ConstantRange.h index 9da41ec..05859b4 100644 --- a/include/llvm/Support/ConstantRange.h +++ b/include/llvm/Support/ConstantRange.h @@ -102,6 +102,26 @@ class ConstantRange { /// APInt getSetSize() const; + /// getUnsignedMax - Return the largest unsigned value contained in the + /// ConstantRange. + /// + APInt getUnsignedMax() const; + + /// getUnsignedMin - Return the smallest unsigned value contained in the + /// ConstantRange. + /// + APInt getUnsignedMin() const; + + /// getSignedMax - Return the largest signed value contained in the + /// ConstantRange. + /// + APInt getSignedMax() const; + + /// getSignedMin - Return the smallest signed value contained in the + /// ConstantRange. + /// + APInt getSignedMin() const; + /// operator== - Return true if this range is equal to another range. /// bool operator==(const ConstantRange &CR) const { |