16#ifndef LLVM_LTO_LTOBACKEND_H
17#define LLVM_LTO_LTOBACKEND_H
40 ModuleSummaryIndex *ExportSummary,
41 const ModuleSummaryIndex *ImportSummary,
42 const std::vector<uint8_t> &CmdArgs);
47 unsigned ParallelCodeGenParallelismLevel,
Module &M,
48 ModuleSummaryIndex &CombinedIndex);
61 const ModuleSummaryIndex &CombinedIndex,
62 const FunctionImporter::ImportMapTy &ImportList,
64 MapVector<StringRef, BitcodeModule> *ModuleMap,
bool CodeGenOnly,
66 const std::vector<uint8_t> &CmdArgs = std::vector<uint8_t>());
81 const ModuleSummaryIndex &CombinedIndex,
82 FunctionImporter::ImportMapTy &ImportList);
Machine Check Debug Module
This file implements a map that provides insertion order iteration.
ModuleSummaryIndex.h This file contains the declarations the classes that hold the module index and s...
Represents a module in a bitcode file.
Lightweight error class with error context and mandatory checking.
A Module instance is used to store all the information related to an LLVM module.
Target - Wrapper for Target specific information.
@ C
The default llvm calling convention, compatible with C.
LLVM_ABI BitcodeModule * findThinLTOModule(MutableArrayRef< BitcodeModule > BMs)
Returns the BitcodeModule that is ThinLTO.
LLVM_ABI Error backend(const Config &C, AddStreamFn AddStream, unsigned ParallelCodeGenParallelismLevel, Module &M, ModuleSummaryIndex &CombinedIndex)
Runs a regular LTO backend.
LLVM_ABI Error finalizeOptimizationRemarks(std::unique_ptr< ToolOutputFile > DiagOutputFile)
LLVM_ABI bool initImportList(const Module &M, const ModuleSummaryIndex &CombinedIndex, FunctionImporter::ImportMapTy &ImportList)
Distributed ThinLTO: collect the referenced modules based on module summary and initialize ImportList...
LLVM_ABI 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.
LLVM_ABI 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, bool CodeGenOnly, AddStreamFn IRAddStream=nullptr, const std::vector< uint8_t > &CmdArgs=std::vector< uint8_t >())
Runs a ThinLTO backend.
This is an optimization pass for GlobalISel generic memory operations.
DenseMap< GlobalValue::GUID, GlobalValueSummary * > GVSummaryMapTy
Map of global value GUID to its summary, used to identify values defined in a particular module,...
MutableArrayRef(T &OneElt) -> MutableArrayRef< T >
@ Mod
The access may modify the value stored in memory.
std::function< Expected< std::unique_ptr< CachedFileStream > >( unsigned Task, const Twine &ModuleName)> AddStreamFn
This type defines the callback to add a file that is generated on the fly.