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

Nick Sarnie via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 4 06:58:45 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 %}
----------------
sarnex wrote:

Merging this now as it fixes some tests. Happy to address this in a follow-up if we hear back, thanks.

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


More information about the llvm-commits mailing list