MLIR  21.0.0git
Public Types | Public Member Functions | Static Public Member Functions | List of all members
mlir::query::matcher::DynMatcher Class Reference

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

Public Types

enum  VariadicOperator { AllOf , AnyOf }
 

Public Member Functions

 DynMatcher (MatcherInterface *implementation)
 
bool match (Operation *op) const
 
bool match (Operation *op, SetVector< Operation * > &matchedOps) const
 
void setFunctionName (StringRef name)
 
bool hasFunctionName () const
 
StringRef getFunctionName () const
 

Static Public Member Functions

static std::unique_ptr< DynMatcherconstructVariadic (VariadicOperator Op, std::vector< DynMatcher > innerMatchers)
 
template<typename MatcherFn >
static std::unique_ptr< DynMatcherconstructDynMatcherFromMatcherFn (MatcherFn &matcherFn)
 

Detailed Description

Definition at line 119 of file MatchersInternal.h.

Member Enumeration Documentation

◆ VariadicOperator

Enumerator
AllOf 
AnyOf 

Definition at line 126 of file MatchersInternal.h.

Constructor & Destructor Documentation

◆ DynMatcher()

mlir::query::matcher::DynMatcher::DynMatcher ( MatcherInterface implementation)
inline

Definition at line 122 of file MatchersInternal.h.

Member Function Documentation

◆ constructDynMatcherFromMatcherFn()

template<typename MatcherFn >
static std::unique_ptr<DynMatcher> mlir::query::matcher::DynMatcher::constructDynMatcherFromMatcherFn ( MatcherFn &  matcherFn)
inlinestatic

◆ constructVariadic()

static std::unique_ptr<DynMatcher> mlir::query::matcher::DynMatcher::constructVariadic ( VariadicOperator  Op,
std::vector< DynMatcher innerMatchers 
)
inlinestatic

◆ getFunctionName()

StringRef mlir::query::matcher::DynMatcher::getFunctionName ( ) const
inline

Definition at line 164 of file MatchersInternal.h.

Referenced by mlir::query::MatchQuery::run().

◆ hasFunctionName()

bool mlir::query::matcher::DynMatcher::hasFunctionName ( ) const
inline

Definition at line 163 of file MatchersInternal.h.

Referenced by mlir::query::MatchQuery::run().

◆ match() [1/2]

bool mlir::query::matcher::DynMatcher::match ( Operation op) const
inline

◆ match() [2/2]

bool mlir::query::matcher::DynMatcher::match ( Operation op,
SetVector< Operation * > &  matchedOps 
) const
inline

Definition at line 158 of file MatchersInternal.h.

◆ setFunctionName()

void mlir::query::matcher::DynMatcher::setFunctionName ( StringRef  name)
inline

Definition at line 162 of file MatchersInternal.h.


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