[OpenCL] Fix optional image types.
authorAnastasia Stulova <anastasia.stulova@arm.com>
Fri, 7 May 2021 11:15:51 +0000 (12:15 +0100)
committerAnastasia Stulova <anastasia.stulova@arm.com>
Fri, 7 May 2021 12:29:28 +0000 (13:29 +0100)
commit76f1de10f43ec4d1eb6146c45ccd6f93df5aa3e1
tree51ecf650f5a600c8787ca05548047370d0b10f29
parentd9f2960c932c9803e662098e33d899efa3c67f44
[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
clang/include/clang/Basic/OpenCLImageTypes.def
clang/lib/Parse/ParseDecl.cpp
clang/lib/Sema/Sema.cpp
clang/lib/Sema/SemaType.cpp
clang/test/SemaOpenCL/access-qualifier.cl
clang/test/SemaOpenCL/invalid-image.cl