[PATCH] D123353: [CUDA][HIP] Externalize kernels in anonymous name space

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 8 11:17:48 PDT 2022


tra added inline comments.


================
Comment at: clang/test/CodeGenCUDA/kernel-in-anon-ns.cu:13
+
+// CHECK: define weak_odr {{.*}}void @[[KERN:_ZN12_GLOBAL__N_16kernelEv\.anon\..*]](
+// CHECK: @[[STR:.*]] = {{.*}} c"[[KERN]]\00"
----------------
Will the externalized names be uniquified as well?

E.g. if we compile with -fgpu-rdc, we do want the kernels to be externally visible, but we also don't want the names to clash if we have two TUs having the same external name for them.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123353/new/

https://reviews.llvm.org/D123353



More information about the cfe-commits mailing list