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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Driver/Driver.cpp | ||
---|---|---|
730 | Should we overwrite unconditionally or warn/error if the combination is nonsensical? |
clang/lib/Driver/Driver.cpp | ||
---|---|---|
730 | Yeah, we might need something like that. Like if the user specifies thin then the monolithic linking won't work. Probably will need a check for that. |
Comment Actions
Adding an error print and some tests for it. We error if the user specified any -foffload-lto optoins that don't result in full LT.O
Comment Actions
The newly added test fails when tools/clang/include/clang/Config/config.h is configured with #define CLANG_DEFAULT_OPENMP_RUNTIME "libgomp". Please fix. Thanks!
Should we overwrite unconditionally or warn/error if the combination is nonsensical?