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

Anton Zabaznov via All-commits all-commits at lists.llvm.org
Thu Jul 29 19:28:11 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d1e4b25756730576996457ba7324e9bf210e3693
      https://github.com/llvm/llvm-project/commit/d1e4b25756730576996457ba7324e9bf210e3693
  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.

Reviewed By: Anastasia

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




More information about the All-commits mailing list