summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-08-30 00:44:54 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-08-30 00:44:54 +0000
commit88c52e0f0a60dfbaf4a10067982b48881044bb1f (patch)
treeada4cbef0bd5dd8a1949bf77b217f6ccdefe0e98 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
parenta819cda059d50032d7d7fa13eafa35fb9537897e (diff)
downloadbcm5719-llvm-88c52e0f0a60dfbaf4a10067982b48881044bb1f.tar.gz
bcm5719-llvm-88c52e0f0a60dfbaf4a10067982b48881044bb1f.zip
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
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud