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

/freebsd-10-stable/contrib/llvm/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
56 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true);
60 ConstantRange(APIntMoveTy Value);
65 ConstantRange(APIntMoveTy Lower, APIntMoveTy Upper);
74 static ConstantRange makeICmpRegion(unsigned Pred,
75 const ConstantRange &Other);
85 /// getBitWidth - get the bit width of this ConstantRange
[all...]
/freebsd-10-stable/contrib/llvm/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(APIntMoveTy V) function in class:ConstantRange
44 ConstantRange::ConstantRange(APIntMoveTy L, APIntMoveTy U) function in class:ConstantRange
47 "ConstantRange wit
[all...]
/freebsd-10-stable/contrib/llvm/lib/Analysis/
H A DLazyValueInfo.cpp26 #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());
711 ConstantRange LHSRang
[all...]
H A DScalarEvolution.cpp82 #include "llvm/Support/ConstantRange.h"
932 ConstantRange CR = getUnsignedRange(X);
1198 ConstantRange CR = getSignedRange(X);
3308 ConstantRange
3311 DenseMap<const SCEV *, ConstantRange>::iterator I = UnsignedRanges.find(S);
3316 return setUnsignedRange(C, ConstantRange(C->getValue()->getValue()));
3319 ConstantRange ConservativeResult(BitWidth, /*isFullSet=*/true);
3326 ConstantRange(APInt::getMinValue(BitWidth),
3330 ConstantRange X = getUnsignedRange(Add->getOperand(0));
3337 ConstantRange
[all...]
H A DInstructionSimplify.cpp31 #include "llvm/Support/ConstantRange.h"
1974 ConstantRange RHS_CR = ICmpInst::makeConstantRange(Pred, CI->getValue());
2031 ConstantRange LHS_CR = ConstantRange(Lower, Upper);
H A DValueTracking.cpp28 #include "llvm/Support/ConstantRange.h"
205 ConstantRange Range(Lower->getValue(), Upper->getValue());
/freebsd-10-stable/contrib/llvm/include/llvm/Analysis/
H A DScalarEvolution.h31 #include "llvm/Support/ConstantRange.h"
382 DenseMap<const SCEV *, ConstantRange> UnsignedRanges;
385 DenseMap<const SCEV *, ConstantRange> SignedRanges;
388 const ConstantRange &setUnsignedRange(const SCEV *S,
389 const ConstantRange &CR) {
390 std::pair<DenseMap<const SCEV *, ConstantRange>::iterator, bool> Pair =
398 const ConstantRange &setSignedRange(const SCEV *S,
399 const ConstantRange &CR) {
400 std::pair<DenseMap<const SCEV *, ConstantRange>::iterator, bool> Pair =
796 ConstantRange getUnsignedRang
[all...]
H A DScalarEvolutionExpressions.h23 class ConstantRange;
341 const SCEV *getNumIterationsInRange(ConstantRange Range,
/freebsd-10-stable/contrib/llvm/lib/IR/
H A DMetadata.cpp24 #include "llvm/Support/ConstantRange.h"
419 static bool isContiguous(const ConstantRange &A, const ConstantRange &B) {
423 static bool canBeMerged(const ConstantRange &A, const ConstantRange &B) {
429 ConstantRange NewRange(Low->getValue(), High->getValue());
433 ConstantRange LastRange(LB, LE);
435 ConstantRange Union = LastRange.unionWith(NewRange);
512 ConstantRange Range(cast<ConstantInt>(EndPoints[0])->getValue(),
H A DInstructions.cpp24 #include "llvm/Support/ConstantRange.h"
3147 ConstantRange
3153 default: llvm_unreachable("Invalid ICmp opcode to ConstantRange ctor!");
3160 return ConstantRange(BitWidth, /*isFullSet=*/false);
3166 return ConstantRange(BitWidth, /*isFullSet=*/false);
3172 return ConstantRange(BitWidth, /*isFullSet=*/false);
3178 return ConstantRange(BitWidth, /*isFullSet=*/false);
3184 return ConstantRange(BitWidth, /*isFullSet=*/true);
3190 return ConstantRange(BitWidth, /*isFullSet=*/true);
3196 return ConstantRange(BitWidt
[all...]
H A DVerifier.cpp72 #include "llvm/Support/ConstantRange.h"
1757 static bool isContiguous(const ConstantRange &A, const ConstantRange &B) {
1792 ConstantRange LastRange(1); // Dummy initial value
1804 ConstantRange CurRange(LowV, HighV);
1815 LastRange = ConstantRange(LowV, HighV);
1822 ConstantRange FirstRange(FirstLow, FirstHigh);
/freebsd-10-stable/lib/clang/libllvmsupport/
H A DMakefile16 ConstantRange.cpp \
/freebsd-10-stable/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp17 #include "llvm/Support/ConstantRange.h"
875 ConstantRange LHSRange =
876 ConstantRange::makeICmpRegion(LHSCC, LHSCst->getValue());
877 ConstantRange RHSRange =
878 ConstantRange::makeICmpRegion(RHSCC, RHSCst->getValue());
H A DInstCombineCompares.cpp20 #include "llvm/Support/ConstantRange.h"
1579 ConstantRange CR = ICI.makeConstantRange(ICI.getPredicate(), RHSV)
/freebsd-10-stable/contrib/llvm/include/llvm/IR/
H A DInstructions.h32 class ConstantRange;
1024 /// \brief Make a ConstantRange for a relation with a constant value.
1025 static ConstantRange makeConstantRange(Predicate pred, const APInt &C);
/freebsd-10-stable/contrib/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp41 #include "llvm/Support/ConstantRange.h"
375 ConstantRange Span =
376 ConstantRange::makeICmpRegion(ICI->getPredicate(), C->getValue());

Completed in 422 milliseconds