Lines Matching defs:getConstant

479 const SCEV *ScalarEvolution::getConstant(ConstantInt *V) {
490 const SCEV *ScalarEvolution::getConstant(const APInt &Val) {
491 return getConstant(ConstantInt::get(getContext(), Val));
495 ScalarEvolution::getConstant(Type *Ty, uint64_t V, bool isSigned) {
497 return getConstant(ConstantInt::get(ITy, V, isSigned));
513 const SCEV *Res = getConstant(Ty, EC.getKnownMinValue());
952 const SCEV *S = SE.getMinusSCEV(It, SE.getConstant(It->getType(), i));
958 const SCEV *DivResult = SE.getUDivExpr(Dividend, SE.getConstant(DivFactor));
962 return SE.getMulExpr(SE.getConstant(MultiplyFactor),
1153 return getConstant(
1238 return SE->getConstant(APInt::getSignedMinValue(BitWidth) -
1243 return SE->getConstant(APInt::getSignedMaxValue(BitWidth) -
1258 return SE->getConstant(APInt::getMinValue(BitWidth) -
1464 const SCEV *PreStart = getConstant(StartAI - Delta);
1478 const SCEV *DeltaS = getConstant(StartC->getType(), Delta);
1579 return getConstant(SC->getAPInt().zext(getTypeSizeInBits(Ty)));
1726 const SCEV *N = getConstant(APInt::getMaxValue(BitWidth) -
1750 const SCEV *SZExtD = getZeroExtendExpr(getConstant(D), Ty, Depth);
1752 getAddRecExpr(getConstant(C - D), Step, L, AR->getNoWrapFlags());
1805 const SCEV *SZExtD = getZeroExtendExpr(getConstant(D), Ty, Depth);
1807 getAddExpr(getConstant(-D), SA, SCEV::FlagAnyWrap, Depth);
1915 return getConstant(SC->getAPInt().sext(getTypeSizeInBits(Ty)));
1978 const SCEV *SSExtD = getSignExtendExpr(getConstant(D), Ty, Depth);
1980 getAddExpr(getConstant(-D), SA, SCEV::FlagAnyWrap, Depth);
2102 const SCEV *SSExtD = getSignExtendExpr(getConstant(D), Ty, Depth);
2104 getAddRecExpr(getConstant(C - D), Step, L, AR->getNoWrapFlags());
2366 return isKnownPredicateAt(Pred, getConstant(Limit), LHS, CtxI);
2372 return isKnownPredicateAt(Pred, LHS, getConstant(Limit), CtxI);
2539 Ops[0] = getConstant(LHSC->getAPInt() + RHSC->getAPInt());
2583 const SCEV *Scale = getConstant(Ty, Count);
2693 NewOps[0] = getConstant(ConstAdd);
2770 Ops.push_back(getConstant(AccumulatedConstant));
2776 getConstant(MulOp.first),
3132 Ops[0] = getConstant(LHSC->getAPInt() * RHSC->getAPInt());
3357 const SCEV *CoeffTerm = getConstant(Ty, Coeff);
3490 getAddRecExpr(getConstant(StartInt - StartRem), Step,
3534 return getConstant(RHSC->getType(), 0, false);
3536 return getUDivExpr(OtherDiv->getLHS(), getConstant(NewRHS));
3561 return getConstant(LHSC->getAPInt().udiv(RHSC->getAPInt()));
3619 cast<SCEVConstant>(getConstant(LHSCst->getAPInt().udiv(Factor)));
3621 cast<SCEVConstant>(getConstant(RHSCst->getAPInt().udiv(Factor)));
3886 Ops[0] = getConstant(Fold);
4407 const SCEV *Res = getConstant(IntTy, Size.getKnownMinValue());
4430 return getConstant(IntTy, SL->getElementOffset(FieldNo));
4594 return getConstant(
4622 return getConstant(
5225 const SCEV *N = getConstant(APInt::getMinValue(BitWidth) -
7216 // NB! Calling ScalarEvolution::getConstant is fine, but we should not try to
7224 const SCEV *TrueStart = this->getConstant(StartPattern.TrueValue);
7225 const SCEV *TrueStep = this->getConstant(StepPattern.TrueValue);
7226 const SCEV *FalseStart = this->getConstant(StartPattern.FalseValue);
7227 const SCEV *FalseStep = this->getConstant(StepPattern.FalseValue);
7489 return getConstant(CI);
7675 return getConstant(CI);
7810 const SCEV *MulCount = getConstant(APInt::getOneBitSet(BitWidth, TZ));
7820 MulOps.push_back(getConstant(OpC->getAPInt().lshr(GCD)));
7823 ShiftedLHS = getUDivExpr(NewMul, getConstant(DivAmt));
7886 return getZeroExtendExpr(getAddExpr(Z0, getConstant(Trunc)),
7920 return getMulExpr(getSCEV(BO->LHS), getConstant(X), Flags);
7966 AddConstant = getConstant(AddOperand.trunc(BitWidth - AShrAmt));
8000 getMulExpr(AddTruncateExpr, getConstant(Mul));
9018 LHS = getAddExpr(LHS, getConstant(Offset));
9019 auto EL = computeExitLimitFromICmp(L, Pred, LHS, getConstant(NewRHSC),
9102 ConstantMaxBECount = getConstant(getUnsignedRangeMax(BECount));
9305 const SCEV *RHS = getConstant(Switch->findCaseDest(ExitingBlock));
9318 const SCEV *InVal = SE.getConstant(C);
9461 getConstant(getEffectiveSCEVType(RHS->getType()), BitWidth);
9748 return getConstant(Type::getInt32Ty(getContext()), IterationNum);
10152 const SCEV *D = SE.getConstant(APInt::getOneBitSet(BW, Mult2));
10153 return SE.getUDivExactExpr(SE.getMulExpr(B, SE.getConstant(I)), D);
10466 const auto *R = cast<SCEVConstant>(getConstant(*S));
10533 return ExitLimit(Distance, getConstant(MaxBECount), Distance, false,
10557 getConstant(APIntOps::umin(MaxInt, getUnsignedRangeMax(Exact)));
10573 M = getConstant(APIntOps::umin(MaxWithGuards, getUnsignedRangeMax(E)));
10670 LHS = RHS = getConstant(ConstantInt::getFalse(getContext()));
10724 RHS = getConstant(NewRHS);
10748 RHS = getConstant(RA - 1);
10754 RHS = getConstant(RA + 1);
10760 RHS = getConstant(RA - 1);
10766 RHS = getConstant(RA + 1);
10786 RHS = getAddExpr(getConstant(RHS->getType(), 1, true), RHS,
10791 LHS = getAddExpr(getConstant(RHS->getType(), (uint64_t)-1, true), LHS,
10799 RHS = getAddExpr(getConstant(RHS->getType(), (uint64_t)-1, true), RHS,
10804 LHS = getAddExpr(getConstant(RHS->getType(), 1, true), LHS,
10812 RHS = getAddExpr(getConstant(RHS->getType(), 1, true), RHS,
10817 LHS = getAddExpr(getConstant(RHS->getType(), (uint64_t)-1, true), LHS);
10824 RHS = getAddExpr(getConstant(RHS->getType(), (uint64_t)-1, true), RHS);
10828 LHS = getAddExpr(getConstant(RHS->getType(), 1, true), LHS,
11689 getConstant(APInt::getMaxValue(BitWidth)), WideType);
11872 if (isImpliedCondOperands(Pred, LHS, RHS, V, getConstant(SharperMin),
11888 if (isImpliedCondOperands(Pred, LHS, RHS, V, getConstant(Min), CtxI))
11896 LHS, V, getConstant(SharperMin), CtxI))
11903 LHS, V, getConstant(Min), CtxI))
12122 getConstant(FoundRHSLimit));
12519 auto *DenomMinusTwo = getMinusSCEV(DenominatorExt, getConstant(WTy, 2));
12769 return getUDivCeilSCEV(getConstant(MaxEnd - MinStart) /* Delta */,
12770 getConstant(StrideForMaxBECount) /* Step */);
13248 ConstantMaxBECount = getConstant(getUnsignedRangeMax(BECount));
13343 : getUDivCeilSCEV(getConstant(MaxStart - MinEnd),
13344 getConstant(MinStride));
13415 return SE.getConstant(ExitValue);
13420 return SE.getConstant(*S);
14187 return SE.getConstant(Constant->getAPInt());
15054 RHS = getConstant(APInt(getTypeSizeInBits(Expr->getType()), 1)
15136 SE.getConstant(ExactRegion.getUnsignedMin()),
15138 SE.getConstant(ExactRegion.getUnsignedMax())));
15191 return SE.getConstant(ExprVal + DivisorVal - Rem);
15206 return SE.getConstant(ExprVal - Rem);