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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to