[PATCH] D20444: [OpenCL] Include opencl-c.h by default as a clang module

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Fri May 27 13:29:01 PDT 2016


yaxunl retitled this revision from "[OpenCL] Include opencl-c.h by default as a module" to "[OpenCL] Include opencl-c.h by default as a clang module".
yaxunl updated the summary for this revision.
yaxunl updated this revision to Diff 58830.
yaxunl added a comment.

Revised as Anastasia suggested.

Add option -finclude-default-header to include OpenCL default header file, which is off by default.
Add test to make sure the AST of the header is really cached and works for different OpenCL versions.


http://reviews.llvm.org/D20444

Files:
  include/clang/Basic/LangOptions.def
  include/clang/Driver/CC1Options.td
  include/clang/Frontend/CompilerInvocation.h
  lib/Frontend/CompilerInvocation.cpp
  lib/Headers/module.modulemap
  test/Headers/opencl-c-header.cl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20444.58830.patch
Type: text/x-patch
Size: 9267 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160527/e1ac3e74/attachment.bin>


More information about the cfe-commits mailing list