|
LLVM 22.0.0git
|
#include "llvm/DTLTO/DTLTO.h"
Public Member Functions | |
| ~DTLTO () | |
| virtual LLVM_ABI Expected< std::shared_ptr< lto::InputFile > > | addInput (std::unique_ptr< lto::InputFile > InputPtr) override |
| virtual LLVM_ABI llvm::Error | handleArchiveInputs () override |
| LLVM_ABI | LTO (Config Conf, ThinBackend Backend={}, unsigned ParallelCodeGenParallelismLevel=1, LTOKind LTOMode=LTOK_Default) |
| Create an LTO object. | |
| Public Member Functions inherited from llvm::lto::LTO | |
| LLVM_ABI | LTO (Config Conf, ThinBackend Backend={}, unsigned ParallelCodeGenParallelismLevel=1, LTOKind LTOMode=LTOK_Default) |
| Create an LTO object. | |
| virtual LLVM_ABI | ~LTO () |
| LLVM_ABI Error | add (std::unique_ptr< InputFile > Obj, ArrayRef< SymbolResolution > Res) |
| Add an input file to the LTO link, using the provided symbol resolutions. | |
| LLVM_ABI unsigned | getMaxTasks () const |
| Returns an upper bound on the number of tasks that the client may expect. | |
| LLVM_ABI Error | run (AddStreamFn AddStream, FileCache Cache={}) |
| Runs the LTO pipeline. | |
Additional Inherited Members | |
| Public Types inherited from llvm::lto::LTO | |
| enum | LTOKind { LTOK_Default , LTOK_UnifiedRegular , LTOK_UnifiedThin } |
| Unified LTO modes. More... | |
| Static Public Member Functions inherited from llvm::lto::LTO | |
| static LLVM_ABI SmallVector< const char * > | getRuntimeLibcallSymbols (const Triple &TT) |
| Static method that returns a list of libcall symbols that can be generated by LTO but might not be visible from bitcode symbol table. | |
|
overridevirtual |
Reimplemented from llvm::lto::LTO.
Definition at line 135 of file DTLTO.cpp.
References llvm::StringRef::empty(), llvm::sys::path::filename(), llvm::sys::Process::getProcessId(), llvm::BitcodeModule::setModuleIdentifier(), llvm::SmallString< InternalLen >::str(), llvm::Expected< T >::takeError(), and llvm::utohexstr().
|
overridevirtual |
Reimplemented from llvm::lto::LTO.
Definition at line 206 of file DTLTO.cpp.
References llvm::Error::success().
| LTO::LTO | ( | Config | Conf, |
| ThinBackend | Backend = {}, | ||
| unsigned | ParallelCodeGenParallelismLevel = 1, | ||
| LTOKind | LTOMode = LTOK_Default ) |
Create an LTO object.
A default constructed LTO object has a reasonable production configuration, but you can customize it by passing arguments to this constructor. FIXME: We do currently require the DiagHandler field to be set in Conf. Until that is fixed, a Config argument is required.
Definition at line 415 of file LTO.cpp.
References llvm::GlobalValue::AvailableExternallyLinkage, llvm::CallingConv::C, llvm::lto::Config::ELF, llvm::ForceImportAll, and llvm::isa().