]> granicus.if.org Git - clang/commit
[HIP] Use -mlink-builtin-bitcode to link device library
authorYaxun Liu <Yaxun.Liu@amd.com>
Fri, 12 Apr 2019 16:23:31 +0000 (16:23 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Fri, 12 Apr 2019 16:23:31 +0000 (16:23 +0000)
commit61e80a3678fbcf75f2e9f1cb9fdba9b2a76b260f
tree858dae78ba22cfc28ea1fe33535cd84982dcb72c
parent78607564933f0543d0e9cc402b7652be7ec59b71
[HIP] Use -mlink-builtin-bitcode to link device library

Use -mlink-builtin-bitcode instead of llvm-link to link
device library so that device library bitcode and user
device code can be compiled in a consistent way.

This is the same approach used by CUDA and OpenMP.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358290 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/HIP.cpp
test/Driver/hip-device-libs.hip
test/Driver/hip-toolchain-no-rdc.hip
test/Driver/hip-toolchain-rdc.hip