[llvm] [SPIR-V] Fix crash on get_global_id with non-integer dimension index (PR #208152)

Juan Manuel Martinez CaamaƱo via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 9 01:32:29 PDT 2026


https://github.com/jmmartinez requested changes to this pull request.

I get that there is not a strong enforcement of the mangling. But still, we do those assumptions all over the compiler as a consequence of the target environment.

https://llvm.org/docs/SPIRVUsage.html#target-triples

According to the docs we assume _"OpenCL environment or deduced by backend based on the input."_. If we assume `OpenCL`, the mangling should match that one of an OpenCL program.

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


More information about the llvm-commits mailing list