llvm-project/llvm/lib/LTO
Chandler Carruth b7be5b6479 [PM] Rework the new PM support for building the ModuleSummaryIndex to
directly produce the index as the value type result.

This requires making the index movable which is straightforward. It
greatly simplifies things by allowing us to completely avoid the builder
API and the layers of abstraction inherent there. Instead both pass
managers can directly construct these when run by value. They still
won't be constructed truly eagerly thanks to the optional in the legacy
PM. The code that directly builds the index can also just share a direct
function.

A notable change here is that the result type of the analysis for the
new PM is no longer a reference type. This was really problematic when
making changes to how we handle result types to make our interface
requirements *much* more strict and precise. But I think this is an
overall improvement.

Differential Revision: https://reviews.llvm.org/D23701

llvm-svn: 279216
2016-08-19 07:49:19 +00:00
..
CMakeLists.txt Restore "Resolution-based LTO API." 2016-08-11 14:58:12 +00:00
LLVMBuild.txt Restore "Resolution-based LTO API." 2016-08-11 14:58:12 +00:00
LTO.cpp [LTO] Move callback member from base class to the derived where it is used (NFC) 2016-08-19 06:10:03 +00:00
LTOBackend.cpp [LTO] Promote before performing weak resolution 2016-08-18 00:59:24 +00:00
LTOCodeGenerator.cpp Move legacy LTO interface headers to legacy/ directory. 2016-07-14 21:21:16 +00:00
LTOModule.cpp Move legacy LTO interface headers to legacy/ directory. 2016-07-14 21:21:16 +00:00
ThinLTOCodeGenerator.cpp [PM] Rework the new PM support for building the ModuleSummaryIndex to 2016-08-19 07:49:19 +00:00
UpdateCompilerUsed.cpp Move legacy LTO interface headers to legacy/ directory. 2016-07-14 21:21:16 +00:00