[OpenCL] Move remaining defines to opencl-c-base.h
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Tue, 23 Feb 2021 10:18:14 +0000 (10:18 +0000)
committerSven van Haastregt <sven.vanhaastregt@arm.com>
Tue, 23 Feb 2021 10:18:14 +0000 (10:18 +0000)
commit612d0ef1732f491ceec22249dc2dbf50df4353c0
treef06df22806e82846574f414e6665336fc870b03b
parent03310c1e952d0bf7aa84b8ed06809aa7ea1deb9b
[OpenCL] Move remaining defines to opencl-c-base.h

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.

Also clang-format the changes.

Differential Revision: https://reviews.llvm.org/D96948
clang/lib/Headers/opencl-c-base.h
clang/lib/Headers/opencl-c.h