[lld] [RFC][lld][SPIRV] Add support for SPIR-V LTO (PR #178749)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 17 09:11:12 PST 2026


================
@@ -0,0 +1,13 @@
+; REQUIRES: spirv, spirv-tools
+; RUN: llvm-as %s -o %t_input.bc
+; RUN: ld.lld -flavor spirv %t_input.bc -o %t_output.spv
+
+; RUN: spirv-lld %t_input.bc -o %t_output2.spv
+
----------------
jhuber6 wrote:

I'd like to see some more comprehensive tests that verify the output between multiple files. Also we don't seem to be handling static libraries at all. We don't need to do everything in a single PR but we should at least make some TODOs.

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


More information about the llvm-commits mailing list