Go to file
Richard Smith 88c52e0f0a C++ Modules TS: driver support for building modules.
This works as follows: we add --precompile to the existing gamut of options for
specifying how far to go when compiling an input (-E, -c, -S, etc.). This flag
specifies that an input is taken to the precompilation step and no further, and
this can be specified when building a .pcm from a module interface or when
building a .pch from a header file.

The .cppm extension (and some related extensions) are implicitly recognized as
C++ module interface files. If --precompile is /not/ specified, the file is
compiled (via a .pcm) to a .o file containing the code for the module (and then
potentially also assembled and linked, if -S, -c, etc. are not specified). We
do not yet suppress the emission of object code for other users of the module
interface, so for now this will only work if everything in the .cppm file has
vague linkage.

As with the existing support for module-map modules, prebuilt modules can be
provided as compiler inputs either via the -fmodule-file= command-line argument
or via files named ModuleName.pcm in one of the directories specified via
-fprebuilt-module-path=.

This also exposes the -fmodules-ts cc1 flag in the driver. This is still
experimental, and in particular, the concrete syntax is subject to change as
the Modules TS evolves in the C++ committee. Unlike -fmodules, this flag does
not enable support for implicitly loading module maps nor building modules via
the module cache, but those features can be turned on separately and used in
conjunction with the Modules TS support.

llvm-svn: 280035
2016-08-30 00:44:54 +00:00
clang C++ Modules TS: driver support for building modules. 2016-08-30 00:44:54 +00:00
clang-tools-extra Fix some typos in the doc 2016-08-28 20:33:42 +00:00
compiler-rt [asan] Attempt to fix test on darwin bot 2016-08-29 22:59:02 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc amdgcn: Fix return type of get_num_groups 2016-08-25 07:31:40 +00:00
libcxx libc++: perform configuration checks with -nodefaultlibs 2016-08-29 21:33:37 +00:00
libcxxabi [CMake] Trying to fix the bots I broke 2016-08-29 22:26:00 +00:00
libunwind EHABI: fail on WMMX vops without WMMX support 2016-08-28 20:10:33 +00:00
lld Make lld actually compatible with gold in terms of filler handling. 2016-08-29 22:01:21 +00:00
lldb Convert GetNameColonValue to return StringRefs. 2016-08-29 19:58:14 +00:00
llgo [llgo] add llgo source path to LLVM_GO_PACKAGES 2016-07-27 03:01:00 +00:00
llvm [PowerPC] Add triple to test/CodeGen/PowerPC/atomic-2.ll for ppc64le 2016-08-30 00:22:22 +00:00
openmp cleanup: fixed names of dummy arguments of Fortran interfaces declarations, no functional changes done 2016-08-17 18:18:21 +00:00
parallel-libs [StreamExecutor] Fix KernelSpec Doxygen 2016-08-26 19:55:32 +00:00
polly Add space between access string and follow-up. 2016-08-26 15:43:52 +00:00