[PATCH] D32977: [OpenCL] Emit function-scope variable in constant address space as static variable

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 10 08:22:03 PDT 2017


yaxunl updated this revision to Diff 98463.
yaxunl marked 2 inline comments as done.
yaxunl added a comment.

Use getStorageDuration to decide how to emit a function-scope variable.


https://reviews.llvm.org/D32977

Files:
  include/clang/AST/Decl.h
  lib/CodeGen/CGDecl.cpp
  lib/Sema/SemaDecl.cpp
  test/CodeGenOpenCL/amdgpu-debug-info-pointer-address-space.cl
  test/CodeGenOpenCL/amdgpu-debug-info-variable-expression.cl
  test/CodeGenOpenCL/constant-addr-space-globals.cl
  test/SemaOpenCL/storageclass.cl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32977.98463.patch
Type: text/x-patch
Size: 12674 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170510/feebd24e/attachment.bin>


More information about the cfe-commits mailing list