[clang] [llvm] [OpenMP] Introduce the ompx_name clause for kernel naming (PR #200301)

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 1 12:54:22 PDT 2026


================
@@ -11902,7 +11886,8 @@ void OpenMPIRBuilder::createOffloadEntriesAndInfoMetadata(
       }
       createOffloadEntry(CE->getID(), CE->getAddress(),
                          /*Size=*/0, CE->getFlags(),
-                         GlobalValue::WeakAnyLinkage);
+                         GlobalValue::ExternalLinkage,
----------------
jdoerfert wrote:

If not, we hide kernels and there is no link error. Two kernels with the same name will be allowed (as they are technically now) but the handles will pick up only the first registered, the others are lost in the aether.

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


More information about the llvm-commits mailing list