[PATCH] D96948: [OpenCL] Move remaining defines to opencl-c-base.h

Sven van Haastregt via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 18 03:35:24 PST 2021


svenvh created this revision.
svenvh added a reviewer: Anastasia.
svenvh added a project: clang.
Herald added a subscriber: yaxunl.
svenvh requested review of this revision.
Herald added a subscriber: cfe-commits.

Move any remaining preprocessor defines from `opencl-c.h` to
`opencl-c-base.h`, such that they are shared with
`-fdeclare-opencl-builtins` too.

In particular, move:

- the `as_type` and `as_typen` definitions, and
- the `kernel_exec` and `__kernel_exec` definitions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96948

Files:
  clang/lib/Headers/opencl-c-base.h
  clang/lib/Headers/opencl-c.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96948.324585.patch
Type: text/x-patch
Size: 8770 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210218/df7b1b90/attachment-0001.bin>


More information about the cfe-commits mailing list