[llvm-commits] CVS: llvm/include/llvm/Support/ConstantRange.h
Nick Lewycky
nicholas at mxc.ca
Sat Mar 10 07:54:32 PST 2007
Changes in directory llvm/include/llvm/Support:
ConstantRange.h updated: 1.20 -> 1.21
---
Log message:
Add getter methods for the extremes of a ConstantRange.
---
Diffs of the changes: (+20 -0)
ConstantRange.h | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+)
Index: llvm/include/llvm/Support/ConstantRange.h
diff -u llvm/include/llvm/Support/ConstantRange.h:1.20 llvm/include/llvm/Support/ConstantRange.h:1.21
--- llvm/include/llvm/Support/ConstantRange.h:1.20 Thu Mar 1 01:54:15 2007
+++ llvm/include/llvm/Support/ConstantRange.h Sat Mar 10 09:54:12 2007
@@ -102,6 +102,26 @@
///
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 {
More information about the llvm-commits
mailing list