[HIP] change kernel stub name
authorYaxun Liu <Yaxun.Liu@amd.com>
Thu, 21 Feb 2019 20:12:16 +0000 (20:12 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Thu, 21 Feb 2019 20:12:16 +0000 (20:12 +0000)
commit8d7cf0e2d4b53754b95003ffcc8485618ddc45e5
tree6963056fa07e8aae1e2af725faf7acb409b7b7ab
parent096fae32b369519d413952ec1a64687f45a4e2fc
[HIP] change kernel stub name

Add .stub to kernel stub function name so that it is different from kernel
name in device code. This is necessary to let debugger find correct symbol
for kernel

Differential Revision: https://reviews.llvm.org/D58518

llvm-svn: 354615
clang/lib/CodeGen/CGCUDANV.cpp
clang/test/CodeGenCUDA/device-stub.cu