aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorSaiyedul Islam <Saiyedul.Islam@amd.com>2021-09-28 14:26:54 +0000
committerSaiyedul Islam <Saiyedul.Islam@amd.com>2021-10-07 04:45:19 +0000
commit4c4117089599cb5b6c6fa5635c28462ffd1bddf4 (patch)
treebb271dc5b020c21a00856576cfee8ab91b268d0d /llvm/lib/CodeGen/MachineFunction.cpp
parent393581d8a5cb017da1b4c27456c92290751bdfae (diff)
downloadllvm-4c4117089599cb5b6c6fa5635c28462ffd1bddf4.zip
llvm-4c4117089599cb5b6c6fa5635c28462ffd1bddf4.tar.gz
llvm-4c4117089599cb5b6c6fa5635c28462ffd1bddf4.tar.bz2
[Clang][OpenMP] Add partial support for Static Device Libraries
An archive containing device code object files can be passed to clang command line for linking. For each given offload target it creates a device specific archives which is either passed to llvm-link if the target is amdgpu, or to clang-nvlink-wrapper if the target is nvptx. -L/-l flags are used to specify these fat archives on the command line. E.g. clang++ -fopenmp -fopenmp-targets=nvptx64 main.cpp -L. -lmylib It currently doesn't support linking an archive directly, like: clang++ -fopenmp -fopenmp-targets=nvptx64 main.cpp libmylib.a Linking with x86 offload also does not work. Reviewed By: ye-luo Differential Revision: https://reviews.llvm.org/D105191
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions