[PATCH] D46472: [HIP] Support offloading by linkscript

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 4 14:09:47 PDT 2018


yaxunl created this revision.
yaxunl added reviewers: rjmccall, tra.

To support linking device code in different source files, it is necessary to
embed fat binary at host linking stage.

This patch emits an external symbol for fat binary in host codegen, then
embed the fat binary by lld through a link script.


https://reviews.llvm.org/D46472

Files:
  include/clang/Driver/Options.td
  lib/CodeGen/CGCUDANV.cpp
  lib/Driver/ToolChains/CommonArgs.cpp
  lib/Driver/ToolChains/CommonArgs.h
  lib/Driver/ToolChains/Gnu.cpp
  test/CodeGenCUDA/device-stub.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46472.145291.patch
Type: text/x-patch
Size: 15870 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180504/415cf912/attachment-0001.bin>


More information about the cfe-commits mailing list