• Home
  • Raw
  • Download

Lines Matching refs:RightOperand

187                                           const ExpressionValue &RightOperand) {  in operator +()  argument
188 if (LeftOperand.isNegative() && RightOperand.isNegative()) { in operator +()
190 int64_t RightValue = cantFail(RightOperand.getSignedValue()); in operator +()
200 return RightOperand - LeftOperand.getAbsolute(); in operator +()
203 if (RightOperand.isNegative()) in operator +()
204 return LeftOperand - RightOperand.getAbsolute(); in operator +()
208 uint64_t RightValue = cantFail(RightOperand.getUnsignedValue()); in operator +()
218 const ExpressionValue &RightOperand) { in operator -() argument
220 if (LeftOperand.isNegative() && !RightOperand.isNegative()) { in operator -()
222 uint64_t RightValue = cantFail(RightOperand.getUnsignedValue()); in operator -()
236 return RightOperand.getAbsolute() - LeftOperand.getAbsolute(); in operator -()
239 if (RightOperand.isNegative()) in operator -()
240 return LeftOperand + RightOperand.getAbsolute(); in operator -()
244 uint64_t RightValue = cantFail(RightOperand.getUnsignedValue()); in operator -()
268 const ExpressionValue &RightOperand) { in operator *() argument
270 if (LeftOperand.isNegative() && RightOperand.isNegative()) in operator *()
271 return LeftOperand.getAbsolute() * RightOperand.getAbsolute(); in operator *()
274 if (RightOperand.isNegative()) in operator *()
275 return RightOperand * LeftOperand; in operator *()
277 assert(!RightOperand.isNegative() && "Unexpected negative operand!"); in operator *()
281 auto Result = LeftOperand.getAbsolute() * RightOperand.getAbsolute(); in operator *()
290 uint64_t RightValue = cantFail(RightOperand.getUnsignedValue()); in operator *()
300 const ExpressionValue &RightOperand) { in operator /() argument
302 if (LeftOperand.isNegative() && RightOperand.isNegative()) in operator /()
303 return LeftOperand.getAbsolute() / RightOperand.getAbsolute(); in operator /()
306 if (RightOperand == ExpressionValue(0)) in operator /()
310 if (LeftOperand.isNegative() || RightOperand.isNegative()) in operator /()
312 cantFail(LeftOperand.getAbsolute() / RightOperand.getAbsolute()); in operator /()
315 uint64_t RightValue = cantFail(RightOperand.getUnsignedValue()); in operator /()
320 const ExpressionValue &RightOperand) { in max() argument
321 if (LeftOperand.isNegative() && RightOperand.isNegative()) { in max()
323 int64_t RightValue = cantFail(RightOperand.getSignedValue()); in max()
327 if (!LeftOperand.isNegative() && !RightOperand.isNegative()) { in max()
329 uint64_t RightValue = cantFail(RightOperand.getUnsignedValue()); in max()
334 return RightOperand; in max()
340 const ExpressionValue &RightOperand) { in min() argument
341 if (cantFail(max(LeftOperand, RightOperand)) == LeftOperand) in min()
342 return RightOperand; in min()
357 Expected<ExpressionValue> RightOp = RightOperand->eval(); in eval()
376 Expected<ExpressionFormat> RightFormat = RightOperand->getImplicitFormat(SM); in getImplicitFormat()
393 RightOperand->getExpressionStr() + "' (" + RightFormat->toString() + in getImplicitFormat()