aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-07-12 05:44:08 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-07-12 05:44:08 +0000
commit7ab2eb4a803405e84e96ec00a0010a05b81bb2d7 (patch)
tree741108088c74fbee8c29852ae1e557a4d351fa45
parent956daf0f7f7fa473cf92c8193905a8a441932b69 (diff)
Make this clearer for the mathematically inclined. Thanks to Duncan Sands for
going over the text! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75414 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/ConstantRange.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/ConstantRange.h b/include/llvm/Support/ConstantRange.h
index 64019ca3a7..cbf3f87a35 100644
--- a/include/llvm/Support/ConstantRange.h
+++ b/include/llvm/Support/ConstantRange.h
@@ -61,6 +61,10 @@ public:
/// makeICmpRegion - Produce the smallest range that contains all values that
/// might satisfy the comparison specified by Pred when compared to any value
/// contained within Other.
+ ///
+ /// Solves for range X in 'for all x in X, there exists a y in Y such that
+ /// icmp op x, y is true'. Every value that might make the comparison true
+ /// is included in the resulting range.
static ConstantRange makeICmpRegion(unsigned Pred,
const ConstantRange &Other);