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

Marcos Maronas via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 2 05:48:13 PST 2026


================
@@ -0,0 +1,19 @@
+; 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"
----------------
maarquitos14 wrote:

Why does this test need to check OpenCL stuff? Is there anything this test requires from OpenCL? If not, can we also test for vulkan?

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


More information about the llvm-commits mailing list