[Mlir-commits] [mlir] [MLIR][Transform] friendlier Python-bindings apply_registered_pass op (PR #143159)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Jun 6 08:29:32 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r HEAD~1...HEAD mlir/python/mlir/dialects/transform/__init__.py mlir/test/python/dialects/transform.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- python/mlir/dialects/transform/__init__.py 2025-06-06 15:26:39.000000 +0000
+++ python/mlir/dialects/transform/__init__.py 2025-06-06 15:29:03.158805 +0000
@@ -247,12 +247,21 @@
loc=loc,
ip=ip,
)
-def apply_registered_pass(result, pass_name, target, *, options=[], loc=None, ip=None) -> Value:
- return ApplyRegisteredPassOp(result=result, pass_name=pass_name, target=target, options=options, loc=loc, ip=ip).result
+def apply_registered_pass(
+ result, pass_name, target, *, options=[], loc=None, ip=None
+) -> Value:
+ return ApplyRegisteredPassOp(
+ result=result,
+ pass_name=pass_name,
+ target=target,
+ options=options,
+ loc=loc,
+ ip=ip,
+ ).result
AnyOpTypeT = NewType("AnyOpType", AnyOpType)
``````````
</details>
https://github.com/llvm/llvm-project/pull/143159
More information about the Mlir-commits
mailing list