LLVM 17.0.0git
|
Class representing a numeric value. More...
#include "FileCheck/FileCheckImpl.h"
Public Member Functions | |
template<class T > | |
ExpressionValue (T Val) | |
bool | operator== (const ExpressionValue &Other) const |
bool | operator!= (const ExpressionValue &Other) const |
bool | isNegative () const |
Returns true if value is signed and negative, false otherwise. | |
Expected< int64_t > | getSignedValue () const |
Expected< uint64_t > | getUnsignedValue () const |
ExpressionValue | getAbsolute () const |
Class representing a numeric value.
Definition at line 121 of file FileCheckImpl.h.
Definition at line 128 of file FileCheckImpl.h.
ExpressionValue ExpressionValue::getAbsolute | ( | ) | const |
Definition at line 185 of file FileCheck.cpp.
References getAsSigned().
Referenced by llvm::ExpressionFormat::getMatchingString(), llvm::operator*(), llvm::operator+(), llvm::operator-(), and llvm::operator/().
Expected< int64_t > ExpressionValue::getSignedValue | ( | ) | const |
Definition at line 167 of file FileCheck.cpp.
References getAsSigned().
Referenced by llvm::ExpressionFormat::getMatchingString(), llvm::max(), llvm::operator+(), and llvm::operator-().
Definition at line 178 of file FileCheck.cpp.
Referenced by llvm::ExpressionFormat::getMatchingString(), llvm::max(), llvm::operator*(), llvm::operator+(), llvm::operator-(), and llvm::operator/().
|
inline |
Returns true if value is signed and negative, false otherwise.
Definition at line 139 of file FileCheckImpl.h.
References assert().
Referenced by llvm::ExpressionFormat::getMatchingString(), llvm::max(), llvm::operator*(), llvm::operator+(), llvm::operator-(), llvm::operator/(), and operator==().
|
inline |
Definition at line 134 of file FileCheckImpl.h.
References llvm::Other.
|
inline |
Definition at line 130 of file FileCheckImpl.h.
References isNegative(), and llvm::Other.