[clang] [Clang][SYCL] Introduce clang-sycl-link-wrapper to link SYCL offloading device code (Part 1 of many) (PR #112245)
Chris B via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 15 16:19:05 PDT 2024
llvm-beanz wrote:
> I guess the closest analogue would be the WASM target?
LLD has a wasm target.
> It seems like overkill since the `ld.lld` source code doesn't really share much code and this target pretty much only consumes LLVM-IR.
I think LLD also needs to eventually gain a SPIR-V target to support linking SPIR-V binaries, because SPIR-V does support linkage at the SPIR-V level not just the LTO IR level (see: https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#_linkage). I certainly know that my team will want to use lld as the LTO driver for DXIL and SPIR-V when targeting DirectX and Vulkan with HLSL.
IIRC we've also previously discussed having all the offload languages use LTO pipelines by default, it seems to make sense that we would also use `lld` as the LTO driver.
https://github.com/llvm/llvm-project/pull/112245
More information about the cfe-commits
mailing list