diff options
author | Yaxun (Sam) Liu <yaxun.liu@amd.com> | 2022-02-17 10:42:15 -0500 |
---|---|---|
committer | Yaxun (Sam) Liu <yaxun.liu@amd.com> | 2022-02-19 18:37:44 -0500 |
commit | fa0f90bc55ed536e1488648255278ce9029cfa59 (patch) | |
tree | 5428f4dd739b74f344e5094782d78d23c0f47351 /clang/lib/Sema/SemaModule.cpp | |
parent | 8e7995884a6525b44fe2f71318883ba2fec2d972 (diff) | |
download | llvm-fa0f90bc55ed536e1488648255278ce9029cfa59.zip llvm-fa0f90bc55ed536e1488648255278ce9029cfa59.tar.gz llvm-fa0f90bc55ed536e1488648255278ce9029cfa59.tar.bz2 |
[HIP] Support linking archive of bundled bitcode
HIP programs compiled with -c -fgpu-rdc generate clang-offload-bundler
bundles which contain bitcode for different GPU's.
Such files can be archived to an archive file which can be linked with
HIP programs with -fgpu-rdc.
This patch adds suppor of linking archive of bundled bitcode.
When an archive of bundled bitcode is passed to clang by -l, for each
GPU specified through --offload-arch, clang extracts bitcode from
the archive and creates a new archive for that GPU and pass it
to lld.
Reviewed by: Artem Belevich
Differential Revision: https://reviews.llvm.org/D120070
Fixes: SWDEV-321741, SWDEV-315773
Diffstat (limited to 'clang/lib/Sema/SemaModule.cpp')
0 files changed, 0 insertions, 0 deletions