[llvm] [SPIRV] Do not use OpTypeRuntimeArray in Kernel env. (PR #149522)

Nathan Gauër via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 29 09:43:24 PDT 2025


================
@@ -1,13 +1,14 @@
-; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV
+; RUN: llc -O0 -mtriple=spirv32-unknown-vulkan %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV
----------------
Keenuts wrote:

Don't think this is correct. `SPV_KHR_bit_instructions` can be used to allow OpBitReverse in Kernel.
I'd suggest adding 2 lines:
- `-mtriple=spirv-unknown-vulkan`
- `-mtriple=spirv32-unknown-unknown` with an XFAIL + github issue as it seems the extension is not emitted, hence shader capability is wrongly added.

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


More information about the llvm-commits mailing list