MLIR  20.0.0git
Public Types | Public Member Functions | List of all members
mlir::query::matcher::internal::FixedArgCountMatcherDescriptor Class Reference

#include "mlir/Query/Matcher/Marshallers.h"

+ Inheritance diagram for mlir::query::matcher::internal::FixedArgCountMatcherDescriptor:

Public Types

using MarshallerType = VariantMatcher(*)(void(*matcherFunc)(), llvm::StringRef matcherName, SourceRange nameRange, llvm::ArrayRef< ParserValue > args, Diagnostics *error)
 

Public Member Functions

 FixedArgCountMatcherDescriptor (MarshallerType marshaller, void(*matcherFunc)(), llvm::StringRef matcherName, llvm::ArrayRef< ArgKind > argKinds)
 
VariantMatcher create (SourceRange nameRange, llvm::ArrayRef< ParserValue > args, Diagnostics *error) const override
 
unsigned getNumArgs () const override
 
void getArgKinds (unsigned argNo, std::vector< ArgKind > &kinds) const override
 
- Public Member Functions inherited from mlir::query::matcher::internal::MatcherDescriptor
virtual ~MatcherDescriptor ()=default
 

Detailed Description

Definition at line 90 of file Marshallers.h.

Member Typedef Documentation

◆ MarshallerType

using mlir::query::matcher::internal::FixedArgCountMatcherDescriptor::MarshallerType = VariantMatcher (*)(void (*matcherFunc)(), llvm::StringRef matcherName, SourceRange nameRange, llvm::ArrayRef<ParserValue> args, Diagnostics *error)

Definition at line 92 of file Marshallers.h.

Constructor & Destructor Documentation

◆ FixedArgCountMatcherDescriptor()

mlir::query::matcher::internal::FixedArgCountMatcherDescriptor::FixedArgCountMatcherDescriptor ( MarshallerType  marshaller,
void(*)()  matcherFunc,
llvm::StringRef  matcherName,
llvm::ArrayRef< ArgKind argKinds 
)
inline

Definition at line 101 of file Marshallers.h.

Member Function Documentation

◆ create()

VariantMatcher mlir::query::matcher::internal::FixedArgCountMatcherDescriptor::create ( SourceRange  nameRange,
llvm::ArrayRef< ParserValue args,
Diagnostics error 
) const
inlineoverridevirtual

Implements mlir::query::matcher::internal::MatcherDescriptor.

Definition at line 108 of file Marshallers.h.

◆ getArgKinds()

void mlir::query::matcher::internal::FixedArgCountMatcherDescriptor::getArgKinds ( unsigned  argNo,
std::vector< ArgKind > &  kinds 
) const
inlineoverridevirtual

Implements mlir::query::matcher::internal::MatcherDescriptor.

Definition at line 115 of file Marshallers.h.

◆ getNumArgs()

unsigned mlir::query::matcher::internal::FixedArgCountMatcherDescriptor::getNumArgs ( ) const
inlineoverridevirtual

Implements mlir::query::matcher::internal::MatcherDescriptor.

Definition at line 113 of file Marshallers.h.


The documentation for this class was generated from the following file: