Lines Matching refs:CastedValue
259 struct CastedValue { struct
265 explicit CastedValue(const Value *V) : V(V) {} in CastedValue() argument
266 explicit CastedValue(const Value *V, unsigned ZExtBits, unsigned SExtBits, in CastedValue() function
275 CastedValue withValue(const Value *NewV) const { in withValue() argument
276 return CastedValue(NewV, ZExtBits, SExtBits, TruncBits); in withValue()
280 CastedValue withZExtOfValue(const Value *NewV) const { in withZExtOfValue() argument
284 return CastedValue(NewV, ZExtBits, SExtBits, TruncBits - ExtendBy); in withZExtOfValue()
288 return CastedValue(NewV, ZExtBits + SExtBits + ExtendBy, 0, 0); in withZExtOfValue()
292 CastedValue withSExtOfValue(const Value *NewV) const { in withSExtOfValue() argument
296 return CastedValue(NewV, ZExtBits, SExtBits, TruncBits - ExtendBy); in withSExtOfValue()
300 return CastedValue(NewV, ZExtBits, SExtBits + ExtendBy, 0); in withSExtOfValue()
328 bool hasSameCastsAs(const CastedValue &Other) const { in hasSameCastsAs() argument
336 CastedValue Val;
343 LinearExpression(const CastedValue &Val, const APInt &Scale, in LinearExpression()
347 LinearExpression(const CastedValue &Val) : Val(Val), IsNSW(true) { in LinearExpression()
365 const CastedValue &Val, const DataLayout &DL, unsigned Depth, in GetLinearExpression()
475 CastedValue Val;
669 CastedValue(Index, 0, SExtBits, TruncBits), DL, 0, AC, DT); in DecomposeGEPExpression()
1811 GetLinearExpression(CastedValue(Var0.Val.V), DL, 0, AC, DT); in constantOffsetHeuristic()
1813 GetLinearExpression(CastedValue(Var1.Val.V), DL, 0, AC, DT); in constantOffsetHeuristic()