[llvm] [SPIRV] Fix global emission for modules with no functions (PR #183833)
Nick Sarnie via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 2 07:08:56 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"
----------------
sarnex wrote:
Fixed in latest commit, thanks
https://github.com/llvm/llvm-project/pull/183833
More information about the llvm-commits
mailing list