Lines Matching refs:ExpressionValue

80 ExpressionFormat::getMatchingString(ExpressionValue IntegerValue) const {  in getMatchingString()
127 Expected<ExpressionValue>
143 return ExpressionValue(SignedValue); in valueFromStringRepr()
157 return ExpressionValue(UnsignedValue); in valueFromStringRepr()
170 Expected<int64_t> ExpressionValue::getSignedValue() const { in getSignedValue()
181 Expected<uint64_t> ExpressionValue::getUnsignedValue() const { in getUnsignedValue()
188 ExpressionValue ExpressionValue::getAbsolute() const { in getAbsolute()
196 return ExpressionValue(-getAsSigned(Value)); in getAbsolute()
201 return ExpressionValue(MaxInt64 + RemainingValueAbsolute); in getAbsolute()
204 Expected<ExpressionValue> llvm::operator+(const ExpressionValue &LeftOperand, in operator +()
205 const ExpressionValue &RightOperand) { in operator +()
213 return ExpressionValue(*Result); in operator +()
232 return ExpressionValue(*Result); in operator +()
235 Expected<ExpressionValue> llvm::operator-(const ExpressionValue &LeftOperand, in operator -()
236 const ExpressionValue &RightOperand) { in operator -()
249 return ExpressionValue(*Result); in operator -()
264 return ExpressionValue(LeftValue - RightValue); in operator -()
278 return ExpressionValue(Result); in operator -()
281 return ExpressionValue(-static_cast<int64_t>(AbsoluteDifference)); in operator -()
285 Expected<ExpressionValue> llvm::operator*(const ExpressionValue &LeftOperand, in operator *()
286 const ExpressionValue &RightOperand) { in operator *()
303 return ExpressionValue(0) - *Result; in operator *()
314 return ExpressionValue(*Result); in operator *()
317 Expected<ExpressionValue> llvm::operator/(const ExpressionValue &LeftOperand, in operator /()
318 const ExpressionValue &RightOperand) { in operator /()
324 if (RightOperand == ExpressionValue(0)) in operator /()
329 return ExpressionValue(0) - in operator /()
334 return ExpressionValue(LeftValue / RightValue); in operator /()
337 Expected<ExpressionValue> llvm::max(const ExpressionValue &LeftOperand, in max()
338 const ExpressionValue &RightOperand) { in max()
342 return ExpressionValue(std::max(LeftValue, RightValue)); in max()
348 return ExpressionValue(std::max(LeftValue, RightValue)); in max()
357 Expected<ExpressionValue> llvm::min(const ExpressionValue &LeftOperand, in min()
358 const ExpressionValue &RightOperand) { in min()
365 Expected<ExpressionValue> NumericVariableUse::eval() const { in eval()
366 Optional<ExpressionValue> Value = Variable->getValue(); in eval()
373 Expected<ExpressionValue> BinaryOperation::eval() const { in eval()
374 Expected<ExpressionValue> LeftOp = LeftOperand->eval(); in eval()
375 Expected<ExpressionValue> RightOp = RightOperand->eval(); in eval()
421 Expected<ExpressionValue> EvaluatedValue = in getResult()
1252 Context->LineVariable->setValue(ExpressionValue(*LineNumber)); in match()
1331 Expected<ExpressionValue> Value = in match()
2717 Expected<ExpressionValue> Value = Expression->getAST()->eval(); in defineCmdlineVariables()