[all-commits] [llvm/llvm-project] 980133: [OpenCL] Use generic addr space for lambda call op...

Anastasia Stulova via All-commits all-commits at lists.llvm.org
Tue Dec 3 08:08:03 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 980133a2098cf6159785b8ac0cbe4d8fbf99bfea
      https://github.com/llvm/llvm-project/commit/980133a2098cf6159785b8ac0cbe4d8fbf99bfea
  Author: Anastasia Stulova <anastasia.stulova at arm.com>
  Date:   2019-12-03 (Tue, 03 Dec 2019)

  Changed paths:
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/Sema.cpp
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/lib/Sema/SemaLambda.cpp
    M clang/lib/Sema/SemaType.cpp
    A clang/test/SemaOpenCLCXX/address-space-lambda.cl

  Log Message:
  -----------
  [OpenCL] Use generic addr space for lambda call operator

Since lambdas are represented by callable objects, we add
generic addr space for implicit object parameter in call
operator.

Any lambda variable declared in __constant addr space
(which is not convertible to generic) fails to compile with
a diagnostic. To support constant addr space we need to
add a way to qualify the lambda call operators.

Tags: #clang

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




More information about the All-commits mailing list