Go to the documentation of this file.
16 #ifndef LLVM_LTO_LTOBACKEND_H
17 #define LLVM_LTO_LTOBACKEND_H
37 bool opt(
const Config &Conf, TargetMachine *
TM,
unsigned Task,
Module &Mod,
38 bool IsThinLTO, ModuleSummaryIndex *ExportSummary,
39 const ModuleSummaryIndex *ImportSummary,
40 const std::vector<uint8_t> &CmdArgs);
45 unsigned ParallelCodeGenParallelismLevel,
Module &M,
46 ModuleSummaryIndex &CombinedIndex);
55 Module &M,
const ModuleSummaryIndex &CombinedIndex,
58 MapVector<StringRef, BitcodeModule> *ModuleMap,
59 const std::vector<uint8_t> &CmdArgs = std::vector<uint8_t>());
62 std::unique_ptr<ToolOutputFile> DiagOutputFile);
This is an optimization pass for GlobalISel generic memory operations.
bool initImportList(const Module &M, const ModuleSummaryIndex &CombinedIndex, FunctionImporter::ImportMapTy &ImportList)
Distributed ThinLTO: collect the referenced modules based on module summary and initialize ImportList...
Error finalizeOptimizationRemarks(std::unique_ptr< ToolOutputFile > DiagOutputFile)
std::function< Expected< std::unique_ptr< CachedFileStream > >(unsigned Task)> AddStreamFn
This type defines the callback to add a file that is generated on the fly.
BitcodeModule * findThinLTOModule(MutableArrayRef< BitcodeModule > BMs)
Returns the BitcodeModule that is ThinLTO.
bool opt(const Config &Conf, TargetMachine *TM, unsigned Task, Module &Mod, bool IsThinLTO, ModuleSummaryIndex *ExportSummary, const ModuleSummaryIndex *ImportSummary, const std::vector< uint8_t > &CmdArgs)
Runs middle-end LTO optimizations on Mod.
(vector float) vec_cmpeq(*A, *B) C
Error backend(const Config &C, AddStreamFn AddStream, unsigned ParallelCodeGenParallelismLevel, Module &M, ModuleSummaryIndex &CombinedIndex)
Runs a regular LTO backend.
Error thinBackend(const Config &C, unsigned Task, AddStreamFn AddStream, Module &M, const ModuleSummaryIndex &CombinedIndex, const FunctionImporter::ImportMapTy &ImportList, const GVSummaryMapTy &DefinedGlobals, MapVector< StringRef, BitcodeModule > *ModuleMap, const std::vector< uint8_t > &CmdArgs=std::vector< uint8_t >())
Runs a ThinLTO backend.
DenseMap< GlobalValue::GUID, GlobalValueSummary * > GVSummaryMapTy
Map of global value GUID to its summary, used to identify values defined in a particular module,...
StringMap< FunctionsToImportTy > ImportMapTy
The map contains an entry for every module to import from, the key being the module identifier to pas...
Machine Check Debug Module
const char LLVMTargetMachineRef TM