#include "RegistryManager.h"
#include "mlir/Query/Matcher/Registry.h"
#include <set>
#include <utility>
namespace mlir::query::matcher {
namespace {
IsConstantOp;
HasOpAttrName;
HasOpName;
static std::string asArgString(ArgKind kind) { … }
}
void Registry::registerMatcherDescriptor(
llvm::StringRef matcherName,
std::unique_ptr<internal::MatcherDescriptor> callback) { … }
std::optional<MatcherCtor>
RegistryManager::lookupMatcherCtor(llvm::StringRef matcherName,
const Registry &matcherRegistry) { … }
std::vector<ArgKind> RegistryManager::getAcceptedCompletionTypes(
llvm::ArrayRef<std::pair<MatcherCtor, unsigned>> context) { … }
std::vector<MatcherCompletion>
RegistryManager::getMatcherCompletions(llvm::ArrayRef<ArgKind> acceptedTypes,
const Registry &matcherRegistry) { … }
VariantMatcher RegistryManager::constructMatcher(
MatcherCtor ctor, internal::SourceRange nameRange,
llvm::StringRef functionName, llvm::ArrayRef<ParserValue> args,
internal::Diagnostics *error) { … }
}