]> granicus.if.org Git - clang/commit
[OpenCL] Include opencl-c.h by default as a clang module
authorYaxun Liu <Yaxun.Liu@amd.com>
Mon, 20 Jun 2016 19:26:00 +0000 (19:26 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Mon, 20 Jun 2016 19:26:00 +0000 (19:26 +0000)
commit5a7e51b93eea78a78d0664cb6a940e1d5abba139
tree3ed594497c00912104349eb2227a96dc4737eb3f
parentc22cde5f80cd44a7c3b2f96f921a430f90ecaad2
[OpenCL] Include opencl-c.h by default as a clang module

Include opencl-c.h by default as a module to utilize the automatic AST caching mechanism of clang modules.

Add an option -finclude-default-header to enable default header for OpenCL, which is off by default.

Differential Revision: http://reviews.llvm.org/D20444

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273191 91177308-0d34-0410-b5e6-96231b3b80d8
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