[llvm-commits] CVS: llvm/include/llvm/Instructions.h
Reid Spencer
reid at x10sys.com
Wed Feb 28 14:01:16 PST 2007
Changes in directory llvm/include/llvm:
Instructions.h updated: 1.62 -> 1.63
---
Log message:
Provide an ICmpInst::makeConstantRange to generate a ConstantRange value
from a predicate and an APInt. This is removed from ConstantRange class
so that ConstantRange doesn't have to depend on lib/VMCore.
---
Diffs of the changes: (+6 -0)
Instructions.h | 6 ++++++
1 files changed, 6 insertions(+)
Index: llvm/include/llvm/Instructions.h
diff -u llvm/include/llvm/Instructions.h:1.62 llvm/include/llvm/Instructions.h:1.63
--- llvm/include/llvm/Instructions.h:1.62 Fri Feb 23 18:55:48 2007
+++ llvm/include/llvm/Instructions.h Wed Feb 28 16:00:54 2007
@@ -24,6 +24,8 @@
class ConstantInt;
class PointerType;
class VectorType;
+class ConstantRange;
+class APInt;
//===----------------------------------------------------------------------===//
// AllocationInst Class
@@ -536,6 +538,10 @@
/// @brief Determine if the predicate is signed.
static bool isSignedPredicate(Predicate pred);
+ /// Initialize a set of values that all satisfy the predicate with C.
+ /// @brief Make a ConstantRange for a relation with a constant value.
+ static ConstantRange makeConstantRange(Predicate pred, const APInt &C);
+
/// Exchange the two operands to this instruction in such a way that it does
/// not modify the semantics of the instruction. The predicate value may be
/// changed to retain the same result if the predicate is order dependent
More information about the llvm-commits
mailing list