aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorJoseph Huber <jhuber6@vols.utk.edu>2023-01-24 11:18:22 -0600
committerJoseph Huber <jhuber6@vols.utk.edu>2023-01-24 17:01:35 -0600
commitdc60f7aa0435a4e4778cfbf22f4fcb52c97427c0 (patch)
treee8672afef6d065bd5bc857b1e07bf40e3fc2b52f /clang/lib/CodeGen/CodeGenFunction.cpp
parent1964c334782e7c5961772fbdcdcc0029cba3a7fa (diff)
downloadllvm-dc60f7aa0435a4e4778cfbf22f4fcb52c97427c0.zip
llvm-dc60f7aa0435a4e4778cfbf22f4fcb52c97427c0.tar.gz
llvm-dc60f7aa0435a4e4778cfbf22f4fcb52c97427c0.tar.bz2
[OpenMP] Unconditionally link the OpenMP device RTL static library
Currently we have two versions of the static library. One is built as individual bitcode files and linked via `-mlink-builtin-bitcode`. The other is built as a single static archive `omptarget.devicertl.a` and is linked via `-lomptarget.devicertl` and handled by the linker wrapper during LTO. We use the former in the case that we are not performing LTO, because linking the library late wouldn't allow us to optimize the runtime library effectively. The support in D142484 allows us to unconditionally link this library, so it will only be pulled in if needed. That is, if we linked already via `-mlink-builtin-bitcode` then we will not pull in the static library even if it's linked on the command line. Depends on D142484 Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D142486
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions