Lines Matching refs:Scale
337 APInt Scale; member
343 LinearExpression(const CastedValue &Val, const APInt &Scale, in LinearExpression()
345 : Val(Val), Scale(Scale), Offset(Offset), IsNSW(IsNSW) {} in LinearExpression()
349 Scale = APInt(BitWidth, 1); in LinearExpression()
357 return LinearExpression(Val, Scale * Other, Offset * Other, NSW); in mul()
436 E.Scale <<= RHS.getLimitedValue(); in GetLinearExpression()
476 APInt Scale; member
491 return Scale == -Other.Scale; in hasNegatedScaleOf()
492 return Scale == Other.Scale; in hasNegatedScaleOf()
504 << ", scale=" << Scale in print()
675 APInt Scale = LE.Scale.sext(MaxIndexSize); in DecomposeGEPExpression() local
684 Scale += Decomposed.VarIndices[i].Scale; in DecomposeGEPExpression()
693 adjustToIndexSize(Scale, IndexSize); in DecomposeGEPExpression()
695 if (!!Scale) { in DecomposeGEPExpression()
696 VariableGEPIndex Entry = {LE.Val, Scale, CxtI, LE.IsNSW, in DecomposeGEPExpression()
1175 const APInt &Scale = Index.Scale; in aliasGEP() local
1176 APInt ScaleForGCD = Scale; in aliasGEP()
1179 APInt::getOneBitSet(Scale.getBitWidth(), Scale.countr_zero()); in aliasGEP()
1195 assert(OffsetRange.getBitWidth() == Scale.getBitWidth() && in aliasGEP()
1198 CR = CR.smul_sat(ConstantRange(Scale)); in aliasGEP()
1200 CR = CR.smul_fast(ConstantRange(Scale)); in aliasGEP()
1252 return Var.Scale.ule( in aliasGEP()
1253 APInt::getMaxValue(MaxScaleValueBW).zext(Var.Scale.getBitWidth())); in aliasGEP()
1259 MinAbsVarIndex = Var.Scale.abs(); in aliasGEP()
1273 MinAbsVarIndex = Var0.Scale.abs(); in aliasGEP()
1760 Dest.Scale = -Dest.Scale; in subtractDecomposedGEPs()
1767 if (Dest.Scale != Src.Scale) { in subtractDecomposedGEPs()
1768 Dest.Scale -= Src.Scale; in subtractDecomposedGEPs()
1779 VariableGEPIndex Entry = {Src.Val, Src.Scale, Src.CxtI, Src.IsNSW, in subtractDecomposedGEPs()
1814 if (E0.Scale != E1.Scale || !E0.Val.hasSameCastsAs(E1.Val) || in constantOffsetHeuristic()
1828 MinDiff.zextOrTrunc(Var0.Scale.getBitWidth()) * Var0.Scale.abs(); in constantOffsetHeuristic()