[all-commits] [llvm/llvm-project] 1eaad0: [CUDA][HIP] Let lambda be host device by default

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Wed Jul 8 10:11:19 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1eaad01046c88be6bf65265a2bcc53db5a5b48d0
      https://github.com/llvm/llvm-project/commit/1eaad01046c88be6bf65265a2bcc53db5a5b48d0
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2020-07-08 (Wed, 08 Jul 2020)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaCUDA.cpp
    M clang/lib/Sema/SemaLambda.cpp
    A clang/test/CodeGenCUDA/lambda.cu
    M clang/test/SemaCUDA/Inputs/cuda.h
    A clang/test/SemaCUDA/lambda.cu

  Log Message:
  -----------
  [CUDA][HIP] Let lambda be host device by default

This patch let lambda be host device by default and adds diagnostics for
capturing host variable by reference in device lambda.

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




More information about the All-commits mailing list