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

Nathan Gauër via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 30 07:20:38 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:

I think the only viable option is vulkan triple with logical SPIR-V.
I agree Logical doesn't mean Shader, but the issue is with Vulkan requiring either Logical or PhysicalStorageBuffer64 (Addresses is forbidden, hence Physical32/Physical64),see VUID-StandaloneSpirv-None-04635 & Vulkan env for SPIR-V )
I don't think Clang can emit PhysicalStorageBuffer64 yet, so this means Vulkan = Logical for now.

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


More information about the llvm-commits mailing list