[llvm] Fix SPIR-V function ordering violation in linker (PR #145039)
Henry Linjamäki via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 2 02:09:13 PDT 2025
linehill wrote:
I don’t think fixing the SPIR-V function ordering in the LLVM IR linker is the right place and it’s SPIR-V emitters’ responsibility (e.g. SPIR-V backend and LLVM-SPIRV-Translator) to emit valid SPIR-V code - IOW, the fix should probably done in the emitters.
Also, there is a danger that the reordering done in the linker may be undone by follow up transformation passes.
https://github.com/llvm/llvm-project/pull/145039
More information about the llvm-commits
mailing list