[all-commits] [llvm/llvm-project] 5c8911: [CUDA][HIP] Diagnose reference of host variable

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Wed Dec 2 07:28:55 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5c8911d0ba3862119d2507aa55b94766263be13b
      https://github.com/llvm/llvm-project/commit/5c8911d0ba3862119d2507aa55b94766263be13b
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2020-12-02 (Wed, 02 Dec 2020)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaCUDA.cpp
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/CodeGenCUDA/function-overload.cu
    M clang/test/CodeGenCXX/builtin-amdgcn-atomic-inc-dec.cpp
    A clang/test/SemaCUDA/device-use-host-var.cu

  Log Message:
  -----------
  [CUDA][HIP] Diagnose reference of host variable

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

Differential Revision: https://reviews.llvm.org/D91281




More information about the All-commits mailing list