[PATCH] D95901: [CUDA][HIP] Fix device variable linkage
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 3 12:18:40 PST 2021
yaxunl marked an inline comment as done.
yaxunl added inline comments.
================
Comment at: clang/lib/AST/ASTContext.cpp:11437-11443
+ return ((!getLangOpts().GPURelocatableDeviceCode &&
+ ((D->hasAttr<CUDADeviceAttr>() &&
+ !D->getAttr<CUDADeviceAttr>()->isImplicit()) ||
+ (D->hasAttr<CUDAConstantAttr>() &&
+ !D->getAttr<CUDAConstantAttr>()->isImplicit()))) ||
D->hasAttr<HIPManagedAttr>()) &&
isa<VarDecl>(D) && cast<VarDecl>(D)->getStorageClass() == SC_Static;
----------------
tra wrote:
> I can't parse it. :-( Perhaps we can split it.
revised
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95901/new/
https://reviews.llvm.org/D95901
More information about the cfe-commits
mailing list