Lines Matching refs:ExpressionValue
76 ExpressionFormat::getMatchingString(ExpressionValue IntegerValue) const { in getMatchingString()
120 Expected<ExpressionValue>
131 return ExpressionValue(SignedValue); in valueFromStringRepr()
139 return ExpressionValue(UnsignedValue); in valueFromStringRepr()
152 Expected<int64_t> ExpressionValue::getSignedValue() const { in getSignedValue()
163 Expected<uint64_t> ExpressionValue::getUnsignedValue() const { in getUnsignedValue()
170 ExpressionValue ExpressionValue::getAbsolute() const { in getAbsolute()
178 return ExpressionValue(-getAsSigned(Value)); in getAbsolute()
183 return ExpressionValue(MaxInt64 + RemainingValueAbsolute); in getAbsolute()
186 Expected<ExpressionValue> llvm::operator+(const ExpressionValue &LeftOperand, in operator +()
187 const ExpressionValue &RightOperand) { in operator +()
195 return ExpressionValue(*Result); in operator +()
214 return ExpressionValue(*Result); in operator +()
217 Expected<ExpressionValue> llvm::operator-(const ExpressionValue &LeftOperand, in operator -()
218 const ExpressionValue &RightOperand) { in operator -()
231 return ExpressionValue(*Result); in operator -()
246 return ExpressionValue(LeftValue - RightValue); in operator -()
260 return ExpressionValue(Result); in operator -()
263 return ExpressionValue(-static_cast<int64_t>(AbsoluteDifference)); in operator -()
267 Expected<ExpressionValue> llvm::operator*(const ExpressionValue &LeftOperand, in operator *()
268 const ExpressionValue &RightOperand) { in operator *()
285 return ExpressionValue(0) - *Result; in operator *()
296 return ExpressionValue(*Result); in operator *()
299 Expected<ExpressionValue> llvm::operator/(const ExpressionValue &LeftOperand, in operator /()
300 const ExpressionValue &RightOperand) { in operator /()
306 if (RightOperand == ExpressionValue(0)) in operator /()
311 return ExpressionValue(0) - in operator /()
316 return ExpressionValue(LeftValue / RightValue); in operator /()
319 Expected<ExpressionValue> llvm::max(const ExpressionValue &LeftOperand, in max()
320 const ExpressionValue &RightOperand) { in max()
324 return ExpressionValue(std::max(LeftValue, RightValue)); in max()
330 return ExpressionValue(std::max(LeftValue, RightValue)); in max()
339 Expected<ExpressionValue> llvm::min(const ExpressionValue &LeftOperand, in min()
340 const ExpressionValue &RightOperand) { in min()
347 Expected<ExpressionValue> NumericVariableUse::eval() const { in eval()
348 Optional<ExpressionValue> Value = Variable->getValue(); in eval()
355 Expected<ExpressionValue> BinaryOperation::eval() const { in eval()
356 Expected<ExpressionValue> LeftOp = LeftOperand->eval(); in eval()
357 Expected<ExpressionValue> RightOp = RightOperand->eval(); in eval()
403 Expected<ExpressionValue> EvaluatedValue = in getResult()
1208 Context->LineVariable->setValue(ExpressionValue(*LineNumber)); in match()
1269 Expected<ExpressionValue> Value = in match()
2567 Expected<ExpressionValue> Value = Expression->getAST()->eval(); in defineCmdlineVariables()