diff options
author | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2024-03-08 10:12:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 10:12:51 +0800 |
commit | da00c60dae0040185dc45039c4397f6e746548e9 (patch) | |
tree | b1ac165e76989b55110e67b222c3368715306b37 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
parent | cc34e56b865f1fc9e894b75fc958f09dff0fcdea (diff) | |
download | llvm-da00c60dae0040185dc45039c4397f6e746548e9.zip llvm-da00c60dae0040185dc45039c4397f6e746548e9.tar.gz llvm-da00c60dae0040185dc45039c4397f6e746548e9.tar.bz2 |
[C++20] [Modules] Introduce reduced BMI (#75894)
Close https://github.com/llvm/llvm-project/issues/71034
See
https://discourse.llvm.org/t/rfc-c-20-modules-introduce-thin-bmi-and-decls-hash/74755
This patch introduces reduced BMI, which doesn't contain the definitions
of functions and variables if its definitions won't contribute to the
ABI.
Testing is a big part of the patch. We want to make sure the reduced BMI
contains the same behavior with the existing and relatively stable
fatBMI. This is pretty helpful for further reduction.
The user interfaces part it left to following patches to ease the
reviewing.
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
-rw-r--r-- | clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp index 925879a..2446aee 100644 --- a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp +++ b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp @@ -65,6 +65,8 @@ CreateFrontendBaseAction(CompilerInstance &CI) { return std::make_unique<GenerateModuleFromModuleMapAction>(); case GenerateModuleInterface: return std::make_unique<GenerateModuleInterfaceAction>(); + case GenerateReducedModuleInterface: + return std::make_unique<GenerateReducedModuleInterfaceAction>(); case GenerateHeaderUnit: return std::make_unique<GenerateHeaderUnitAction>(); case GeneratePCH: return std::make_unique<GeneratePCHAction>(); |