[Mlir-commits] [mlir] [MLIR][Python] Add a DSL for defining dialects in Python bindings (PR #169045)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sat Jan 10 06:56:21 PST 2026
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 origin/main...HEAD mlir/python/mlir/dialects/ext.py mlir/test/python/dialects/ext.py
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- python/mlir/dialects/ext.py 2026-01-10 14:54:11.000000 +0000
+++ python/mlir/dialects/ext.py 2026-01-10 14:55:43.295948 +0000
@@ -369,11 +369,11 @@
raise RuntimeError(f"Dialect {cls.name} is already loaded.")
mlir_module = cls._emit_module()
pm = PassManager()
- pm.add('canonicalize, cse')
+ pm.add("canonicalize, cse")
pm.run(mlir_module.operation)
irdl.load_dialects(mlir_module)
_cext.register_dialect(cls)
``````````
</details>
https://github.com/llvm/llvm-project/pull/169045
More information about the Mlir-commits
mailing list