aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ProcessImplicitDefs.cpp
diff options
context:
space:
mode:
authorYaxun (Sam) Liu <yaxun.liu@amd.com>2022-04-21 11:44:11 -0400
committerYaxun (Sam) Liu <yaxun.liu@amd.com>2022-04-22 17:05:36 -0400
commit04fb81674ed7981397ffe70fe6a07b7168f6fe2f (patch)
tree4bd34ca46fdd951115e18c094732f478bc7e4856 /llvm/lib/CodeGen/ProcessImplicitDefs.cpp
parentbaebe12ad0d6f514cd33e418d6504075d3e79c0a (diff)
downloadllvm-04fb81674ed7981397ffe70fe6a07b7168f6fe2f.zip
llvm-04fb81674ed7981397ffe70fe6a07b7168f6fe2f.tar.gz
llvm-04fb81674ed7981397ffe70fe6a07b7168f6fe2f.tar.bz2
[CUDA][HIP] Externalize kernels with internal linkage
This patch is a continuation of https://reviews.llvm.org/D123353. Not only kernels in anonymous namespace, but also template kernels with template arguments in anonymous namespace need to be externalized. To be more generic, this patch checks the linkage of a kernel assuming the kernel does not have __global__ attribute. If the linkage is internal then clang will externalize it. This patch also fixes the postfix for externalized symbol since nvptx does not allow '.' in symbol name. Reviewed by: Artem Belevich Differential Revision: https://reviews.llvm.org/D124189 Fixes: https://github.com/llvm/llvm-project/issues/54560
Diffstat (limited to 'llvm/lib/CodeGen/ProcessImplicitDefs.cpp')
0 files changed, 0 insertions, 0 deletions