[llvm] [SPIR-V] Fix lowering of declarations with hidden visibility (PR #185029)
Marcos Maronas via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 9 07:01:23 PDT 2026
================
@@ -0,0 +1,30 @@
+; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv-unknown-vulkan1.3-pixel %s -o - | FileCheck %s
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-vulkan1.3-pixel %s -o - -filetype=obj | spirv-val --target-env vulkan1.3 %}
+
+; Check that interface variables (Input, Output, PushConstant) do not get
+; Import linkage even when declared as external hidden.
+
+; CHECK-NOT: OpCapability Linkage
+; CHECK-NOT: LinkageAttributes
+
+ at input_var = external hidden addrspace(7) global <4 x float>, !spirv.Decorations !0
+ at output_var = external hidden addrspace(8) global <4 x float>, !spirv.Decorations !2
----------------
maarquitos14 wrote:
Should we test `PushConstant` too?
https://github.com/llvm/llvm-project/pull/185029
More information about the llvm-commits
mailing list