Lines Matching refs:RightOperand

205                                           const ExpressionValue &RightOperand) {  in operator +()  argument
206 if (LeftOperand.isNegative() && RightOperand.isNegative()) { in operator +()
208 int64_t RightValue = cantFail(RightOperand.getSignedValue()); in operator +()
218 return RightOperand - LeftOperand.getAbsolute(); in operator +()
221 if (RightOperand.isNegative()) in operator +()
222 return LeftOperand - RightOperand.getAbsolute(); in operator +()
226 uint64_t RightValue = cantFail(RightOperand.getUnsignedValue()); in operator +()
236 const ExpressionValue &RightOperand) { in operator -() argument
238 if (LeftOperand.isNegative() && !RightOperand.isNegative()) { in operator -()
240 uint64_t RightValue = cantFail(RightOperand.getUnsignedValue()); in operator -()
254 return RightOperand.getAbsolute() - LeftOperand.getAbsolute(); in operator -()
257 if (RightOperand.isNegative()) in operator -()
258 return LeftOperand + RightOperand.getAbsolute(); in operator -()
262 uint64_t RightValue = cantFail(RightOperand.getUnsignedValue()); in operator -()
286 const ExpressionValue &RightOperand) { in operator *() argument
288 if (LeftOperand.isNegative() && RightOperand.isNegative()) in operator *()
289 return LeftOperand.getAbsolute() * RightOperand.getAbsolute(); in operator *()
292 if (RightOperand.isNegative()) in operator *()
293 return RightOperand * LeftOperand; in operator *()
295 assert(!RightOperand.isNegative() && "Unexpected negative operand!"); in operator *()
299 auto Result = LeftOperand.getAbsolute() * RightOperand.getAbsolute(); in operator *()
308 uint64_t RightValue = cantFail(RightOperand.getUnsignedValue()); in operator *()
318 const ExpressionValue &RightOperand) { in operator /() argument
320 if (LeftOperand.isNegative() && RightOperand.isNegative()) in operator /()
321 return LeftOperand.getAbsolute() / RightOperand.getAbsolute(); in operator /()
324 if (RightOperand == ExpressionValue(0)) in operator /()
328 if (LeftOperand.isNegative() || RightOperand.isNegative()) in operator /()
330 cantFail(LeftOperand.getAbsolute() / RightOperand.getAbsolute()); in operator /()
333 uint64_t RightValue = cantFail(RightOperand.getUnsignedValue()); in operator /()
338 const ExpressionValue &RightOperand) { in max() argument
339 if (LeftOperand.isNegative() && RightOperand.isNegative()) { in max()
341 int64_t RightValue = cantFail(RightOperand.getSignedValue()); in max()
345 if (!LeftOperand.isNegative() && !RightOperand.isNegative()) { in max()
347 uint64_t RightValue = cantFail(RightOperand.getUnsignedValue()); in max()
352 return RightOperand; in max()
358 const ExpressionValue &RightOperand) { in min() argument
359 if (cantFail(max(LeftOperand, RightOperand)) == LeftOperand) in min()
360 return RightOperand; in min()
375 Expected<ExpressionValue> RightOp = RightOperand->eval(); in eval()
394 Expected<ExpressionFormat> RightFormat = RightOperand->getImplicitFormat(SM); in getImplicitFormat()
411 RightOperand->getExpressionStr() + "' (" + RightFormat->toString() + in getImplicitFormat()