[clang] [HIP] Don't add -fvisibility=hidden for SPIR-V compilation flow (PR #184821)

Dmitry Sidorov via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 5 09:02:23 PST 2026


MrSidims wrote:

> SPIR-V may not have the concept of visibility, but LLVM-IR does. If you don't emit hidden visibility you're probably going to kill any hopes of internalizing functions through LLVM's LTO pass.

IMHO it's better to not internalize a function during LTO than to have a non-compilable hello-world application.

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


More information about the cfe-commits mailing list