llvm
22e5273c - [mlir][OpenMP] Change device declare target functions to hidden visibility (#207234)

Commit
4 days ago
[mlir][OpenMP] Change device declare target functions to hidden visibility (#207234) During OpenMP lowering, globally visible device functions are emitted. These functions might not be kernels themselves, but are designed to only be called in a kernel context. However, if they are unused, and not inlined, and reference LDS, the AMDGPU ISel emits lots of misleading warnings related to "local memory global used by non-kernel function". Fix by changing visibility from external+default to external+hidden, which allows DCE to just remove the functions. Claude assisted with this patch.
Author
Parents
Loading