LLVM 22.0.0git
llvm::lto::DTLTO Class Reference

#include "llvm/DTLTO/DTLTO.h"

Inheritance diagram for llvm::lto::DTLTO:
[legend]

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.

Detailed Description

Definition at line 18 of file DTLTO.h.

Constructor & Destructor Documentation

◆ ~DTLTO()

llvm::lto::DTLTO::~DTLTO ( )
inline

Definition at line 22 of file DTLTO.h.

Member Function Documentation

◆ addInput()

◆ handleArchiveInputs()

llvm::Error lto::DTLTO::handleArchiveInputs ( )
overridevirtual

Reimplemented from llvm::lto::LTO.

Definition at line 206 of file DTLTO.cpp.

References llvm::Error::success().

◆ LTO()

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().


The documentation for this class was generated from the following files: