[PATCH] D49931: [CUDA][HIP] Allow function-scope static const variable
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 27 13:44:26 PDT 2018
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
More information about the cfe-commits
mailing list