[PATCH] D26196: AMDGPU: Translate null pointers in private and local addr space
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 2 14:50:05 PDT 2016
yaxunl added inline comments.
================
Comment at: lib/CodeGen/TargetInfo.cpp:7039
+ if (CGM.getTarget().getTriple().getArch() != llvm::Triple::amdgcn ||
+ (AS != Ctx.getTargetAddressSpace(LangAS::opencl_local) && AS != 0))
+ return C;
----------------
arsenm wrote:
> Shouldn't the 0 be checking lang as::opencl_private?
clang does not define enum for opencl_private.
https://reviews.llvm.org/D26196
More information about the cfe-commits
mailing list