Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Clang] Initial support for linking offloading code in tool
This patch adds the initial support for linking NVPTX offloading code using the clang-linker-wrapper tool. This uses the extracted device files and runs `nvlink` on them. Currently this is then passed to the existing toolchain for creating linkable OpenMP offloading programs using `clang-offload-wrapper` and compiling it manually using `llc`. More work is required to support LTO, Bitcode linking, AMDGPU, and x86 offloading. Depends on D116545 Differential Revision: https://reviews.llvm.org/D116627
- Loading branch information
Showing
1 changed file
with
203 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters