[llvm] [SPIRV] Fix global emission for modules with no functions (PR #183833)

Marcos Maronas via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 3 07:36:39 PST 2026


================
@@ -1,17 +1,14 @@
 ; RUN: llc -O0 -mtriple=spirv64-unknown-unknown < %s -o - -filetype=asm | FileCheck %s
 ; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown < %s -o - -filetype=obj | spirv-val %}
 
-; CHECK: OpCapability Kernel
-; CHECK: OpCapability Addresses
-; CHECK: OpCapability Linkage
-; CHECK: %[[#Import:]] = OpExtInstImport "OpenCL.std"
-; CHECK: OpMemoryModel Physical64 OpenCL
-; CHECK: OpSource OpenCL_CPP 100000
+; RUN: llc -O0 -mtriple=spirv64-vulkan-unknown < %s -o - -filetype=asm | FileCheck %s
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-vulkan-unknown < %s -o - -filetype=obj | spirv-val %}
----------------
maarquitos14 wrote:

I think vulkan folks like to specify the vulkan version in spirv-val. @s-perron is that right?

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


More information about the llvm-commits mailing list