[clang] [llvm] [Driver][clang-linker-wrapper] Add initial support for OpenMP offloading to generic SPIR-V (PR #120145)

Nick Sarnie via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 17 07:19:53 PST 2024


================
@@ -2829,10 +2829,13 @@ void tools::addOpenMPDeviceRTL(const Driver &D,
     LibraryPaths.emplace_back(LibPath);
 
   OptSpecifier LibomptargetBCPathOpt =
-      Triple.isAMDGCN() ? options::OPT_libomptarget_amdgpu_bc_path_EQ
-                        : options::OPT_libomptarget_nvptx_bc_path_EQ;
+      Triple.isAMDGCN()  ? options::OPT_libomptarget_amdgpu_bc_path_EQ
----------------
sarnex wrote:

Yes, we're linking the DeviceRTL using `mlink-builtin-bitcode` today, but we definitely want to use LTO in the future, both for OpenMP and SYCL.

https://github.com/llvm/llvm-project/pull/120145


More information about the cfe-commits mailing list