Emit MLIR trampoline wrapper function with LLVM private linkage
authorMehdi Amini <joker.eph@gmail.com>
Mon, 19 Jun 2023 09:58:49 +0000 (11:58 +0200)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 19 Jun 2023 10:53:45 +0000 (12:53 +0200)
commit9ef73f2f58ecfce21bdeb27f68b224d9be97cfe6
tree4540bdb95ec1fd75135f657c2bfd4bb67293cdc8
parent65a2cde77195887f308d4f14be2e3ae18c5c5c0a
Emit MLIR trampoline wrapper function with LLVM private linkage

The wrapper, as most of compiler-generated functions, are intended to serve the
IR for the current module. The safest linkage is to keep these private to avoid
any possible collision with other modules.

Differential Revision: https://reviews.llvm.org/D153255
mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp
mlir/test/Conversion/FuncToLLVM/emit-c-wrappers-for-external-functions.mlir