diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2010-09-07 05:39:02 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2010-09-07 05:39:02 +0000 |
commit | 198381e542320265e1c5fed18e938db3563a45bf (patch) | |
tree | a98f4c5d152f298a16df53c579b2225cc3a729b5 /include/llvm/Support/ConstantRange.h | |
parent | 2b6c01b40b75e363e46b3ad7c598113eb98f34fb (diff) | |
download | llvm-198381e542320265e1c5fed18e938db3563a45bf.tar.gz llvm-198381e542320265e1c5fed18e938db3563a45bf.tar.bz2 llvm-198381e542320265e1c5fed18e938db3563a45bf.tar.xz |
Add completely hokey binary-and and binary-or operations to ConstantRange and
teach LazyValueInfo to use them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113196 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/ConstantRange.h')
-rw-r--r-- | include/llvm/Support/ConstantRange.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Support/ConstantRange.h b/include/llvm/Support/ConstantRange.h index 2af2cf61ea..792b4107b1 100644 --- a/include/llvm/Support/ConstantRange.h +++ b/include/llvm/Support/ConstantRange.h @@ -224,6 +224,14 @@ public: /// \p Other. ConstantRange udiv(const ConstantRange &Other) const; + /// binaryAnd - return a new range representing the possible values resulting + /// from a binary-and of a value in this range by a value in \p Other. + ConstantRange binaryAnd(const ConstantRange &Other) const; + + /// binaryOr - return a new range representing the possible values resulting + /// from a binary-or of a value in this range by a value in \p Other. + ConstantRange binaryOr(const ConstantRange &Other) const; + /// shl - Return a new range representing the possible values resulting /// from a left shift of a value in this range by a value in \p Other. /// TODO: This isn't fully implemented yet. |