LLVM
8.0.1
|
Functions | |
std::unique_ptr< ModuleSummaryIndex > | llvm::ThinLTOCodeGenerator::linkCombinedIndex () |
Produce the combined summary index from all the bitcode files: "thin-link". More... | |
void | llvm::ThinLTOCodeGenerator::promote (Module &Module, ModuleSummaryIndex &Index) |
Perform promotion and renaming of exported internal functions, and additionally resolve weak and linkonce symbols. More... | |
void | llvm::ThinLTOCodeGenerator::emitImports (Module &Module, StringRef OutputName, ModuleSummaryIndex &Index) |
Compute and emit the imported files for module at ModulePath . More... | |
void | llvm::ThinLTOCodeGenerator::crossModuleImport (Module &Module, ModuleSummaryIndex &Index) |
Perform cross-module importing for the module identified by ModuleIdentifier. More... | |
void | llvm::ThinLTOCodeGenerator::gatherImportedSummariesForModule (Module &Module, ModuleSummaryIndex &Index, std::map< std::string, GVSummaryMapTy > &ModuleToSummariesForIndex) |
Compute the list of summaries needed for importing into module. More... | |
void | llvm::ThinLTOCodeGenerator::internalize (Module &Module, ModuleSummaryIndex &Index) |
Perform internalization. More... | |
void | llvm::ThinLTOCodeGenerator::optimize (Module &Module) |
Perform post-importing ThinLTO optimizations. More... | |
void ThinLTOCodeGenerator::crossModuleImport | ( | Module & | Module, |
ModuleSummaryIndex & | Index | ||
) |
Perform cross-module importing for the module identified by ModuleIdentifier.
Definition at line 635 of file ThinLTOCodeGenerator.cpp.
References llvm::ModuleSummaryIndex::collectDefinedGVSummariesPerModule(), llvm::ComputeCrossModuleImport(), computeDeadSymbolsInIndex(), llvm::Module::getModuleIdentifier(), llvm::Module::getTargetTriple(), llvm::ModuleSummaryIndex::modulePaths(), and llvm::StringMapImpl::size().
void ThinLTOCodeGenerator::emitImports | ( | Module & | Module, |
StringRef | OutputName, | ||
ModuleSummaryIndex & | Index | ||
) |
Compute and emit the imported files for module at ModulePath
.
Emit the list of files needed for importing into module.
Definition at line 695 of file ThinLTOCodeGenerator.cpp.
References llvm::ModuleSummaryIndex::collectDefinedGVSummariesPerModule(), llvm::ComputeCrossModuleImport(), computeDeadSymbolsInIndex(), llvm::EmitImportsFiles(), llvm::gatherImportedSummariesForModule(), llvm::Module::getModuleIdentifier(), llvm::Module::getTargetTriple(), llvm::ModuleSummaryIndex::modulePaths(), llvm::report_fatal_error(), and llvm::StringMapImpl::size().
void ThinLTOCodeGenerator::gatherImportedSummariesForModule | ( | Module & | Module, |
ModuleSummaryIndex & | Index, | ||
std::map< std::string, GVSummaryMapTy > & | ModuleToSummariesForIndex | ||
) |
Compute the list of summaries needed for importing into module.
Definition at line 664 of file ThinLTOCodeGenerator.cpp.
References llvm::ModuleSummaryIndex::collectDefinedGVSummariesPerModule(), llvm::ComputeCrossModuleImport(), computeDeadSymbolsInIndex(), llvm::gatherImportedSummariesForModule(), llvm::Module::getModuleIdentifier(), llvm::Module::getTargetTriple(), llvm::ModuleSummaryIndex::modulePaths(), and llvm::StringMapImpl::size().
void ThinLTOCodeGenerator::internalize | ( | Module & | TheModule, |
ModuleSummaryIndex & | Index | ||
) |
Perform internalization.
Index is updated to reflect linkage changes.
Definition at line 732 of file ThinLTOCodeGenerator.cpp.
References llvm::ModuleSummaryIndex::collectDefinedGVSummariesPerModule(), llvm::ComputeCrossModuleImport(), computeDeadSymbolsInIndex(), llvm::Module::getModuleIdentifier(), llvm::Module::getTargetTriple(), internalizeAndPromoteInIndex(), llvm::ModuleSummaryIndex::modulePaths(), llvm::StringMapImpl::size(), and llvm::thinLTOInternalizeModule().
std::unique_ptr< ModuleSummaryIndex > ThinLTOCodeGenerator::linkCombinedIndex | ( | ) |
Produce the combined summary index from all the bitcode files: "thin-link".
Definition at line 548 of file ThinLTOCodeGenerator.cpp.
void ThinLTOCodeGenerator::optimize | ( | Module & | Module | ) |
Perform post-importing ThinLTO optimizations.
Definition at line 770 of file ThinLTOCodeGenerator.cpp.
References llvm::Module::getTargetTriple().
void ThinLTOCodeGenerator::promote | ( | Module & | TheModule, |
ModuleSummaryIndex & | Index | ||
) |
Perform promotion and renaming of exported internal functions, and additionally resolve weak and linkonce symbols.
Perform promotion and renaming of exported internal functions.
Index is updated to reflect linkage changes from weak resolution.
Definition at line 596 of file ThinLTOCodeGenerator.cpp.
References llvm::ModuleSummaryIndex::collectDefinedGVSummariesPerModule(), llvm::ComputeCrossModuleImport(), computeDeadSymbolsInIndex(), llvm::Module::getModuleIdentifier(), llvm::Module::getTargetTriple(), internalizeAndPromoteInIndex(), llvm::ModuleSummaryIndex::modulePaths(), llvm::StringMapImpl::size(), and llvm::thinLTOResolvePrevailingInModule().