mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Add a new isSignWrappedSet() method to ConstantRange.
Fix zeroExtend and signExtend to support empty sets, and to return the smallest possible result set which contains the extension of each element in their inputs. For example zext i8 [100, 10) to i16 is now [0, 256), not i16 [100, 10) which contains 63446 members. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113187 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -92,6 +92,11 @@ public:
|
||||
///
|
||||
bool isWrappedSet() const;
|
||||
|
||||
/// isSignWrappedSet - Return true if this set wraps around the INT_MIN of
|
||||
/// its bitwidth, for example: i8 [120, 140).
|
||||
///
|
||||
bool isSignWrappedSet() const;
|
||||
|
||||
/// contains - Return true if the specified value is in the set.
|
||||
///
|
||||
bool contains(const APInt &Val) const;
|
||||
|
||||
Reference in New Issue
Block a user