MLIR  16.0.0git
Public Member Functions | Friends | List of all members
mlir::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 92 of file NestedMatcher.h.

Constructor & Destructor Documentation

◆ NestedPattern() [1/2]

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

Definition at line 57 of file NestedMatcher.cpp.

Referenced by mlir::matcher::For(), mlir::matcher::If(), and mlir::matcher::Op().

◆ NestedPattern() [2/2]

NestedPattern::NestedPattern ( const NestedPattern other)

Definition at line 63 of file NestedMatcher.cpp.

◆ ~NestedPattern()

mlir::NestedPattern::~NestedPattern ( )
inline

Definition at line 99 of file NestedMatcher.h.

Member Function Documentation

◆ getDepth()

unsigned NestedPattern::getDepth ( ) const

Returns the depth of the pattern.

Definition at line 76 of file NestedMatcher.cpp.

References mlir::NestedMatch::build(), and max().

◆ match()

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

Returns all the top-level matches in op.

Definition at line 107 of file NestedMatcher.h.

References mlir::Operation::walk().

Referenced by isVectorizableLoopBodyWithOpCond().

◆ operator=()

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

Definition at line 68 of file NestedMatcher.cpp.

Friends And Related Function Documentation

◆ NestedMatch

friend class NestedMatch
friend

Definition at line 116 of file NestedMatcher.h.

◆ NestedPatternContext

Definition at line 115 of file NestedMatcher.h.

◆ State

friend struct State
friend

Definition at line 117 of file NestedMatcher.h.


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