17 return llvm::all_of(innerMatchers, [&](
const DynMatcher &matcher) {
19 return matcher.
match(op, *matchedOps);
20 return matcher.
match(op);
25 return llvm::any_of(innerMatchers, [&](
const DynMatcher &matcher) {
27 return matcher.
match(op, *matchedOps);
28 return matcher.
match(op);
Operation is the basic unit of execution within MLIR.
bool match(Operation *op) const
bool anyOfVariadicOperator(Operation *op, SetVector< Operation * > *matchedOps, ArrayRef< DynMatcher > innerMatchers)
bool allOfVariadicOperator(Operation *op, SetVector< Operation * > *matchedOps, ArrayRef< DynMatcher > innerMatchers)
Computes the backward-slice of all transitive defs reachable from rootOp, if innerMatcher matches.