15 #ifndef MLIR_TOOLS_MLIRQUERY_MATCHER_REGISTRYMANAGER_H
16 #define MLIR_TOOLS_MLIRQUERY_MATCHER_REGISTRYMANAGER_H
22 #include "llvm/ADT/ArrayRef.h"
23 #include "llvm/ADT/StringMap.h"
24 #include "llvm/ADT/StringRef.h"
51 static std::optional<MatcherCtor>
58 static std::vector<MatcherCompletion>
64 llvm::StringRef functionName,
static std::vector< MatcherCompletion > getMatcherCompletions(ArrayRef< ArgKind > acceptedTypes, const Registry &matcherRegistry)
static std::vector< ArgKind > getAcceptedCompletionTypes(llvm::ArrayRef< std::pair< MatcherCtor, unsigned >> context)
static std::optional< MatcherCtor > lookupMatcherCtor(llvm::StringRef matcherName, const Registry &matcherRegistry)
static VariantMatcher constructMatcher(MatcherCtor ctor, internal::SourceRange nameRange, llvm::StringRef functionName, ArrayRef< ParserValue > args, internal::Diagnostics *error)
MatcherCompletion()=default
bool operator==(const MatcherCompletion &other) const
MatcherCompletion(llvm::StringRef typedText, llvm::StringRef matcherDecl)