[all-commits] [llvm/llvm-project] acc585: [OpenCL] Add support of __opencl_c_pipes feature m...

Anton Zabaznov via All-commits all-commits at lists.llvm.org
Fri Jul 30 08:10:41 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: acc58504952f0e2ca48a44d868f684e3b135dd34
      https://github.com/llvm/llvm-project/commit/acc58504952f0e2ca48a44d868f684e3b135dd34
  Author: Anton Zabaznov <anton.zabaznov at intel.com>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M clang/include/clang/Basic/LangOptions.def
    M clang/lib/Basic/OpenCLOptions.cpp
    M clang/lib/Basic/TargetInfo.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/lib/Parse/ParseDecl.cpp
    M clang/lib/Sema/Sema.cpp
    M clang/test/CodeGenOpenCL/address-spaces-mangling.cl
    M clang/test/CodeGenOpenCL/address-spaces.cl
    M clang/test/CodeGenOpenCL/pipe_builtin.cl
    M clang/test/CodeGenOpenCL/pipe_types.cl
    M clang/test/CodeGenOpenCL/pipe_types_mangling.cl
    M clang/test/Misc/opencl-c-3.0.incorrect_options.cl
    M clang/test/SemaOpenCL/invalid-pipes-cl1.2.cl
    M clang/test/SemaOpenCL/invalid-pipes-cl2.0.cl
    M clang/test/SemaOpenCL/storageclass.cl

  Log Message:
  -----------
  [OpenCL] Add support of __opencl_c_pipes feature macro.

'pipe' keyword is introduced in OpenCL C 2.0: so do checks for OpenCL C version while
parsing and then later on check for language options to construct actual pipe. This feature
requires support of __opencl_c_generic_address_space, so diagnostics for that is provided as well.

This is the same patch as in D106748 but with a tiny fix in checking of diagnostic messages.
Also added tests when program scope global variables are not supported.

Reviewed By: Anastasia

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




More information about the All-commits mailing list