MLIR 22.0.0git
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>
std::unique_ptr< DynMatcher > mlir::query::matcher::DynMatcher::constructDynMatcherFromMatcherFn ( MatcherFn & matcherFn)
inlinestatic

◆ constructVariadic()

◆ getFunctionName()

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

Definition at line 164 of file MatchersInternal.h.

◆ hasFunctionName()

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

Definition at line 163 of file MatchersInternal.h.

◆ match() [1/2]

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

Definition at line 157 of file MatchersInternal.h.

◆ 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: