[llvm] [SPIR-V] Fix lowering of declarations with hidden visibility (PR #185029)

Dmitry Sidorov via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 9 16:48:53 PDT 2026


================
@@ -0,0 +1,26 @@
+; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
----------------
MrSidims wrote:

So. I've actually added shader tests and that exposed a bug when Linkage capability was emitted in ("normal") HLSL environment (probably pre-existing issue). Fixed this by adding `isShaderLibrary` check. @s-perron @Keenuts could you please review and comment if the solution OK?

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


More information about the llvm-commits mailing list