[PATCH] D91281: [CUDA][HIP] Diagnose reference of host variable

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 11 10:02:42 PST 2020


yaxunl created this revision.
yaxunl added reviewers: tra, rjmccall.
yaxunl requested review of this revision.

This patch diagnoses invalid references of global host variables in device,
global, or host device functions.


https://reviews.llvm.org/D91281

Files:
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/lib/Sema/SemaCUDA.cpp
  clang/lib/Sema/SemaExpr.cpp
  clang/test/CodeGenCUDA/function-overload.cu
  clang/test/SemaCUDA/device-use-host-var.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91281.304562.patch
Type: text/x-patch
Size: 8659 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201111/46f0a588/attachment-0001.bin>


More information about the cfe-commits mailing list