Home
last modified time | relevance | path

Searched refs:ExpressionValue (Results 1 – 4 of 4) sorted by relevance

/external/llvm-project/llvm/lib/FileCheck/
DFileCheckImpl.h34 class ExpressionValue; variable
93 Expected<std::string> getMatchingString(ExpressionValue Value) const;
99 Expected<ExpressionValue> valueFromStringRepr(StringRef StrVal,
117 class ExpressionValue {
124 explicit ExpressionValue(T Val) : Value(Val), Negative(Val < 0) {} in ExpressionValue() function
126 bool operator==(const ExpressionValue &Other) const {
130 bool operator!=(const ExpressionValue &Other) const {
150 ExpressionValue getAbsolute() const;
155 Expected<ExpressionValue> operator+(const ExpressionValue &Lhs,
156 const ExpressionValue &Rhs);
[all …]
DFileCheck.cpp76 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 +()
[all …]
/external/llvm-project/llvm/unittests/FileCheck/
DFileCheckTest.cpp177 Format.getMatchingString(ExpressionValue(Val)); in checkMatchingString()
185 Format.getMatchingString(ExpressionValue(Val)); in checkMatchingStringFailure()
190 Expected<ExpressionValue> getValueFromStringReprFailure(StringRef Str) { in getValueFromStringReprFailure()
197 Expected<ExpressionValue> ResultValue = getValueFromStringReprFailure(Str); in checkValueFromStringRepr()
212 Expected<ExpressionValue> ResultValue = getValueFromStringReprFailure(Str); in checkValueFromStringReprFailure()
327 NoFormat.getMatchingString(ExpressionValue(18u)).takeError()); in TEST_F()
359 static Expected<ExpressionValue> doValueOperation(binop_eval_t Operation, in doValueOperation()
361 ExpressionValue LeftOperand(LeftValue); in doValueOperation()
362 ExpressionValue RightOperand(RightValue); in doValueOperation()
367 static void expectValueEqual(ExpressionValue ActualValue, T ExpectedValue) { in expectValueEqual()
[all …]
/external/llvm-project/flang/lib/Parser/
Dpreprocessor.cpp712 static std::int64_t ExpressionValue(const TokenSequence &token, in ExpressionValue() function
844 left = ExpressionValue(token, operandPrecedence[op], atToken, error); in ExpressionValue()
902 ExpressionValue(token, operandPrecedence[op], atToken, error)}; in ExpressionValue()
1027 ExpressionValue(token, operandPrecedence[op], atToken, error)}; in ExpressionValue()
1078 bool result{ExpressionValue(expr3, 0, &atToken, &error) != 0}; in IsIfPredicateTrue()