aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/tutorial/MyFirstLanguageFrontend
diff options
context:
space:
mode:
authorYaxun (Sam) Liu <yaxun.liu@amd.com>2020-03-05 12:59:33 -0500
committerYaxun (Sam) Liu <yaxun.liu@amd.com>2020-03-09 16:40:05 -0400
commit22c457a869d5dd9d7e6ca0f97e2a8408bf7326f2 (patch)
treeafd898d77070dcd22c791bdf570eea0e3abe7652 /llvm/docs/tutorial/MyFirstLanguageFrontend
parent3262319806d76056a58abe56d1d6a37d296d8ad8 (diff)
downloadllvm-22c457a869d5dd9d7e6ca0f97e2a8408bf7326f2.zip
llvm-22c457a869d5dd9d7e6ca0f97e2a8408bf7326f2.tar.gz
llvm-22c457a869d5dd9d7e6ca0f97e2a8408bf7326f2.tar.bz2
[HIP] Fix device stub name
HIP emits a device stub function for each kernel in host code. The HIP debugger requires device stub function to have a different unmangled name as the kernel. Currently the name of the device stub function is the mangled name with a postfix .stub. However, this does not work with the HIP debugger since the unmangled name is the same as the kernel. This patch adds prefix __device__stub__ to the unmangled name of the device stub before mangling, therefore the device stub function has a valid mangled name which is different than the device kernel name. The device side kernel name is kept unchanged. kernels with extern "C" also gets the prefix added to the corresponding device stub function. Differential Revision: https://reviews.llvm.org/D68578
Diffstat (limited to 'llvm/docs/tutorial/MyFirstLanguageFrontend')
0 files changed, 0 insertions, 0 deletions