llvm-project/clang/lib
Wei Mi d535a05ca1 [ThinLTO] During module importing, close one source module before open
another one for distributed mode.

Currently during module importing, ThinLTO opens all the source modules,
collect functions to be imported and append them to the destination module,
then leave all the modules open through out the lto backend pipeline. This
patch refactors it in the way that one source module will be closed before
another source module is opened. All the source modules will be closed after
importing phase is done. It will save some amount of memory when there are
many source modules to be imported.

Note that this patch only changes the distributed thinlto mode. For in
process thinlto mode, one source module is shared acorss different thinlto
backend threads so it is not changed in this patch.

Differential Revision: https://reviews.llvm.org/D99554
2021-03-30 14:37:29 -07:00
..
APINotes [clang][APINotes] Fix gcc Wunused-function warning (NFC) 2021-03-10 11:47:00 +08:00
ARCMigrate Make iteration over the DeclContext::lookup_result safe. 2021-03-17 08:59:04 +00:00
AST [OPENMP51]Initial support for the dispatch directive. 2021-03-30 14:12:53 -07:00
ASTMatchers [ASTMatchers][NFC] Use SmallVector when building variadic matcher descriptor 2021-03-23 16:38:45 +00:00
Analysis Deduplicate branches and adjust comment [NFC] 2021-03-27 23:08:43 +01:00
Basic [OPENMP51]Initial support for the dispatch directive. 2021-03-30 14:12:53 -07:00
CodeGen [ThinLTO] During module importing, close one source module before open 2021-03-30 14:37:29 -07:00
CrossTU [analyzer][CTU] API for CTU macro expansions 2021-02-22 11:12:22 +01:00
DirectoryWatcher Revert "ADT: Migrate users of AlignedCharArrayUnion to std::aligned_union_t, NFC" 2020-12-14 17:04:06 -08:00
Driver [Driver] Linux.cpp: move resource directory before /usr/local/include for non-musl 2021-03-28 12:44:21 -07:00
Edit [clang] Use SourceLocation as key in hash maps, NFCI 2020-10-20 16:24:09 +01:00
Format [clang-format] Fix east const pointer alignment of operators 2021-03-30 17:18:32 +02:00
Frontend [clang][cli] Fix round-trip of OPT_plugin_arg 2021-03-30 18:33:10 +01:00
FrontendTool [NFC] Refactor Registry loops to range for 2020-06-19 00:40:10 +01:00
Headers [X86] Don't define vpclmulqdq or vaes intrinsics in the headers unless avx512fintrin.h has been included. 2021-03-28 11:26:30 -07:00
Index [Clang][RISCV] Define RISC-V V builtin types 2021-02-18 10:17:31 +08:00
IndexSerialization [index-while-building] Fix build with -DBUILD_SHARED_LIBS=True 2020-08-20 15:12:56 +01:00
Lex Support #__private_macro and #__public_macro in local submodule 2021-03-23 16:54:28 -07:00
Parse [OPENMP51]Initial support for the dispatch directive. 2021-03-30 14:12:53 -07:00
Rewrite [clang] DeltaTree::AddDelta - fix "initialization is never read" clang-tidy warning. NFCI. 2021-03-02 15:01:34 +00:00
Sema [OPENMP51]Initial support for the dispatch directive. 2021-03-30 14:12:53 -07:00
Serialization [OPENMP51]Initial support for the dispatch directive. 2021-03-30 14:12:53 -07:00
StaticAnalyzer [OPENMP51]Initial support for the dispatch directive. 2021-03-30 14:12:53 -07:00
Testing Fix MSVC "not all control paths return a value" warning. NFC. 2020-06-05 10:45:59 +01:00
Tooling [clang][Syntax] Optimize expandedTokens for token ranges. 2021-03-25 18:54:15 +01:00
CMakeLists.txt APINotes: add APINotesYAMLCompiler 2020-11-05 18:55:13 +00:00