[clang] [llvm] [Libomptarget] Statically link all plugin runtimes (PR #87009)

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Wed May 1 08:28:43 PDT 2024


================
@@ -3476,3 +3472,9 @@ void *AMDGPUDeviceTy::allocate(size_t Size, void *, TargetAllocTy Kind) {
 } // namespace target
 } // namespace omp
 } // namespace llvm
+
+extern "C" {
+llvm::omp::target::plugin::GenericPluginTy *createPlugin_amdgpu() {
----------------
jdoerfert wrote:

These should use the macro to create the name, one place to change.

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


More information about the llvm-commits mailing list