Lines Matching defs:getConstant
473 const SCEV *ScalarEvolution::getConstant(ConstantInt *V) {
484 const SCEV *ScalarEvolution::getConstant(const APInt &Val) {
485 return getConstant(ConstantInt::get(getContext(), Val));
489 ScalarEvolution::getConstant(Type *Ty, uint64_t V, bool isSigned) {
491 return getConstant(ConstantInt::get(ITy, V, isSigned));
507 const SCEV *Res = getConstant(Ty, EC.getKnownMinValue());
849 SE.getConstant(Fold(Folded->getAPInt(), C->getAPInt())));
967 const SCEV *S = SE.getMinusSCEV(It, SE.getConstant(It->getType(), i));
973 const SCEV *DivResult = SE.getUDivExpr(Dividend, SE.getConstant(DivFactor));
977 return SE.getMulExpr(SE.getConstant(MultiplyFactor),
1168 return getConstant(
1253 return SE->getConstant(APInt::getSignedMinValue(BitWidth) -
1258 return SE->getConstant(APInt::getSignedMaxValue(BitWidth) -
1273 return SE->getConstant(APInt::getMinValue(BitWidth) -
1479 const SCEV *PreStart = getConstant(StartAI - Delta);
1493 const SCEV *DeltaS = getConstant(StartC->getType(), Delta);
1593 return getConstant(SC->getAPInt().zext(getTypeSizeInBits(Ty)));
1740 const SCEV *N = getConstant(APInt::getMaxValue(BitWidth) -
1764 const SCEV *SZExtD = getZeroExtendExpr(getConstant(D), Ty, Depth);
1766 getAddRecExpr(getConstant(C - D), Step, L, AR->getNoWrapFlags());
1819 const SCEV *SZExtD = getZeroExtendExpr(getConstant(D), Ty, Depth);
1821 getAddExpr(getConstant(-D), SA, SCEV::FlagAnyWrap, Depth);
1929 return getConstant(SC->getAPInt().sext(getTypeSizeInBits(Ty)));
1992 const SCEV *SSExtD = getSignExtendExpr(getConstant(D), Ty, Depth);
1994 getAddExpr(getConstant(-D), SA, SCEV::FlagAnyWrap, Depth);
2116 const SCEV *SSExtD = getSignExtendExpr(getConstant(D), Ty, Depth);
2118 getAddRecExpr(getConstant(C - D), Step, L, AR->getNoWrapFlags());
2380 return isKnownPredicateAt(Pred, getConstant(Limit), LHS, CtxI);
2386 return isKnownPredicateAt(Pred, LHS, getConstant(Limit), CtxI);
2582 const SCEV *Scale = getConstant(Ty, Count);
2692 NewOps[0] = getConstant(ConstAdd);
2769 Ops.push_back(getConstant(AccumulatedConstant));
2775 getConstant(MulOp.first),
3335 const SCEV *CoeffTerm = getConstant(Ty, Coeff);
3467 getAddRecExpr(getConstant(StartInt - StartRem), Step,
3511 return getConstant(RHSC->getType(), 0, false);
3513 return getUDivExpr(OtherDiv->getLHS(), getConstant(NewRHS));
3538 return getConstant(LHSC->getAPInt().udiv(RHSC->getAPInt()));
3612 cast<SCEVConstant>(getConstant(LHSCst->getAPInt().udiv(Factor)));
3614 cast<SCEVConstant>(getConstant(RHSCst->getAPInt().udiv(Factor)));
4385 const SCEV *Res = getConstant(IntTy, Size.getKnownMinValue());
4408 return getConstant(IntTy, SL->getElementOffset(FieldNo));
4572 return getConstant(
4600 return getConstant(
5203 const SCEV *N = getConstant(APInt::getMinValue(BitWidth) -
7238 // NB! Calling ScalarEvolution::getConstant is fine, but we should not try to
7246 const SCEV *TrueStart = this->getConstant(StartPattern.TrueValue);
7247 const SCEV *TrueStep = this->getConstant(StepPattern.TrueValue);
7248 const SCEV *FalseStart = this->getConstant(StartPattern.FalseValue);
7249 const SCEV *FalseStep = this->getConstant(StepPattern.FalseValue);
7526 return getConstant(CI);
7712 return getConstant(CI);
7847 const SCEV *MulCount = getConstant(APInt::getOneBitSet(BitWidth, TZ));
7857 MulOps.push_back(getConstant(OpC->getAPInt().lshr(GCD)));
7860 ShiftedLHS = getUDivExpr(NewMul, getConstant(DivAmt));
7923 return getZeroExtendExpr(getAddExpr(Z0, getConstant(Trunc)),
7957 return getMulExpr(getSCEV(BO->LHS), getConstant(X), Flags);
8003 AddConstant = getConstant(AddOperand.trunc(BitWidth - AShrAmt));
8037 getMulExpr(AddTruncateExpr, getConstant(Mul));
9076 LHS = getAddExpr(LHS, getConstant(Offset));
9077 auto EL = computeExitLimitFromICmp(L, Pred, LHS, getConstant(NewRHSC),
9160 ConstantMaxBECount = getConstant(getUnsignedRangeMax(BECount));
9382 const SCEV *RHS = getConstant(Switch->findCaseDest(ExitingBlock));
9395 const SCEV *InVal = SE.getConstant(C);
9538 getConstant(getEffectiveSCEVType(RHS->getType()), BitWidth);
9825 return getConstant(Type::getInt32Ty(getContext()), IterationNum);
10219 SE.getURemExpr(B, SE.getConstant(APInt::getOneBitSet(BW, Mult2)));
10246 const SCEV *D = SE.getConstant(APInt::getOneBitSet(BW, Mult2));
10247 return SE.getUDivExactExpr(SE.getMulExpr(B, SE.getConstant(I)), D);
10560 const auto *R = cast<SCEVConstant>(getConstant(*S));
10626 return ExitLimit(Distance, getConstant(MaxBECount), Distance, false,
10650 getConstant(APIntOps::umin(MaxInt, getUnsignedRangeMax(Exact)));
10668 M = getConstant(APIntOps::umin(MaxWithGuards, getUnsignedRangeMax(E)));
10764 LHS = RHS = getConstant(ConstantInt::getFalse(getContext()));
10818 RHS = getConstant(NewRHS);
10842 RHS = getConstant(RA - 1);
10848 RHS = getConstant(RA + 1);
10854 RHS = getConstant(RA - 1);
10860 RHS = getConstant(RA + 1);
10880 RHS = getAddExpr(getConstant(RHS->getType(), 1, true), RHS,
10885 LHS = getAddExpr(getConstant(RHS->getType(), (uint64_t)-1, true), LHS,
10893 RHS = getAddExpr(getConstant(RHS->getType(), (uint64_t)-1, true), RHS,
10898 LHS = getAddExpr(getConstant(RHS->getType(), 1, true), LHS,
10906 RHS = getAddExpr(getConstant(RHS->getType(), 1, true), RHS,
10911 LHS = getAddExpr(getConstant(RHS->getType(), (uint64_t)-1, true), LHS);
10918 RHS = getAddExpr(getConstant(RHS->getType(), (uint64_t)-1, true), RHS);
10922 LHS = getAddExpr(getConstant(RHS->getType(), 1, true), LHS,
11799 getConstant(APInt::getMaxValue(BitWidth)), WideType);
11984 if (isImpliedCondOperands(Pred, LHS, RHS, V, getConstant(SharperMin),
12000 if (isImpliedCondOperands(Pred, LHS, RHS, V, getConstant(Min), CtxI))
12008 LHS, V, getConstant(SharperMin), CtxI))
12015 LHS, V, getConstant(Min), CtxI))
12296 getConstant(FoundRHSLimit));
12691 auto *DenomMinusTwo = getMinusSCEV(DenominatorExt, getConstant(WTy, 2));
12934 return getUDivCeilSCEV(getConstant(MaxEnd - MinStart) /* Delta */,
12935 getConstant(StrideForMaxBECount) /* Step */);
13371 ConstantMaxBECount = getConstant(getUnsignedRangeMax(BECount));
13466 : getUDivCeilSCEV(getConstant(MaxStart - MinEnd),
13467 getConstant(MinStride));
13538 return SE.getConstant(ExitValue);
13543 return SE.getConstant(*S);
14361 return SE.getConstant(Constant->getAPInt());
15286 RHS = getConstant(APInt(getTypeSizeInBits(Expr->getType()), 1)
15442 SE.getConstant(ExactRegion.getUnsignedMin()),
15444 SE.getConstant(ExactRegion.getUnsignedMax())));
15497 return SE.getConstant(ExprVal + DivisorVal - Rem);
15512 return SE.getConstant(ExprVal - Rem);