Lines Matching refs:getValue
145 cast<SCEVConstant>(this)->getValue()->printAsOperand(OS, false); in print()
242 U->getValue()->printAsOperand(OS, false); in print()
279 return SC->getValue()->isZero(); in isZero()
285 return SC->getValue()->isOne(); in isOne()
291 return SC->getValue()->isAllOnesValue(); in isAllOnesValue()
306 return SC->getValue()->getValue().isNegative(); in isNonConstantNegative()
390 if (ConstantExpr *VCE = dyn_cast<ConstantExpr>(getValue())) in isSizeOf()
407 if (ConstantExpr *VCE = dyn_cast<ConstantExpr>(getValue())) in isAlignOf()
432 if (ConstantExpr *VCE = dyn_cast<ConstantExpr>(getValue())) in isOffsetOf()
494 const Value *LV = LU->getValue(), *RV = RU->getValue(); in compare()
545 const APInt &LA = LC->getValue()->getValue(); in compare()
546 const APInt &RA = RC->getValue()->getValue(); in compare()
774 APInt NumeratorVal = Numerator->getValue()->getValue(); in visitConstant()
775 APInt DenominatorVal = D->getValue()->getValue(); in visitConstant()
895 RewriteMap[cast<SCEVUnknown>(Denominator)->getValue()] = in visitMulExpr()
896 cast<SCEVConstant>(Zero)->getValue(); in visitMulExpr()
901 RewriteMap[cast<SCEVUnknown>(Denominator)->getValue()] = in visitMulExpr()
902 cast<SCEVConstant>(One)->getValue(); in visitMulExpr()
1105 cast<ConstantInt>(ConstantExpr::getTrunc(SC->getValue(), Ty))); in getTruncateExpr()
1393 APInt StartAI = StartC->getValue()->getValue(); in proveNoWrapByVaryingStart()
1435 cast<ConstantInt>(ConstantExpr::getZExt(SC->getValue(), Ty))); in getZeroExtendExpr()
1601 cast<ConstantInt>(ConstantExpr::getSExt(SC->getValue(), Ty))); in getSignExtendExpr()
1644 const APInt &C1 = SC1->getValue()->getValue(); in getSignExtendExpr()
1645 const APInt &C2 = SC2->getValue()->getValue(); in getSignExtendExpr()
1760 const APInt &C1 = SC1->getValue()->getValue(); in getSignExtendExpr()
1761 const APInt &C2 = SC2->getValue()->getValue(); in getSignExtendExpr()
1801 if (SC->getValue()->getValue().isNegative()) in getAnyExtendExpr()
1877 if (Scale != 1 || AccumulatedConstant != 0 || C->getValue()->isZero()) in CollectAddOperandsWithScales()
1879 AccumulatedConstant += Scale * C->getValue()->getValue(); in CollectAddOperandsWithScales()
1888 Scale * cast<SCEVConstant>(Mul->getOperand(0))->getValue()->getValue(); in CollectAddOperandsWithScales()
1995 Ops[0] = getConstant(LHSC->getValue()->getValue() + in getAddExpr()
1996 RHSC->getValue()->getValue()); in getAddExpr()
2003 if (LHSC->getValue()->isZero()) { in getAddExpr()
2414 LHSC->getValue()->getValue() * in getMulExpr()
2415 RHSC->getValue()->getValue()); in getMulExpr()
2423 if (cast<SCEVConstant>(Ops[0])->getValue()->equalsInt(1)) { in getMulExpr()
2426 } else if (cast<SCEVConstant>(Ops[0])->getValue()->isZero()) { in getMulExpr()
2631 if (RHSC->getValue()->equalsInt(1)) in getUDivExpr()
2636 if (!RHSC->getValue()->isZero()) { in getUDivExpr()
2641 unsigned LZ = RHSC->getValue()->getValue().countLeadingZeros(); in getUDivExpr()
2645 if (!RHSC->getValue()->getValue().isPowerOf2()) in getUDivExpr()
2653 const APInt &StepInt = Step->getValue()->getValue(); in getUDivExpr()
2654 const APInt &DivInt = RHSC->getValue()->getValue(); in getUDivExpr()
2675 const APInt &StartInt = StartC->getValue()->getValue(); in getUDivExpr()
2721 Constant *LHSCV = LHSC->getValue(); in getUDivExpr()
2722 Constant *RHSCV = RHSC->getValue(); in getUDivExpr()
2742 APInt A = C1->getValue()->getValue().abs(); in gcd()
2743 APInt B = C2->getValue()->getValue().abs(); in gcd()
2786 getConstant(LHSCst->getValue()->getValue().udiv(Factor))); in getUDivExactExpr()
2788 getConstant(RHSCst->getValue()->getValue().udiv(Factor))); in getUDivExactExpr()
2950 ConstantInt *Index = cast<SCEVConstant>(IndexExpr)->getValue(); in getGEPExpr()
3009 APIntOps::smax(LHSC->getValue()->getValue(), in getSMaxExpr()
3010 RHSC->getValue()->getValue())); in getSMaxExpr()
3018 if (cast<SCEVConstant>(Ops[0])->getValue()->isMinValue(true)) { in getSMaxExpr()
3021 } else if (cast<SCEVConstant>(Ops[0])->getValue()->isMaxValue(true)) { in getSMaxExpr()
3113 APIntOps::umax(LHSC->getValue()->getValue(), in getUMaxExpr()
3114 RHSC->getValue()->getValue())); in getUMaxExpr()
3122 if (cast<SCEVConstant>(Ops[0])->getValue()->isMinValue(false)) { in getUMaxExpr()
3125 } else if (cast<SCEVConstant>(Ops[0])->getValue()->isMaxValue(false)) { in getUMaxExpr()
3230 assert(cast<SCEVUnknown>(S)->getValue() == V && in getUnknown()
3294 if (!cast<SCEVUnknown>(S)->getValue()) in follow()
3341 cast<ConstantInt>(ConstantExpr::getNeg(VC->getValue()))); in getNegativeSCEV()
3353 cast<ConstantInt>(ConstantExpr::getNot(VC->getValue()))); in getNotSCEV()
3772 return C->getValue()->getValue().countTrailingZeros(); in GetMinTrailingZeros()
3837 computeKnownBits(U->getValue(), Zeros, Ones, in GetMinTrailingZeros()
3862 ConstantRange Range(Lower->getValue(), Upper->getValue()); in GetRangeFromMetadata()
3890 return setRange(C, SignHint, ConstantRange(C->getValue()->getValue())); in getRange()
3967 if (!C->getValue()->isZero()) in getRange()
3970 ConstantRange(C->getValue()->getValue(), APInt(BitWidth, 0))); in getRange()
4061 Optional<ConstantRange> MDRange = GetRangeFromMetadata(U->getValue()); in getRange()
4063 ConservativeResult = ConservativeResult.intersectWith(MDRange.getValue()); in getRange()
4072 computeKnownBits(U->getValue(), Zeros, Ones, DL, 0, AC, nullptr, DT); in getRange()
4079 unsigned NS = ComputeNumSignBits(U->getValue(), DL, 0, AC, nullptr, DT); in getRange()
4178 const APInt &A = CI->getValue(); in createSCEV()
4216 const APInt &CIVal = CI->getValue(); in createSCEV()
4236 if (CI->getValue().isSignBit()) in createSCEV()
4251 LCI->getValue() == CI->getValue()) in createSCEV()
4262 if (APIntOps::isMask(Z0TySize, CI->getValue())) in createSCEV()
4268 APInt Trunc = CI->getValue().trunc(Z0TySize); in createSCEV()
4269 if (Trunc.zext(getTypeSizeInBits(UTy)) == CI->getValue() && in createSCEV()
4286 if (SA->getValue().uge(BitWidth)) in createSCEV()
4304 if (SA->getValue().uge(BitWidth)) in createSCEV()
4325 if (CI->getValue().uge(BitWidth)) in createSCEV()
4496 ConstantInt *ExitConst = ExitCount->getValue(); in getSmallConstantTripCount()
4499 if (ExitConst->getValue().getActiveBits() > 32) in getSmallConstantTripCount()
4548 ConstantInt *Result = MulC->getValue(); in getSmallConstantTripMultiple()
4553 if (!Result || Result->getValue().getActiveBits() > 32 || in getSmallConstantTripMultiple()
4554 Result->getValue().getActiveBits() == 0) in getSmallConstantTripMultiple()
5152 ICmpInst::makeConstantRange(Cond, RHSC->getValue()->getValue())); in ComputeExitLimitFromICmp()
5230 return cast<SCEVConstant>(Val)->getValue(); in EvaluateConstantChrecAtConstant()
5305 if (cast<ConstantInt>(Result)->getValue().isMinValue()) { in ComputeLoadConstantCompareExitLimit()
5596 if (CondVal->getValue() == uint64_t(ExitWhen)) { in ComputeExitCountExhaustively()
5670 return cast<SCEVConstant>(V)->getValue(); in BuildConstantFromSCEV()
5672 return dyn_cast<Constant>(cast<SCEVUnknown>(V)->getValue()); in BuildConstantFromSCEV()
5765 if (Instruction *I = dyn_cast<Instruction>(SU->getValue())) { in computeSCEVAtScope()
5781 BTCC->getValue()->getValue(), in computeSCEVAtScope()
6024 uint32_t BitWidth = LC->getValue()->getValue().getBitWidth(); in SolveQuadraticEquation()
6025 const APInt &L = LC->getValue()->getValue(); in SolveQuadraticEquation()
6026 const APInt &M = MC->getValue()->getValue(); in SolveQuadraticEquation()
6027 const APInt &N = NC->getValue()->getValue(); in SolveQuadraticEquation()
6090 if (C->getValue()->isZero()) return C; in HowFarToZero()
6113 R1->getValue(), in HowFarToZero()
6114 R2->getValue()))) { in HowFarToZero()
6155 if (!StepC || StepC->getValue()->equalsInt(0)) in HowFarToZero()
6163 bool CountDown = StepC->getValue()->getValue().isNegative(); in HowFarToZero()
6169 if (StepC->getValue()->equalsInt(1) || StepC->getValue()->isAllOnesValue()) { in HowFarToZero()
6188 const APInt &StepV = StepC->getValue()->getValue(); in HowFarToZero()
6210 return SolveLinEquationWithOverflow(StepC->getValue()->getValue(), in HowFarToZero()
6211 -StartC->getValue()->getValue(), in HowFarToZero()
6228 if (!C->getValue()->isNullValue()) in HowFarToNonZero()
6274 if (const Instruction *AI = dyn_cast<Instruction>(AU->getValue())) in HasSameValue()
6275 if (const Instruction *BI = dyn_cast<Instruction>(BU->getValue())) in HasSameValue()
6300 LHSC->getValue(), in SimplifyICmpOperands()
6301 RHSC->getValue())->isNullValue()) in SimplifyICmpOperands()
6327 const APInt &RA = RC->getValue()->getValue(); in SimplifyICmpOperands()
6973 if (Min == C->getValue()->getValue()) { in isImpliedCond()
7049 if (!(AddLHS && AddLHS->getValue()->getValue().isAllOnesValue())) in MatchNotExpr()
7056 if (!(MulLHS && MulLHS->getValue()->getValue().isAllOnesValue())) in MatchNotExpr()
7188 APInt ConstFoundRHS = cast<SCEVConstant>(FoundRHS)->getValue()->getValue(); in isImpliedCondOperandsViaRanges()
7198 cast<SCEVConstant>(AddLHS->getOperand(0))->getValue()->getValue(); in isImpliedCondOperandsViaRanges()
7203 APInt ConstRHS = cast<SCEVConstant>(RHS)->getValue()->getValue(); in isImpliedCondOperandsViaRanges()
7327 APInt D = dyn_cast<const SCEVConstant>(Diff)->getValue()->getValue(); in HowManyLessThans()
7408 APInt D = dyn_cast<const SCEVConstant>(Diff)->getValue()->getValue(); in HowManyGreaterThans()
7461 if (!SC->getValue()->isZero()) { in getNumIterationsInRange()
7469 Range.subtract(SC->getValue()->getValue()), SE); in getNumIterationsInRange()
7499 APInt A = cast<SCEVConstant>(getOperand(1))->getValue()->getValue(); in getNumIterationsInRange()
7510 if (Range.contains(Val->getValue())) in getNumIterationsInRange()
7516 ConstantInt::get(SE.getContext(), ExitVal - One), SE)->getValue()) && in getNumIterationsInRange()
7539 R1->getValue(), R2->getValue()))) { in getNumIterationsInRange()
7547 R1->getValue(), in getNumIterationsInRange()
7549 if (Range.contains(R1Val->getValue())) { in getNumIterationsInRange()
7552 ConstantInt::get(SE.getContext(), R1->getValue()->getValue()+1); in getNumIterationsInRange()
7555 if (!Range.contains(R1Val->getValue())) in getNumIterationsInRange()
7563 ConstantInt::get(SE.getContext(), R1->getValue()->getValue()-1); in getNumIterationsInRange()
7565 if (Range.contains(R1Val->getValue())) in getNumIterationsInRange()
7582 if (isa<UndefValue>(C->getValue())) in follow()
7585 if (isa<UndefValue>(C->getValue())) in follow()
8303 if (Instruction *I = dyn_cast<Instruction>(cast<SCEVUnknown>(S)->getValue())) in computeLoopDisposition()
8388 dyn_cast<Instruction>(cast<SCEVUnknown>(S)->getValue())) { in computeBlockDisposition()