[all-commits] [llvm/llvm-project] c33e29: [OpenCL] Disallows static kernel functions in C++ ...

Justas Janickas via All-commits all-commits at lists.llvm.org
Tue Sep 7 02:24:10 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c33e296be1daa621f5933f3729a0ce51172f1505
      https://github.com/llvm/llvm-project/commit/c33e296be1daa621f5933f3729a0ce51172f1505
  Author: Justas Janickas <Justas.Janickas at arm.com>
  Date:   2021-09-07 (Tue, 07 Sep 2021)

  Changed paths:
    M clang/lib/Sema/SemaDecl.cpp
    M clang/test/SemaOpenCL/storageclass-cl20.cl

  Log Message:
  -----------
  [OpenCL] Disallows static kernel functions in C++ for OpenCL

It is disallowed in OpenCL C to declare static kernel functions and
C++ for OpenCL is expected to inherit such behaviour. Error is now
correctly reported in C++ for OpenCL when declaring a static kernel
function.

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




More information about the All-commits mailing list