MLIR  19.0.0git
Public Member Functions | Friends | List of all members
mlir::affine::NestedPattern Class Reference

#include "mlir/Dialect/Affine/Analysis/NestedMatcher.h"

Public Member Functions

 NestedPattern (ArrayRef< NestedPattern > nested, FilterFunctionType filter=defaultFilterFunction)
 
 NestedPattern (const NestedPattern &other)
 
NestedPatternoperator= (const NestedPattern &other)
 
 ~NestedPattern ()
 
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
 

Detailed Description

Definition at line 93 of file NestedMatcher.h.

Constructor & Destructor Documentation

◆ NestedPattern() [1/2]

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

Definition at line 58 of file NestedMatcher.cpp.

◆ NestedPattern() [2/2]

NestedPattern::NestedPattern ( const NestedPattern other)

Definition at line 64 of file NestedMatcher.cpp.

◆ ~NestedPattern()

mlir::affine::NestedPattern::~NestedPattern ( )
inline

Definition at line 100 of file NestedMatcher.h.

Member Function Documentation

◆ getDepth()

unsigned NestedPattern::getDepth ( ) const

Returns the depth of the pattern.

Definition at line 77 of file NestedMatcher.cpp.

References max().

◆ match()

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

Returns all the top-level matches in op.

Definition at line 108 of file NestedMatcher.h.

◆ operator=()

NestedPattern & NestedPattern::operator= ( const NestedPattern other)

Definition at line 69 of file NestedMatcher.cpp.

Friends And Related Function Documentation

◆ NestedMatch

friend class NestedMatch
friend

Definition at line 117 of file NestedMatcher.h.

◆ NestedPatternContext

Definition at line 116 of file NestedMatcher.h.

◆ State

friend struct State
friend

Definition at line 118 of file NestedMatcher.h.


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