yaxunl added a comment.

In https://reviews.llvm.org/D49931#1178720, @tra wrote:

> > This patch also allows function-scope static const variable without device 
> > memory qualifier and emits it as a global variable in constant address 
> > space.
>
> What does NVCC do with local static const variables?


Both const and non-const static var without device memory qualifier are 
allowed. It emits it as a global variable in global address space.


https://reviews.llvm.org/D49931



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to