]> granicus.if.org Git - clang/commit
[CUDA] Add implicit __attribute__((used)) to all __global__ functions.
authorArtem Belevich <tra@google.com>
Mon, 10 Aug 2015 20:57:02 +0000 (20:57 +0000)
committerArtem Belevich <tra@google.com>
Mon, 10 Aug 2015 20:57:02 +0000 (20:57 +0000)
commit830e9302b923713e8b98382dbea094a1c9a50db9
tree2c7a87495fada6b739770ae0e5213949eaf7550f
parent586e146b2275d2ecfa183a6ebae21df668d564f0
[CUDA] Add implicit __attribute__((used)) to all __global__ functions.

This allows emitting kernels that were instantiated from the host code
and which would never be explicitly referenced otherwise.

Differential Revision: http://reviews.llvm.org/D11666

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244501 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclAttr.cpp
test/CodeGenCUDA/ptx-kernels.cu