[PATCH] D60513: [HIP] Use -mlink-builtin-bitcode to link device library
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 10 08:04:59 PDT 2019
yaxunl created this revision.
yaxunl added reviewers: tra, ashi1.
Herald added a subscriber: jdoerfert.
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.
https://reviews.llvm.org/D60513
Files:
lib/Driver/ToolChains/HIP.cpp
test/Driver/hip-device-libs.hip
test/Driver/hip-toolchain-no-rdc.hip
test/Driver/hip-toolchain-rdc.hip
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60513.194517.patch
Type: text/x-patch
Size: 10422 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190410/448ad213/attachment-0001.bin>
More information about the cfe-commits
mailing list