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

Steven Perron via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 30 07:07:05 PDT 2025


================
@@ -0,0 +1,32 @@
+; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-NO-EXTENSION
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %} 
+;
+; CHECK-NO-EXTENSION-NOT: Capability BitInstructions 
+; CHECK-NO-EXTENSION-NOT: Extension "SPV_KHR_bit_instructions"
+; CHECK-NO-EXTENSION: Capability Shader 
----------------
s-perron wrote:

The requirement on the addressing model in the OpMemoryModel instruction is from the Vulkan API. As long as the OS is not Vulkan, it is fair for this to work.

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


More information about the llvm-commits mailing list