]> granicus.if.org Git - clang/commit
[CUDA] Only __shared__ variables can be static local on device side.
authorArtem Belevich <tra@google.com>
Mon, 9 May 2016 19:36:08 +0000 (19:36 +0000)
committerArtem Belevich <tra@google.com>
Mon, 9 May 2016 19:36:08 +0000 (19:36 +0000)
commita93fdcf11017c5e79d5e130d7f981763b218d8bf
treee96f03079fb321a2269dd22505d033180f15e643
parente3595c5ee135331dc89f3a8dce00956122fc028e
[CUDA] Only __shared__ variables can be static local on device side.

According to CUDA programming guide (v7.5):
> E.2.9.4: Within the body of a device or global function, only
> shared variables may be declared with static storage class.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@268962 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
test/CodeGenCUDA/address-spaces.cu
test/CodeGenCUDA/device-var-init.cu