Lines Matching refs:LeftOperand

204 Expected<ExpressionValue> llvm::operator+(const ExpressionValue &LeftOperand,  in operator +()  argument
206 if (LeftOperand.isNegative() && RightOperand.isNegative()) { in operator +()
207 int64_t LeftValue = cantFail(LeftOperand.getSignedValue()); in operator +()
217 if (LeftOperand.isNegative()) in operator +()
218 return RightOperand - LeftOperand.getAbsolute(); in operator +()
222 return LeftOperand - RightOperand.getAbsolute(); in operator +()
225 uint64_t LeftValue = cantFail(LeftOperand.getUnsignedValue()); in operator +()
235 Expected<ExpressionValue> llvm::operator-(const ExpressionValue &LeftOperand, in operator -() argument
238 if (LeftOperand.isNegative() && !RightOperand.isNegative()) { in operator -()
239 int64_t LeftValue = cantFail(LeftOperand.getSignedValue()); in operator -()
253 if (LeftOperand.isNegative()) in operator -()
254 return RightOperand.getAbsolute() - LeftOperand.getAbsolute(); in operator -()
258 return LeftOperand + RightOperand.getAbsolute(); in operator -()
261 uint64_t LeftValue = cantFail(LeftOperand.getUnsignedValue()); in operator -()
285 Expected<ExpressionValue> llvm::operator*(const ExpressionValue &LeftOperand, in operator *() argument
288 if (LeftOperand.isNegative() && RightOperand.isNegative()) in operator *()
289 return LeftOperand.getAbsolute() * RightOperand.getAbsolute(); in operator *()
293 return RightOperand * LeftOperand; in operator *()
298 if (LeftOperand.isNegative()) { in operator *()
299 auto Result = LeftOperand.getAbsolute() * RightOperand.getAbsolute(); in operator *()
307 uint64_t LeftValue = cantFail(LeftOperand.getUnsignedValue()); in operator *()
317 Expected<ExpressionValue> llvm::operator/(const ExpressionValue &LeftOperand, in operator /() argument
320 if (LeftOperand.isNegative() && RightOperand.isNegative()) in operator /()
321 return LeftOperand.getAbsolute() / RightOperand.getAbsolute(); in operator /()
328 if (LeftOperand.isNegative() || RightOperand.isNegative()) in operator /()
330 cantFail(LeftOperand.getAbsolute() / RightOperand.getAbsolute()); in operator /()
332 uint64_t LeftValue = cantFail(LeftOperand.getUnsignedValue()); in operator /()
337 Expected<ExpressionValue> llvm::max(const ExpressionValue &LeftOperand, in max() argument
339 if (LeftOperand.isNegative() && RightOperand.isNegative()) { in max()
340 int64_t LeftValue = cantFail(LeftOperand.getSignedValue()); in max()
345 if (!LeftOperand.isNegative() && !RightOperand.isNegative()) { in max()
346 uint64_t LeftValue = cantFail(LeftOperand.getUnsignedValue()); in max()
351 if (LeftOperand.isNegative()) in max()
354 return LeftOperand; in max()
357 Expected<ExpressionValue> llvm::min(const ExpressionValue &LeftOperand, in min() argument
359 if (cantFail(max(LeftOperand, RightOperand)) == LeftOperand) in min()
362 return LeftOperand; in min()
374 Expected<ExpressionValue> LeftOp = LeftOperand->eval(); in eval()
393 Expected<ExpressionFormat> LeftFormat = LeftOperand->getImplicitFormat(SM); in getImplicitFormat()
409 "implicit format conflict between '" + LeftOperand->getExpressionStr() + in getImplicitFormat()