[Mlir-commits] [mlir] [MLIR][Transform] Add attribute in MatchOp to filter by operand type (PR #67994)
Pablo Antonio Martinez
llvmlistbot at llvm.org
Fri Nov 10 03:31:29 PST 2023
================
@@ -1180,6 +1180,15 @@ transform::MatchOp::apply(transform::TransformRewriter &rewriter,
return;
}
+ if (getFilterOperandType().has_value()) {
+ Type t = getFilterOperandType().value();
+ for (auto type : op->getOperandTypes()) {
----------------
pabloantoniom wrote:
Solved, although I personally feel that with `llvm::all_of` it is less readable
https://github.com/llvm/llvm-project/pull/67994
More information about the Mlir-commits
mailing list