[Mlir-commits] [mlir] [MLIR][Transform] Add attribute in MatchOp to filter by operand type (PR #67994)
Matthias Springer
llvmlistbot at llvm.org
Thu Nov 9 18:17:59 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()) {
----------------
matthias-springer wrote:
nit: Can use use `!llvm::all_of`. Also, drop trivial braces.
https://github.com/llvm/llvm-project/pull/67994
More information about the Mlir-commits
mailing list