Searched refs:ConstantRange (Results 1 - 17 of 17) sorted by relevance

/macosx-10.9.5/llvmCore-3425.0.33/include/llvm/Support/
H A DConstantRange.h1 //===-- llvm/Support/ConstantRange.h - Represent a range --------*- C++ -*-===//
27 // Note that ConstantRange can be used to represent either signed or
40 /// ConstantRange - This class represents an range of values.
42 class ConstantRange { class in namespace:llvm
48 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true);
52 ConstantRange(const APInt &Value);
57 ConstantRange(const APInt &Lower, const APInt &Upper);
66 static ConstantRange makeICmpRegion(unsigned Pred,
67 const ConstantRange &Other);
77 /// getBitWidth - get the bit width of this ConstantRange
[all...]
/macosx-10.9.5/llvmCore-3425.0.33/lib/Support/
H A DConstantRange.cpp1 //===-- ConstantRange.cpp - ConstantRange implementation ------------------===//
25 #include "llvm/Support/ConstantRange.h"
32 ConstantRange::ConstantRange(uint32_t BitWidth, bool Full) { function in class:ConstantRange
41 ConstantRange::ConstantRange(const APInt &V) : Lower(V), Upper(V + 1) {} function in class:ConstantRange
43 ConstantRange::ConstantRange(const APInt &L, const APInt &U) : function in class:ConstantRange
46 "ConstantRange wit
[all...]
H A DCMakeLists.txt16 ConstantRange.cpp
/macosx-10.9.5/llvmCore-3425.0.33/unittests/Support/
H A DConstantRangeTest.cpp1 //===- llvm/unittest/Support/ConstantRangeTest.cpp - ConstantRange tests --===//
10 #include "llvm/Support/ConstantRange.h"
21 static ConstantRange Full;
22 static ConstantRange Empty;
23 static ConstantRange One;
24 static ConstantRange Some;
25 static ConstantRange Wrap;
28 ConstantRange ConstantRangeTest::Full(16);
29 ConstantRange ConstantRangeTest::Empty(16, false);
30 ConstantRange ConstantRangeTes
[all...]
/macosx-10.9.5/llvmCore-3425.0.33/lib/Analysis/
H A DLazyValueInfo.cpp25 #include "llvm/Support/ConstantRange.h"
82 ConstantRange Range;
99 static LVILatticeVal getRange(ConstantRange CR) {
121 ConstantRange getConstantRange() const {
139 return markConstantRange(ConstantRange(CI->getValue()));
155 return markConstantRange(ConstantRange(CI->getValue()+1, CI->getValue()));
170 bool markConstantRange(const ConstantRange NewR) {
226 // RHS is a ConstantRange, LHS is a non-integer Constant.
265 ConstantRange NewR = Range.unionWith(RHS.getConstantRange());
707 ConstantRange LHSRang
[all...]
H A DScalarEvolution.cpp79 #include "llvm/Support/ConstantRange.h"
923 ConstantRange CR = getUnsignedRange(X);
1189 ConstantRange CR = getSignedRange(X);
3266 ConstantRange
3269 DenseMap<const SCEV *, ConstantRange>::iterator I = UnsignedRanges.find(S);
3274 return setUnsignedRange(C, ConstantRange(C->getValue()->getValue()));
3277 ConstantRange ConservativeResult(BitWidth, /*isFullSet=*/true);
3284 ConstantRange(APInt::getMinValue(BitWidth),
3288 ConstantRange X = getUnsignedRange(Add->getOperand(0));
3295 ConstantRange
[all...]
H A DInstructionSimplify.cpp30 #include "llvm/Support/ConstantRange.h"
1805 ConstantRange RHS_CR = ICmpInst::makeConstantRange(Pred, CI->getValue());
1862 ConstantRange LHS_CR = ConstantRange(Lower, Upper);
H A DValueTracking.cpp26 #include "llvm/Support/ConstantRange.h"
204 ConstantRange Range(Lower->getValue(), Upper->getValue());
/macosx-10.9.5/llvmCore-3425.0.33/include/llvm/Analysis/
H A DScalarEvolution.h31 #include "llvm/Support/ConstantRange.h"
378 DenseMap<const SCEV *, ConstantRange> UnsignedRanges;
381 DenseMap<const SCEV *, ConstantRange> SignedRanges;
384 const ConstantRange &setUnsignedRange(const SCEV *S,
385 const ConstantRange &CR) {
386 std::pair<DenseMap<const SCEV *, ConstantRange>::iterator, bool> Pair =
394 const ConstantRange &setSignedRange(const SCEV *S,
395 const ConstantRange &CR) {
396 std::pair<DenseMap<const SCEV *, ConstantRange>::iterator, bool> Pair =
798 ConstantRange getUnsignedRang
[all...]
H A DScalarEvolutionExpressions.h23 class ConstantRange;
351 const SCEV *getNumIterationsInRange(ConstantRange Range,
/macosx-10.9.5/llvmCore-3425.0.33/lib/VMCore/
H A DMetadata.cpp24 #include "llvm/Support/ConstantRange.h"
452 static bool isContiguous(const ConstantRange &A, const ConstantRange &B) {
456 static bool canBeMerged(const ConstantRange &A, const ConstantRange &B) {
462 ConstantRange NewRange(Low->getValue(), High->getValue());
466 ConstantRange LastRange(LB, LE);
468 ConstantRange Union = LastRange.unionWith(NewRange);
545 ConstantRange Range(cast<ConstantInt>(EndPoints[0])->getValue(),
H A DInstructions.cpp24 #include "llvm/Support/ConstantRange.h"
2980 ConstantRange
2986 default: llvm_unreachable("Invalid ICmp opcode to ConstantRange ctor!");
2993 return ConstantRange(BitWidth, /*isFullSet=*/false);
2999 return ConstantRange(BitWidth, /*isFullSet=*/false);
3005 return ConstantRange(BitWidth, /*isFullSet=*/false);
3011 return ConstantRange(BitWidth, /*isFullSet=*/false);
3017 return ConstantRange(BitWidth, /*isFullSet=*/true);
3023 return ConstantRange(BitWidth, /*isFullSet=*/true);
3029 return ConstantRange(BitWidt
[all...]
H A DVerifier.cpp71 #include "llvm/Support/ConstantRange.h"
1367 static bool isContiguous(const ConstantRange &A, const ConstantRange &B) {
1402 ConstantRange LastRange(1); // Dummy initial value
1414 ConstantRange CurRange(LowV, HighV);
1425 LastRange = ConstantRange(LowV, HighV);
1432 ConstantRange FirstRange(FirstLow, FirstHigh);
/macosx-10.9.5/llvmCore-3425.0.33/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp18 #include "llvm/Support/ConstantRange.h"
802 ConstantRange LHSRange =
803 ConstantRange::makeICmpRegion(LHSCC, LHSCst->getValue());
804 ConstantRange RHSRange =
805 ConstantRange::makeICmpRegion(RHSCC, RHSCst->getValue());
H A DInstCombineCompares.cpp21 #include "llvm/Support/ConstantRange.h"
1365 ConstantRange CR = ICI.makeConstantRange(ICI.getPredicate(), RHSV)
/macosx-10.9.5/llvmCore-3425.0.33/include/llvm/
H A DInstructions.h33 class ConstantRange;
1020 /// @brief Make a ConstantRange for a relation with a constant value.
1021 static ConstantRange makeConstantRange(Predicate pred, const APInt &C);
/macosx-10.9.5/llvmCore-3425.0.33/lib/Transforms/Utils/
H A DSimplifyCFG.cpp38 #include "llvm/Support/ConstantRange.h"
434 ConstantRange Span =
435 ConstantRange::makeICmpRegion(ICI->getPredicate(), C->getValue());

Completed in 285 milliseconds