MLIR
21.0.0git
|
#include "mlir/Query/Matcher/VariantValue.h"
Public Member Functions | |
VariantValue () | |
VariantValue (const VariantValue &other) | |
~VariantValue () | |
VariantValue & | operator= (const VariantValue &other) |
VariantValue (const llvm::StringRef string) | |
VariantValue (const VariantMatcher &matcher) | |
VariantValue (int64_t signedValue) | |
VariantValue (bool setBoolean) | |
bool | isString () const |
const llvm::StringRef & | getString () const |
void | setString (const llvm::StringRef &string) |
bool | isMatcher () const |
const VariantMatcher & | getMatcher () const |
void | setMatcher (const VariantMatcher &matcher) |
bool | isSigned () const |
int64_t | getSigned () const |
void | setSigned (int64_t signedValue) |
bool | isBoolean () const |
bool | getBoolean () const |
void | setBoolean (bool booleanValue) |
std::string | getTypeAsString () const |
operator bool () const | |
bool | hasValue () const |
Definition at line 73 of file VariantValue.h.
|
inline |
Definition at line 75 of file VariantValue.h.
mlir::query::matcher::VariantValue::VariantValue | ( | const VariantValue & | other | ) |
Definition at line 44 of file VariantValue.cpp.
mlir::query::matcher::VariantValue::~VariantValue | ( | ) |
Definition at line 67 of file VariantValue.cpp.
mlir::query::matcher::VariantValue::VariantValue | ( | const llvm::StringRef | string | ) |
Definition at line 49 of file VariantValue.cpp.
References mlir::String.
mlir::query::matcher::VariantValue::VariantValue | ( | const VariantMatcher & | matcher | ) |
Definition at line 54 of file VariantValue.cpp.
References mlir::query::matcher::Matcher.
mlir::query::matcher::VariantValue::VariantValue | ( | int64_t | signedValue | ) |
Definition at line 59 of file VariantValue.cpp.
mlir::query::matcher::VariantValue::VariantValue | ( | bool | setBoolean | ) |
Definition at line 63 of file VariantValue.cpp.
References mlir::query::matcher::Boolean, and setBoolean().
bool mlir::query::matcher::VariantValue::getBoolean | ( | ) | const |
Definition at line 123 of file VariantValue.cpp.
Referenced by mlir::query::matcher::internal::ArgTypeTraits< bool >::get(), and operator=().
const VariantMatcher & mlir::query::matcher::VariantValue::getMatcher | ( | ) | const |
Definition at line 145 of file VariantValue.cpp.
References isMatcher().
Referenced by mlir::query::matcher::internal::ArgTypeTraits< DynMatcher >::get(), operator=(), and mlir::query::matcher::internal::Parser::parseMatcherExpression().
int64_t mlir::query::matcher::VariantValue::getSigned | ( | ) | const |
Definition at line 113 of file VariantValue.cpp.
Referenced by mlir::query::matcher::internal::ArgTypeTraits< int64_t >::get(), and operator=().
const llvm::StringRef & mlir::query::matcher::VariantValue::getString | ( | ) | const |
Definition at line 132 of file VariantValue.cpp.
References isString().
Referenced by mlir::query::matcher::internal::ArgTypeTraits< llvm::StringRef >::get(), and operator=().
std::string mlir::query::matcher::VariantValue::getTypeAsString | ( | ) | const |
Definition at line 156 of file VariantValue.cpp.
Referenced by mlir::query::matcher::internal::Parser::parseMatcherExpression().
|
inline |
Definition at line 109 of file VariantValue.h.
Referenced by operator bool().
bool mlir::query::matcher::VariantValue::isBoolean | ( | ) | const |
Definition at line 121 of file VariantValue.cpp.
Referenced by mlir::query::matcher::internal::ArgTypeTraits< bool >::hasCorrectType().
bool mlir::query::matcher::VariantValue::isMatcher | ( | ) | const |
Definition at line 143 of file VariantValue.cpp.
Referenced by getMatcher(), mlir::query::matcher::internal::ArgTypeTraits< DynMatcher >::hasCorrectType(), and mlir::query::matcher::internal::Parser::parseMatcherExpression().
bool mlir::query::matcher::VariantValue::isSigned | ( | ) | const |
Definition at line 111 of file VariantValue.cpp.
Referenced by mlir::query::matcher::internal::ArgTypeTraits< int64_t >::hasCorrectType().
bool mlir::query::matcher::VariantValue::isString | ( | ) | const |
Definition at line 130 of file VariantValue.cpp.
Referenced by getString(), and mlir::query::matcher::internal::ArgTypeTraits< llvm::StringRef >::hasCorrectType().
|
inlineexplicit |
Definition at line 108 of file VariantValue.h.
References hasValue().
VariantValue & mlir::query::matcher::VariantValue::operator= | ( | const VariantValue & | other | ) |
Definition at line 69 of file VariantValue.cpp.
References getBoolean(), getMatcher(), getSigned(), getString(), setBoolean(), setMatcher(), setSigned(), and setString().
void mlir::query::matcher::VariantValue::setBoolean | ( | bool | booleanValue | ) |
Definition at line 125 of file VariantValue.cpp.
Referenced by operator=(), and VariantValue().
void mlir::query::matcher::VariantValue::setMatcher | ( | const VariantMatcher & | matcher | ) |
Definition at line 150 of file VariantValue.cpp.
Referenced by operator=().
void mlir::query::matcher::VariantValue::setSigned | ( | int64_t | signedValue | ) |
Definition at line 115 of file VariantValue.cpp.
Referenced by operator=().
void mlir::query::matcher::VariantValue::setString | ( | const llvm::StringRef & | string | ) |
Definition at line 137 of file VariantValue.cpp.
Referenced by operator=().