[PATCH] D63256: [OpenCL] Split type and macro definitions into opencl-c-base.h
Sven van Haastregt via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 13 05:39:09 PDT 2019
svenvh created this revision.
svenvh added a reviewer: asavonic.
Herald added subscribers: cfe-commits, jfb, yaxunl, mgorny.
Herald added a project: clang.
Using the -fdeclare-opencl-builtins option will require a way to
predefine types and macros such as `int4`, `CLK_GLOBAL_MEM_FENCE`,
etc. Move these out of opencl-c.h into opencl-c-base.h that is shared
by -fdeclare-opencl-builtins and -finclude-default-header.
Repository:
rC Clang
https://reviews.llvm.org/D63256
Files:
lib/Frontend/CompilerInvocation.cpp
lib/Headers/CMakeLists.txt
lib/Headers/opencl-c-base.h
lib/Headers/opencl-c.h
test/SemaOpenCL/fdeclare-opencl-builtins.cl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63256.204501.patch
Type: text/x-patch
Size: 46834 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190613/5a0a21cc/attachment-0001.bin>
More information about the cfe-commits
mailing list