10 #include "llvm/ADT/SetVector.h"
18 return llvm::all_of(innerMatchers, [&](
const DynMatcher &matcher) {
20 return matcher.
match(op, *matchedOps);
21 return matcher.
match(op);
26 return llvm::any_of(innerMatchers, [&](
const DynMatcher &matcher) {
28 return matcher.
match(op, *matchedOps);
29 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.