[clang] [clang][Driver][SPIR-V] Allow linking IR using llvm-link (PR #169572)

Nick Sarnie via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 26 07:18:54 PST 2025


sarnex wrote:

> LLD can link LLVM, do LTO and emit SPIR-V with SPIR-V backend (or LLVM bitcode with -emit-llvm option). Have you considered using LLD for OpenMP device RTL?

But it can't actually link SPIR-V, so we can't use it when we aren't using LTO, so we would only ever `lld` when LTO is enabled, which seems somewhat weird.

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


More information about the cfe-commits mailing list