[Mlir-commits] [mlir] [MLIR][Transform] Add attribute in MatchOp to filter by operand type (PR #67994)
Nicolas Vasilache
llvmlistbot at llvm.org
Wed Nov 15 05:41:20 PST 2023
================
@@ -556,7 +558,8 @@ def MatchOp : Op<Transform_Dialect, "structured.match",
OptionalAttr<StrArrayAttr>:$ops,
OptionalAttr<MatchInterfaceEnum>:$interface,
OptionalAttr<DictionaryAttr>:$op_attrs,
- OptionalAttr<TypeAttr>:$filter_result_type);
+ OptionalAttr<TypeAttr>:$filter_result_type,
+ OptionalAttr<TypeAttr>:$filter_operand_type);
----------------
nicolasvasilache wrote:
This seems too restrictive: operations often have multiple operand types, can we turn this into a list ?
Bonus points for doing the same for the result_types (although single result ops are much more common)
https://github.com/llvm/llvm-project/pull/67994
More information about the Mlir-commits
mailing list