summaryrefslogtreecommitdiff
path: root/include/llvm/Support/ConstantRange.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-08-07 05:47:46 +0000
committerOwen Anderson <resistor@mac.com>2010-08-07 05:47:46 +0000
commit9773e45a1e97f5098905bac26b8b8b7c844473f0 (patch)
treedb9e2c980a9a3b752b6bb1e93e4cdd3877cbeefc /include/llvm/Support/ConstantRange.h
parentdbac071050010effb95febae0ddf72102551323d (diff)
downloadllvm-9773e45a1e97f5098905bac26b8b8b7c844473f0.tar.gz
llvm-9773e45a1e97f5098905bac26b8b8b7c844473f0.tar.bz2
llvm-9773e45a1e97f5098905bac26b8b8b7c844473f0.tar.xz
Add an inverse() method to ConstantRange.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110504 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/ConstantRange.h')
-rw-r--r--include/llvm/Support/ConstantRange.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/ConstantRange.h b/include/llvm/Support/ConstantRange.h
index d767bd36b0..c3a6dd03fd 100644
--- a/include/llvm/Support/ConstantRange.h
+++ b/include/llvm/Support/ConstantRange.h
@@ -232,6 +232,9 @@ public:
/// from a logical right shift of a value in this range by the Amount value.
ConstantRange lshr(const ConstantRange &Amount) const;
+ /// inverse - Return a new range that is the logical not of the current set.
+ ConstantRange inverse() const;
+
/// print - Print out the bounds to a stream...
///
void print(raw_ostream &OS) const;