Lines Matching refs:CastedValue
266 struct CastedValue { struct
274 explicit CastedValue(const Value *V) : V(V) {} in CastedValue() argument
275 explicit CastedValue(const Value *V, unsigned ZExtBits, unsigned SExtBits, in CastedValue() argument
285 CastedValue withValue(const Value *NewV, bool PreserveNonNeg) const { in withValue() argument
286 return CastedValue(NewV, ZExtBits, SExtBits, TruncBits, in withValue()
291 CastedValue withZExtOfValue(const Value *NewV, bool ZExtNonNegative) const { in withZExtOfValue() argument
297 return CastedValue(NewV, ZExtBits, SExtBits, TruncBits - ExtendBy, in withZExtOfValue()
306 return CastedValue(NewV, ZExtBits + SExtBits + ExtendBy, 0, 0, in withZExtOfValue()
311 CastedValue withSExtOfValue(const Value *NewV) const { in withSExtOfValue() argument
317 return CastedValue(NewV, ZExtBits, SExtBits, TruncBits - ExtendBy, in withSExtOfValue()
324 return CastedValue(NewV, ZExtBits, SExtBits + ExtendBy, 0, IsNonNegative); in withSExtOfValue()
352 bool hasSameCastsAs(const CastedValue &Other) const { in hasSameCastsAs() argument
367 CastedValue Val;
374 LinearExpression(const CastedValue &Val, const APInt &Scale, in LinearExpression()
378 LinearExpression(const CastedValue &Val) : Val(Val), IsNSW(true) { in LinearExpression()
396 const CastedValue &Val, const DataLayout &DL, unsigned Depth, in GetLinearExpression()
506 CastedValue Val;
700 CastedValue(Index, 0, SExtBits, TruncBits, false), DL, 0, AC, DT); in DecomposeGEPExpression()
1905 GetLinearExpression(CastedValue(Var0.Val.V), DL, 0, AC, DT); in constantOffsetHeuristic()
1907 GetLinearExpression(CastedValue(Var1.Val.V), DL, 0, AC, DT); in constantOffsetHeuristic()