[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:14 PDT 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff e9a7876c2c81423f2289aa85eeac32d7a55cd3c8 227c7b2c17a246e09f77afb41e725b9d34ce4c74 -- mlir/lib/Bindings/Python/RegisterEverything.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Bindings/Python/RegisterEverything.cpp b/mlir/lib/Bindings/Python/RegisterEverything.cpp
index cdb4a30228a8..6c0bdb43eebb 100644
--- a/mlir/lib/Bindings/Python/RegisterEverything.cpp
+++ b/mlir/lib/Bindings/Python/RegisterEverything.cpp
@@ -15,9 +15,8 @@ PYBIND11_MODULE(_mlirRegisterEverything, m) {
m.def("register_dialects", [](MlirDialectRegistry registry) {
mlirRegisterAllDialects(registry);
});
- m.def("register_translations", [](MlirContext context) {
- mlirRegisterAllLLVMTranslations(context);
- });
+ m.def("register_translations",
+ [](MlirContext context) { mlirRegisterAllLLVMTranslations(context); });
// Register all passes on load.
mlirRegisterAllPasses();
``````````
</details>
https://github.com/llvm/llvm-project/pull/70428
More information about the Mlir-commits
mailing list