• Home
  • Raw
  • Download

Lines Matching refs:ConstantRange

124   ConstantRange Range =  in intersect()
413 Optional<ConstantRange> getRangeFor(Value *V, Instruction *CxtI,
417 std::function<ConstantRange(const ConstantRange &,
418 const ConstantRange &)> OpFn);
821 const ConstantRange &TrueCR = TrueVal.getConstantRange(); in solveBlockValueSelect()
822 const ConstantRange &FalseCR = FalseVal.getConstantRange(); in solveBlockValueSelect()
830 ConstantRange ResultCR = [&]() { in solveBlockValueSelect()
859 ConstantRange Zero(APInt::getNullValue(TrueCR.getBitWidth())); in solveBlockValueSelect()
925 Optional<ConstantRange> LazyValueInfoImpl::getRangeFor(Value *V, in getRangeFor()
938 return ConstantRange::getFull(OperandBitWidth); in getRangeFor()
967 Optional<ConstantRange> LHSRes = getRangeFor(CI->getOperand(0), CI, BB); in solveBlockValueCast()
971 const ConstantRange &LHSRange = LHSRes.getValue(); in solveBlockValueCast()
984 std::function<ConstantRange(const ConstantRange &, in solveBlockValueBinaryOpImpl() argument
985 const ConstantRange &)> OpFn) { in solveBlockValueBinaryOpImpl()
990 Optional<ConstantRange> LHSRes = getRangeFor(I->getOperand(0), I, BB); in solveBlockValueBinaryOpImpl()
991 Optional<ConstantRange> RHSRes = getRangeFor(I->getOperand(1), I, BB); in solveBlockValueBinaryOpImpl()
996 const ConstantRange &LHSRange = LHSRes.getValue(); in solveBlockValueBinaryOpImpl()
997 const ConstantRange &RHSRange = RHSRes.getValue(); in solveBlockValueBinaryOpImpl()
1021 [BO, NoWrapKind](const ConstantRange &CR1, const ConstantRange &CR2) { in solveBlockValueBinaryOp()
1027 BO, BB, [BO](const ConstantRange &CR1, const ConstantRange &CR2) { in solveBlockValueBinaryOp()
1036 WO, BB, [WO](const ConstantRange &CR1, const ConstantRange &CR2) { in solveBlockValueOverflowIntrinsic()
1043 if (!ConstantRange::isIntrinsicSupported(II->getIntrinsicID())) { in solveBlockValueIntrinsic()
1049 SmallVector<ConstantRange, 2> OpRanges; in solveBlockValueIntrinsic()
1051 Optional<ConstantRange> Range = getRangeFor(Op, II, BB); in solveBlockValueIntrinsic()
1058 ConstantRange::intrinsic(II->getIntrinsicID(), OpRanges)); in solveBlockValueIntrinsic()
1105 ConstantRange RHSRange(RHS->getType()->getIntegerBitWidth(), in getValueFromSimpleICmpCondition()
1108 RHSRange = ConstantRange(CI->getValue()); in getValueFromSimpleICmpCondition()
1113 ConstantRange TrueValues = in getValueFromSimpleICmpCondition()
1114 ConstantRange::makeAllowedICmpRegion(Pred, RHSRange); in getValueFromSimpleICmpCondition()
1161 ConstantRange::fromKnownBits(Known, /*IsSigned*/ false)); in getValueFromICmpCondition()
1179 ConstantRange NWR = ConstantRange::makeExactNoWrapRegion( in getValueFromOverflowCondition()
1273 return ValueLatticeElement::getRange(ConstantRange(C->getValue())); in constantFoldUser()
1284 return ValueLatticeElement::getRange(ConstantRange(C->getValue())); in constantFoldUser()
1288 return ValueLatticeElement::getRange(ConstantRange(OpConstVal)); in constantFoldUser()
1386 ConstantRange EdgesVals(BitWidth, DefaultCase/*isFullSet*/); in getEdgeValueLocal()
1390 ConstantRange EdgeVal(CaseValue); in getEdgeValueLocal()
1603 const ConstantRange &CR = Result.getConstantRange(); in getConstant()
1610 ConstantRange LazyValueInfo::getConstantRange(Value *V, Instruction *CxtI, in getConstantRange()
1618 return ConstantRange::getEmpty(Width); in getConstantRange()
1625 return ConstantRange::getFull(Width); in getConstantRange()
1640 const ConstantRange &CR = Result.getConstantRange(); in getConstantOnEdge()
1647 ConstantRange LazyValueInfo::getConstantRangeOnEdge(Value *V, in getConstantRangeOnEdge()
1657 return ConstantRange::getEmpty(Width); in getConstantRangeOnEdge()
1664 return ConstantRange::getFull(Width); in getConstantRangeOnEdge()
1683 const ConstantRange &CR = Val.getConstantRange(); in getPredicateResult()
1698 ConstantRange TrueValues = ConstantRange::makeExactICmpRegion( in getPredicateResult()