[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:04 PDT 2025


================
@@ -1,5 +1,5 @@
-; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
-; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
+; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-vulkan %s -o - | FileCheck %s
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-vulkan %s -o - -filetype=obj | spirv-val %}
----------------
s-perron wrote:

If you are targeting vulkan, add `-target-env vulkan1.3` (or some other version) to make sure we generate code that is valid for Vulkan.

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


More information about the llvm-commits mailing list