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

Anton Zabaznov via All-commits all-commits at lists.llvm.org
Mon Aug 2 08:37:17 PDT 2021


  Branch: refs/heads/release/13.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 568767b3b632bcb65690d8f7476ac6f333fbb38b
      https://github.com/llvm/llvm-project/commit/568767b3b632bcb65690d8f7476ac6f333fbb38b
  Author: Anton Zabaznov <anton.zabaznov at intel.com>
  Date:   2021-08-02 (Mon, 02 Aug 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_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.

This is squashed cherry pick of D107154 and D107176




More information about the All-commits mailing list