My Project
Public Member Functions | Friends | List of all members
mlir::NestedPattern Class Reference

#include <NestedMatcher.h>

Public Member Functions

 NestedPattern (ArrayRef< NestedPattern > nested, FilterFunctionType filter=defaultFilterFunction)
 
 NestedPattern (const NestedPattern &)=default
 
NestedPatternoperator= (const NestedPattern &)=default
 
void match (FuncOp func, SmallVectorImpl< NestedMatch > *matches)
 Returns all the top-level matches in func. More...
 
void match (Operation *op, SmallVectorImpl< NestedMatch > *matches)
 Returns all the top-level matches in op. More...
 
unsigned getDepth () const
 Returns the depth of the pattern. More...
 

Friends

class NestedPatternContext
 
class NestedMatch
 
struct State
 

Constructor & Destructor Documentation

◆ NestedPattern() [1/2]

NestedPattern::NestedPattern ( ArrayRef< NestedPattern nested,
FilterFunctionType  filter = defaultFilterFunction 
)

◆ NestedPattern() [2/2]

mlir::NestedPattern::NestedPattern ( const NestedPattern )
default

Member Function Documentation

◆ getDepth()

unsigned NestedPattern::getDepth ( ) const

Returns the depth of the pattern.

◆ match() [1/2]

void mlir::NestedPattern::match ( FuncOp  func,
SmallVectorImpl< NestedMatch > *  matches 
)
inline

Returns all the top-level matches in func.

◆ match() [2/2]

void mlir::NestedPattern::match ( Operation op,
SmallVectorImpl< NestedMatch > *  matches 
)
inline

Returns all the top-level matches in op.

◆ operator=()

NestedPattern& mlir::NestedPattern::operator= ( const NestedPattern )
default

Friends And Related Function Documentation

◆ NestedMatch

friend class NestedMatch
friend

◆ NestedPatternContext

friend class NestedPatternContext
friend

◆ State

friend struct State
friend

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