[Mlir-commits] [mlir] [MLIR][ExecutionEngine] Enable PIC option (PR #170995)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sun Dec 7 07:00:59 PST 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 c,cpp,h -- mlir/include/mlir-c/ExecutionEngine.h mlir/lib/Bindings/Python/ExecutionEngineModule.cpp mlir/lib/CAPI/ExecutionEngine/ExecutionEngine.cpp mlir/test/CAPI/execution_engine.c mlir/test/CAPI/global_constructors.c --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/include/mlir-c/ExecutionEngine.h b/mlir/include/mlir-c/ExecutionEngine.h
index 6e951c31f..2a81798bd 100644
--- a/mlir/include/mlir-c/ExecutionEngine.h
+++ b/mlir/include/mlir-c/ExecutionEngine.h
@@ -41,9 +41,9 @@ DEFINE_C_API_STRUCT(MlirExecutionEngine, void);
 /// generation. The number and array of paths corresponding to shared libraries
 /// that will be loaded are specified via `numPaths` and `sharedLibPaths`
 /// respectively.
-/// The `enablePIC` arguments controls the relocation model, when true the generated
-/// code is emitted as "position independent", making it possible to save it and reload it
-/// as a shared object in another process.
+/// The `enablePIC` arguments controls the relocation model, when true the
+/// generated code is emitted as "position independent", making it possible to
+/// save it and reload it as a shared object in another process.
 /// TODO: figure out other options.
 MLIR_CAPI_EXPORTED MlirExecutionEngine mlirExecutionEngineCreate(
     MlirModule op, int optLevel, int numPaths,

``````````

</details>


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


More information about the Mlir-commits mailing list