LLVM 20.0.0git
|
This class defines the interface to the ThinLTO backend. More...
#include "llvm/LTO/LTO.h"
Public Member Functions | |
ThinBackendProc (const Config &Conf, ModuleSummaryIndex &CombinedIndex, const DenseMap< StringRef, GVSummaryMapTy > &ModuleToDefinedGVSummaries, lto::IndexWriteCallback OnWrite, bool ShouldEmitImportsFiles, ThreadPoolStrategy ThinLTOParallelism) | |
virtual | ~ThinBackendProc ()=default |
virtual Error | start (unsigned Task, BitcodeModule BM, const FunctionImporter::ImportMapTy &ImportList, const FunctionImporter::ExportSetTy &ExportList, const std::map< GlobalValue::GUID, GlobalValue::LinkageTypes > &ResolvedODR, MapVector< StringRef, BitcodeModule > &ModuleMap)=0 |
Error | wait () |
unsigned | getThreadCount () |
virtual bool | isSensitiveToInputOrder () |
Error | emitFiles (const FunctionImporter::ImportMapTy &ImportList, llvm::StringRef ModulePath, const std::string &NewModulePath) const |
Protected Attributes | |
const Config & | Conf |
ModuleSummaryIndex & | CombinedIndex |
const DenseMap< StringRef, GVSummaryMapTy > & | ModuleToDefinedGVSummaries |
IndexWriteCallback | OnWrite |
bool | ShouldEmitImportsFiles |
DefaultThreadPool | BackendThreadPool |
std::optional< Error > | Err |
std::mutex | ErrMu |
|
inline |
|
virtualdefault |
Error ThinBackendProc::emitFiles | ( | const FunctionImporter::ImportMapTy & | ImportList, |
llvm::StringRef | ModulePath, | ||
const std::string & | NewModulePath | ||
) | const |
Definition at line 1390 of file LTO.cpp.
References CombinedIndex, llvm::createFileError(), llvm::EmitImportsFiles(), llvm::gatherImportedSummariesForModule(), ModuleToDefinedGVSummaries, llvm::sys::fs::OF_None, OS, ShouldEmitImportsFiles, llvm::Error::success(), and llvm::writeIndexToFile().
|
inline |
Definition at line 238 of file LTO.h.
References BackendThreadPool, and llvm::SingleThreadExecutor::getMaxConcurrency().
|
inlinevirtual |
|
pure virtual |
|
inline |
Definition at line 232 of file LTO.h.
References BackendThreadPool, Err, llvm::Error::success(), and llvm::SingleThreadExecutor::wait().
|
protected |
Definition at line 210 of file LTO.h.
Referenced by getThreadCount(), and wait().
|
protected |
Definition at line 206 of file LTO.h.
Referenced by emitFiles().
|
protected |
|
protected |
Definition at line 207 of file LTO.h.
Referenced by emitFiles().
|
protected |
|
protected |
Definition at line 209 of file LTO.h.
Referenced by emitFiles().