diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-03-01 07:54:15 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-03-01 07:54:15 +0000 |
commit | a6e8a955d6ab82911a1909fac7a9f4256a4d090e (patch) | |
tree | 679bee028efe0c335cf9b2dded0c8832caadf709 /include/llvm/Support/ConstantRange.h | |
parent | cda067bad95654d970e14d3555f4aa685e5ebcae (diff) |
Remove the "isSigned" parameters from ConstantRange. It turns out they
are not needed as the results are the same with or without it.
Patch by Nicholas Lewycky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34782 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/ConstantRange.h')
-rw-r--r-- | include/llvm/Support/ConstantRange.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/include/llvm/Support/ConstantRange.h b/include/llvm/Support/ConstantRange.h index 92f3716eb5..9da41ec354 100644 --- a/include/llvm/Support/ConstantRange.h +++ b/include/llvm/Support/ConstantRange.h @@ -40,7 +40,7 @@ namespace llvm { class ConstantRange { APInt Lower, Upper; static ConstantRange intersect1Wrapped(const ConstantRange &LHS, - const ConstantRange &RHS, bool sign); + const ConstantRange &RHS); public: /// Initialize a full (the default) or empty set for the specified bit width. /// @@ -79,13 +79,11 @@ class ConstantRange { /// isWrappedSet - Return true if this set wraps around the top of the range, /// for example: [100, 8) /// - bool isWrappedSet(bool isSigned) const; + bool isWrappedSet() const; /// contains - Return true if the specified value is in the set. - /// The isSigned parameter indicates whether the comparisons should be - /// performed as if the values are signed or not. /// - bool contains(const APInt &Val, bool isSigned) const; + bool contains(const APInt &Val) const; /// getSingleElement - If this set contains a single element, return it, /// otherwise return null. @@ -123,7 +121,7 @@ class ConstantRange { /// one of the sets but not the other. For example: [100, 8) intersect [3, /// 120) yields [3, 120) /// - ConstantRange intersectWith(const ConstantRange &CR, bool isSigned) const; + ConstantRange intersectWith(const ConstantRange &CR) const; /// unionWith - Return the range that results from the union of this range /// with another range. The resultant range is guaranteed to include the @@ -131,7 +129,7 @@ class ConstantRange { /// [12,15) is [3, 15), which includes 9, 10, and 11, which were not included /// in either set before. /// - ConstantRange unionWith(const ConstantRange &CR, bool isSigned) const; + ConstantRange unionWith(const ConstantRange &CR) const; /// zeroExtend - Return a new range in the specified integer type, which must /// be strictly larger than the current type. The returned range will |