summaryrefslogtreecommitdiff
path: root/include/llvm/Support/ConstantRange.h
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2007-03-10 15:54:12 +0000
committerNick Lewycky <nicholas@mxc.ca>2007-03-10 15:54:12 +0000
commit3400e6af6b10acea219c02ac262637220f84218f (patch)
tree090875112f02363816a052d2cec508b0d4960c8a /include/llvm/Support/ConstantRange.h
parentc1fb0473ed415824bf6ffdbd8d6e3c4a31db3d62 (diff)
downloadllvm-3400e6af6b10acea219c02ac262637220f84218f.tar.gz
llvm-3400e6af6b10acea219c02ac262637220f84218f.tar.bz2
llvm-3400e6af6b10acea219c02ac262637220f84218f.tar.xz
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/ConstantRange.h')
-rw-r--r--include/llvm/Support/ConstantRange.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/llvm/Support/ConstantRange.h b/include/llvm/Support/ConstantRange.h
index 9da41ec354..05859b4111 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 {