[PATCH] D19071: [OpenCL] Add predefined macros.

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 19 12:41:51 PDT 2016


yaxunl updated the summary for this revision.
yaxunl updated this revision to Diff 54243.
yaxunl marked an inline comment as done.
yaxunl added a comment.

Added __OPENCL_C_VERSION__ and CL_VERSION_X_Y for all OpenCL versions.

Also fixed the test using -std=c99 for OpenCL and limit allowed language standard for OpenCL.

I think an OpenCL program by definition should follow certain OpenCL language standard.


http://reviews.llvm.org/D19071

Files:
  lib/Frontend/CompilerInvocation.cpp
  lib/Frontend/InitPreprocessor.cpp
  test/Frontend/stdlang.c
  test/Preprocessor/predefined-macros.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19071.54243.patch
Type: text/x-patch
Size: 5029 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160419/2d254709/attachment.bin>


More information about the cfe-commits mailing list