[PATCH] D103108: [CUDA][HIP] Promote const variables to constant

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 26 07:36:38 PDT 2021


yaxunl updated this revision to Diff 347958.
yaxunl added a comment.

do not promote or check dependent variables since their ctor/dtor/initializers are not determined yet


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103108/new/

https://reviews.llvm.org/D103108

Files:
  clang/lib/Sema/SemaCUDA.cpp
  clang/lib/Sema/SemaDecl.cpp
  clang/test/CodeGenCUDA/device-use-host-var.cu
  clang/test/SemaCUDA/device-use-host-var.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103108.347958.patch
Type: text/x-patch
Size: 16235 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210526/4fbfc6fc/attachment.bin>


More information about the cfe-commits mailing list