17 #ifndef LLVM_LTO_LTOBACKEND_H 18 #define LLVM_LTO_LTOBACKEND_H 40 unsigned ParallelCodeGenParallelismLevel,
41 std::unique_ptr<Module> M, ModuleSummaryIndex &CombinedIndex);
45 const ModuleSummaryIndex &CombinedIndex,
48 MapVector<StringRef, BitcodeModule> &ModuleMap);
This class represents lattice values for constants.
StringMap< FunctionsToImportTy > ImportMapTy
The map contains an entry for every module to import from, the key being the module identifier to pas...
std::function< std::unique_ptr< NativeObjectStream >unsigned Task)> AddStreamFn
This type defines the callback to add a native object that is generated on the fly.
DenseMap< GlobalValue::GUID, GlobalValueSummary * > GVSummaryMapTy
Map of global value GUID to its summary, used to identify values defined in a particular module...
Error thinBackend(Config &C, unsigned Task, AddStreamFn AddStream, Module &M, const ModuleSummaryIndex &CombinedIndex, const FunctionImporter::ImportMapTy &ImportList, const GVSummaryMapTy &DefinedGlobals, MapVector< StringRef, BitcodeModule > &ModuleMap)
Runs a ThinLTO backend.
Error backend(Config &C, AddStreamFn AddStream, unsigned ParallelCodeGenParallelismLevel, std::unique_ptr< Module > M, ModuleSummaryIndex &CombinedIndex)
Runs a regular LTO backend.
ModuleSummaryIndex.h This file contains the declarations the classes that hold the module index and s...