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

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

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

template<typename MatcherFn >
static std::unique_ptr< DynMatcherconstructDynMatcherFromMatcherFn (MatcherFn &matcherFn)
 

Detailed Description

Definition at line 89 of file MatchersInternal.h.

Constructor & Destructor Documentation

◆ DynMatcher()

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

Definition at line 92 of file MatchersInternal.h.

Member Function Documentation

◆ constructDynMatcherFromMatcherFn()

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

◆ getFunctionName()

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

Definition at line 109 of file MatchersInternal.h.

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

◆ hasFunctionName()

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

Definition at line 108 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 103 of file MatchersInternal.h.

◆ setFunctionName()

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

Definition at line 107 of file MatchersInternal.h.


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