aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/MathExtras.cpp
diff options
context:
space:
mode:
authorYaxun (Sam) Liu <yaxun.liu@amd.com>2020-09-22 12:52:07 -0400
committerYaxun (Sam) Liu <yaxun.liu@amd.com>2020-09-23 08:18:19 -0400
commit301e23305d03cfb4004f845a1d9dfdc5e5931fd8 (patch)
treec3a992eb5e0132b556c10fc68c8ee1d74ba73f83 /llvm/lib/Support/MathExtras.cpp
parentbd72ed93d22a1579362859e64a0c7f9c68460cf8 (diff)
downloadllvm-301e23305d03cfb4004f845a1d9dfdc5e5931fd8.zip
llvm-301e23305d03cfb4004f845a1d9dfdc5e5931fd8.tar.gz
llvm-301e23305d03cfb4004f845a1d9dfdc5e5931fd8.tar.bz2
[CUDA][HIP] Fix static device var used by host code only
A static device variable may be accessed in host code through cudaMemCpyFromSymbol etc. Currently clang does not emit the static device variable if it is only referenced by host code, which causes host code to fail at run time. This patch fixes that. Differential Revision: https://reviews.llvm.org/D88115
Diffstat (limited to 'llvm/lib/Support/MathExtras.cpp')
0 files changed, 0 insertions, 0 deletions