[Mlir-commits] [mlir] Register all translations in the RegisterEverything for python (PR #70428)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Oct 27 02:06:12 PDT 2023
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 e9a7876c2c81423f2289aa85eeac32d7a55cd3c8..227c7b2c17a246e09f77afb41e725b9d34ce4c74 mlir/test/python/dialects/gpu/module-to-binary-nvvm.py mlir/test/python/dialects/gpu/module-to-binary-rocdl.py mlir/python/mlir/_mlir_libs/__init__.py mlir/test/python/dialects/gpu/dialect.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- python/mlir/_mlir_libs/__init__.py 2023-10-26 15:31:52.000000 +0000
+++ python/mlir/_mlir_libs/__init__.py 2023-10-27 09:06:05.364908 +0000
@@ -102,11 +102,13 @@
# TODO: There is some debate about whether we should eagerly load
# all dialects. It is being done here in order to preserve existing
# behavior. See: https://github.com/llvm/llvm-project/issues/56037
self.load_all_available_dialects()
if init_module:
- logger.debug("Registering translations from initializer %r", init_module)
+ logger.debug(
+ "Registering translations from initializer %r", init_module
+ )
init_module.register_translations(self)
ir.Context = Context
class MLIRError(Exception):
``````````
</details>
https://github.com/llvm/llvm-project/pull/70428
More information about the Mlir-commits
mailing list