jhuber6 wrote:

> It seems to me like this should be done through the LTO interface and driven 
> through `lld`. I can understand if an intermediate step is required while the 
> SPIR-V backend is under development, but clang shouldn't be in the business 
> of linking, and generally neither should llvm-link.
> 
> I'd be curious for @MaskRay's perspective too.

I don't think `lld` makes sense, but you can definitely use the LTO interface 
inside of this tool to create a similar effect. That should also get rid of the 
need for this `--device-library` thing because then it'll just internalize 
anything that's unused. That is, if the SYCL folks write their runtimes 
correctly with hidden visibility on device functions.

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