[PATCH] D52891: [AMDGPU] Add -fvisibility-amdgpu-non-kernel-functions
Scott Linder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 4 09:20:27 PDT 2018
scott.linder created this revision.
scott.linder added reviewers: yaxunl, kzhuravl, arsenm.
Herald added subscribers: cfe-commits, Anastasia, tpr, dstuttard, nhaehnle, wdng, jvesely.
Controls the visibility of non-kernel functions when compiling for AMDGPU targets. Defaults to the default value visibility (-fvisibility), and is set in the AMDGPU toolchain to be "hidden" if not set explicitly.
This is a more fine-grained knob than "-fvisibility hidden", and allows the default visibility of functions to be controlled independent of kernels. This is useful for languages like OpenCL where kernel symbols are externally visible, but function symbols are not.
Repository:
rC Clang
https://reviews.llvm.org/D52891
Files:
include/clang/Basic/LangOptions.def
include/clang/Driver/CC1Options.td
include/clang/Driver/Options.td
lib/CodeGen/TargetInfo.cpp
lib/Driver/ToolChains/AMDGPU.cpp
lib/Driver/ToolChains/Clang.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGen/visibility-amdgpu-non-kernel-functions.cl
test/Driver/amdgpu-visibility.cl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52891.168312.patch
Type: text/x-patch
Size: 10200 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181004/50b2eaa8/attachment-0001.bin>
More information about the cfe-commits
mailing list