[Mlir-commits] [mlir] [MLIR][Transform] apply_registered_pass op's options as a dict (PR #143159)

Rolf Morel llvmlistbot at llvm.org
Sat Jun 7 13:25:20 PDT 2025


================
@@ -214,6 +214,54 @@ def __init__(
         super().__init__(_get_op_results_or_values(operands), loc=loc, ip=ip)
 
 
+ at _ods_cext.register_operation(_Dialect, replace=True)
+class ApplyRegisteredPassOp(ApplyRegisteredPassOp):
+    def __init__(
+        self,
+        result: Type,
+        pass_name: Union[str, StringAttr],
+        target: Value,
+        *,
+        options: Sequence[Union[str, StringAttr, Value, Operation]] = [],
----------------
rolfmorel wrote:

Good catch. Have adopted the types used extensively around the Python codebase.

https://github.com/llvm/llvm-project/pull/143159


More information about the Mlir-commits mailing list