[PATCH] D137652: Remove mandatory define of optional features macros for OpenCL C 3.0
Finlay Marno via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 8 09:14:13 PST 2022
FMarno created this revision.
FMarno added a reviewer: Anastasia.
Herald added subscribers: Naghasan, ldrumm, yaxunl.
Herald added a project: All.
FMarno requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
A number of feature macros were being defined for OpenCL C 3.0 even though they are optional. I have removed these defines and updated the related tests. This should help users who are creating compilers for more limited environments.
This will also affect C++ for OpenCL 2021 since I believe its follows the same system of feature macros as OpenCL C 3.0.
This contribution is being made by Codeplay on behalf of Samsung.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D137652
Files:
clang/include/clang/Basic/OpenCLExtensions.def
clang/lib/Frontend/InitPreprocessor.cpp
clang/lib/Headers/opencl-c-base.h
clang/test/SemaOpenCL/extension-version.cl
clang/test/SemaOpenCL/features.cl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137652.474024.patch
Type: text/x-patch
Size: 8377 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221108/4cc74b07/attachment.bin>
More information about the cfe-commits
mailing list