[PATCH] D96515: [OpenCL] Add builtin declarations by default.

Anastasia Stulova via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 11 08:07:37 PST 2021


Anastasia created this revision.
Anastasia added reviewers: svenvh, arsenm.
Herald added subscribers: dang, ebevhan, yaxunl.
Herald added a reviewer: jansvoboda11.
Anastasia requested review of this revision.
Herald added a subscriber: wdng.

See original RFC: https://lists.llvm.org/pipermail/cfe-dev/2021-February/067610.html

This patch enabled the Tablegen based declarations by default along with `opencl-c-base.h` containing complete list of OpenCL types. It also adds a new flag `-cl-no-stdinc` that disables extra header includes and declarations.

The next step would be to either add missing declarations into Tablegen header or opencl-c-base.h.


https://reviews.llvm.org/D96515

Files:
  clang/include/clang/Driver/Options.td
  clang/include/clang/Driver/Types.h
  clang/lib/Driver/ToolChains/Clang.cpp
  clang/lib/Driver/Types.cpp
  clang/test/Driver/default-includes.cl
  clang/unittests/AST/MatchVerifier.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96515.323023.patch
Type: text/x-patch
Size: 4042 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210211/7f8719e7/attachment-0001.bin>


More information about the cfe-commits mailing list