MLIR
20.0.0git
|
#include "Query/Matcher/Parser.h"
Classes | |
class | CodeTokenizer |
class | RegistrySema |
struct | ScopedContextEntry |
class | Sema |
struct | TokenInfo |
Public Types | |
enum class | TokenKind { Eof , NewLine , OpenParen , CloseParen , Comma , Period , Literal , Ident , InvalidChar , CodeCompletion , Error } |
using | NamedValueMap = llvm::StringMap< VariantValue > |
Static Public Member Functions | |
static std::optional< DynMatcher > | parseMatcherExpression (llvm::StringRef &matcherCode, const Registry &matcherRegistry, const NamedValueMap *namedValues, Diagnostics *error) |
static std::optional< DynMatcher > | parseMatcherExpression (llvm::StringRef &matcherCode, const Registry &matcherRegistry, Diagnostics *error) |
static bool | parseExpression (llvm::StringRef &code, const Registry &matcherRegistry, const NamedValueMap *namedValues, VariantValue *value, Diagnostics *error) |
static bool | parseExpression (llvm::StringRef &code, const Registry &matcherRegistry, VariantValue *value, Diagnostics *error) |
static std::vector< MatcherCompletion > | completeExpression (llvm::StringRef &code, unsigned completionOffset, const Registry &matcherRegistry, const NamedValueMap *namedValues) |
static std::vector< MatcherCompletion > | completeExpression (llvm::StringRef &code, unsigned completionOffset, const Registry &matcherRegistry) |
using mlir::query::matcher::internal::Parser::NamedValueMap = llvm::StringMap<VariantValue> |
|
inlinestatic |
Definition at line 143 of file Parser.h.
References completeExpression().
|
static |
Definition at line 564 of file Parser.cpp.
Referenced by completeExpression().
|
static |
Definition at line 545 of file Parser.cpp.
References mlir::query::matcher::internal::Diagnostics::addError(), Eof, NewLine, mlir::query::matcher::internal::ParserTrailingCode, mlir::query::matcher::internal::Parser::CodeTokenizer::peekNextToken(), and mlir::query::matcher::internal::Parser::TokenInfo::range.
Referenced by parseExpression(), and parseMatcherExpression().
|
inlinestatic |
Definition at line 131 of file Parser.h.
References parseExpression().
|
static |
Definition at line 576 of file Parser.cpp.
References mlir::query::matcher::internal::Diagnostics::addError(), mlir::query::matcher::VariantMatcher::getDynMatcher(), mlir::query::matcher::VariantValue::getMatcher(), mlir::query::matcher::VariantValue::getTypeAsString(), mlir::query::matcher::VariantValue::isMatcher(), parseExpression(), mlir::query::matcher::internal::ParserNotAMatcher, and mlir::query::matcher::internal::ParserOverloadedType.
Referenced by parseMatcherExpression().
|
inlinestatic |
Definition at line 120 of file Parser.h.
References parseMatcherExpression().