[Mlir-commits] [mlir] [MLIR][Transform] Introduce `transform.tune.knob` op (PR #146732)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Jul 3 07:06:28 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/tune.py mlir/test/python/dialects/transform_tune_ext.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- python/mlir/dialects/transform/tune.py	2025-07-03 14:02:19.000000 +0000
+++ python/mlir/dialects/transform/tune.py	2025-07-03 14:05:57.797604 +0000
@@ -28,11 +28,11 @@
 
 @_ods_cext.register_operation(_Dialect, replace=True)
 class KnobOp(KnobOp):
     def __init__(
         self,
-        result: Type, # !transform.any_param or !transform.param<Type>
+        result: Type,  # !transform.any_param or !transform.param<Type>
         name: Union[StringAttr, str],
         options: Union[
             ArrayAttr, Sequence[Union[Attribute, bool, int, float, str]], Attribute
         ],
         *,
@@ -67,11 +67,11 @@
             ip=ip,
         )
 
 
 def knob(
-    result: Type, # !transform.any_param or !transform.param<Type>
+    result: Type,  # !transform.any_param or !transform.param<Type>
     name: Union[StringAttr, str],
     options: Union[
         ArrayAttr, Sequence[Union[Attribute, bool, int, float, str]], Attribute
     ],
     *,

``````````

</details>


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


More information about the Mlir-commits mailing list