16 #ifndef MLIR_TOOLS_MLIRQUERY_MATCHER_REGISTRY_H
17 #define MLIR_TOOLS_MLIRQUERY_MATCHER_REGISTRY_H
20 #include "llvm/ADT/StringMap.h"
26 llvm::StringMap<std::unique_ptr<const internal::MatcherDescriptor>>;
35 template <
typename MatcherType>
37 registerMatcherDescriptor(name,
42 void registerMatcherDescriptor(
43 llvm::StringRef matcherName,
44 std::unique_ptr<internal::MatcherDescriptor> callback);
void registerMatcher(const std::string &name, MatcherType matcher)
const ConstructorMap & constructors() const
std::unique_ptr< MatcherDescriptor > makeMatcherAutoMarshall(ReturnType(*matcherFunc)(ArgTypes...), llvm::StringRef matcherName)
llvm::StringMap< std::unique_ptr< const internal::MatcherDescriptor > > ConstructorMap