[OpenMP] Introduce '-f[no-]openmp-target-jit' flag to control JIT for offloading
authorJoseph Huber <jhuber6@vols.utk.edu>
Fri, 6 Jan 2023 21:22:12 +0000 (15:22 -0600)
committerJoseph Huber <jhuber6@vols.utk.edu>
Sat, 7 Jan 2023 02:01:41 +0000 (20:01 -0600)
commitf5f746f1efd45a6e9ed8ca9be26e8c01c5aa00b1
treef1ec3775a5c3744777d01ec9d841914c22a182e7
parent996ad44b97e6dda8e4759021c998896f76c38c76
[OpenMP] Introduce '-f[no-]openmp-target-jit' flag to control JIT for offloading

JIT support for OpenMP offloading was introduced in D139287. This patch
adds a simple flag that enables this mode. It simply requires enabling
`-foffload-lto` mode and `--embed-bitcode` in the linker wrapper. This
option implies LTO if it is not enabled.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D141158
clang/include/clang/Basic/DiagnosticDriverKinds.td
clang/include/clang/Driver/Options.td
clang/lib/Driver/Driver.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/openmp-offload-jit.c [new file with mode: 0644]