MLIR  21.0.0git
Public Member Functions | List of all members
mlir::query::matcher::PredicateForwardSliceMatcher< BaseMatcher, Filter > Class Template Reference

Computes the forward-slice of all users reachable from rootOp, if innerMatcher matches. More...

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

Public Member Functions

 PredicateForwardSliceMatcher (BaseMatcher innerMatcher, Filter filterMatcher, bool inclusive)
 
bool match (Operation *rootOp, SetVector< Operation * > &forwardSlice)
 

Detailed Description

template<typename BaseMatcher, typename Filter>
class mlir::query::matcher::PredicateForwardSliceMatcher< BaseMatcher, Filter >

Computes the forward-slice of all users reachable from rootOp, if innerMatcher matches.

Traversal stops where filterMatcher matches.

Definition at line 166 of file SliceMatchers.h.

Constructor & Destructor Documentation

◆ PredicateForwardSliceMatcher()

template<typename BaseMatcher , typename Filter >
mlir::query::matcher::PredicateForwardSliceMatcher< BaseMatcher, Filter >::PredicateForwardSliceMatcher ( BaseMatcher  innerMatcher,
Filter  filterMatcher,
bool  inclusive 
)
inline

Definition at line 168 of file SliceMatchers.h.

Member Function Documentation

◆ match()

template<typename BaseMatcher , typename Filter >
bool mlir::query::matcher::PredicateForwardSliceMatcher< BaseMatcher, Filter >::match ( Operation rootOp,
SetVector< Operation * > &  forwardSlice 
)
inline

Definition at line 173 of file SliceMatchers.h.

References mlir::getForwardSlice(), and options.


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