]> granicus.if.org Git - clang/commit
[CUDA] Make sure device-side __global__ functions are always visible.
authorArtem Belevich <tra@google.com>
Mon, 2 May 2016 20:30:03 +0000 (20:30 +0000)
committerArtem Belevich <tra@google.com>
Mon, 2 May 2016 20:30:03 +0000 (20:30 +0000)
commitaba87a7ebcce24750d5d6845684c81345af0707b
tree0b9cc5ddbed8a75b1a4e00b52aea9d0b4f2a99c7
parentc1e7ade641b996676baef60b3e46dc359589e191
[CUDA] Make sure device-side __global__ functions are always visible.

__global__ functions are a special case in CUDA.

Even when the symbol would normally not be externally
visible according to C++ rules, they still must be visible
in CUDA GPU object so host-side stub can launch them.

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

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