[Mlir-commits] [mlir] [MLIR][Python] expose translate_module_to_llvmir (PR #163881)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Oct 16 15:50:12 PDT 2025
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 origin/main HEAD --extensions cpp -- mlir/lib/Bindings/Python/DialectLLVM.cpp mlir/lib/CAPI/Target/LLVMIR.cpp --diff_from_common_commit
``````````
: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 clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/CAPI/Target/LLVMIR.cpp b/mlir/lib/CAPI/Target/LLVMIR.cpp
index 7d41e0b53..6b7e0bd6b 100644
--- a/mlir/lib/CAPI/Target/LLVMIR.cpp
+++ b/mlir/lib/CAPI/Target/LLVMIR.cpp
@@ -21,8 +21,7 @@
using namespace mlir;
[[maybe_unused]] auto *_LLVMContextCreate = &LLVMContextCreate;
-[[maybe_unused]] auto *_LLVMPrintModuleToString =
- &LLVMPrintModuleToString;
+[[maybe_unused]] auto *_LLVMPrintModuleToString = &LLVMPrintModuleToString;
[[maybe_unused]] auto *_LLVMDisposeModule = &LLVMDisposeModule;
[[maybe_unused]] auto *_LLVMContextDispose = &LLVMContextDispose;
``````````
</details>
https://github.com/llvm/llvm-project/pull/163881
More information about the Mlir-commits
mailing list