[OpenCL] Define OpenCL 3.0 optional core features in C++ for OpenCL 2021
authorJustas Janickas <Justas.Janickas@arm.com>
Wed, 25 Aug 2021 14:19:42 +0000 (15:19 +0100)
committerJustas Janickas <Justas.Janickas@arm.com>
Wed, 1 Sep 2021 09:15:17 +0000 (10:15 +0100)
commitfb321c2ea274c1bd1e1b294f2c090f1c0d9a97fe
tree420b5b4e914ddbc76ddc809c33e07a4afb265cb8
parentc568985845618eaef97a8a07ecc879e28cd70a94
[OpenCL] Define OpenCL 3.0 optional core features in C++ for OpenCL 2021

Modifies OpenCL 3.0 optional core feature macro definitions so that
they are set analogously in C++ for OpenCL 2021.

This change aims to achieve compatibility between C++ for OpenCL
2021 and OpenCL 3.0.

Differential Revision: https://reviews.llvm.org/D108704
clang/lib/Headers/opencl-c-base.h
clang/test/Headers/opencl-c-header.cl
clang/test/SemaOpenCL/features.cl