[all-commits] [llvm/llvm-project] 76f1de: [OpenCL] Fix optional image types.

Anastasia Stulova via All-commits all-commits at lists.llvm.org
Fri May 7 05:31:50 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76f1de10f43ec4d1eb6146c45ccd6f93df5aa3e1
      https://github.com/llvm/llvm-project/commit/76f1de10f43ec4d1eb6146c45ccd6f93df5aa3e1
  Author: Anastasia Stulova <anastasia.stulova at arm.com>
  Date:   2021-05-07 (Fri, 07 May 2021)

  Changed paths:
    M clang/include/clang/Basic/OpenCLImageTypes.def
    M clang/lib/Parse/ParseDecl.cpp
    M clang/lib/Sema/Sema.cpp
    M clang/lib/Sema/SemaType.cpp
    M clang/test/SemaOpenCL/access-qualifier.cl
    M clang/test/SemaOpenCL/invalid-image.cl

  Log Message:
  -----------
  [OpenCL] Fix optional image types.

This change allows the use of identifiers for image types
from `cl_khr_gl_msaa_sharing` freely in the kernel code if
the extension is not supported since they are not in the
list of the reserved identifiers.

This change also removed the need for pragma for the types
in the extensions since the spec does not require the pragma
uses.

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




More information about the All-commits mailing list