llvm::LTOModule

C++ class which implements the opaque lto_module_t type.

Synopsis

Declared in <llvm/LTO/legacy/LTOModule.h>

struct LTOModule;

Member Functions

NameDescription
~LTOModule [destructor]Destroy this LTO module.
getAsmUndefSymbolCount Get the number of undefined symbols from module-level assembly.
getAsmUndefSymbolName Get the name of an undefined asm symbol at the specified index.
getAsmUndefinedRefs Return the list of undefined symbols from module-level assembly.
getLinkerOpts Return linker options extracted from the module metadata.
getMachOCPUSubType Return the Mach-O CPU subtype for the module's target triple.
getMachOCPUType Return the Mach-O CPU type for the module's target triple.
getModule getModule overloads
getSymbolAttributes Get the attributes for a symbol at the specified index.
getSymbolCount Get the number of symbols
getSymbolGV Get the GlobalValue for a symbol at the specified index.
getSymbolName Get the name of the symbol at the specified index.
getTargetTriple Return the Module's target triple.
hasCtorDtor Returns true if the module has either the llvm.global_ctors or the llvm.global_dtors symbol. Otherwise returns false.
isThinLTO Returns 'true' if the Module is produced for ThinLTO.
setTargetTriple Set the Module's target triple.
takeModule Take ownership of the wrapped Module.

Static Member Functions

NameDescription
createFromBuffer Create an LTOModule from an in-memory bitcode buffer.
createFromFile Create an LTOModule from a bitcode file path.
createFromOpenFile Create an LTOModule from an open file descriptor.
createFromOpenFileSlice Create an LTOModule from a slice of an open file.
createInLocalContext Create an LTOModule that owns its own LLVMContext.
createInputFile Create an LTO input file from an in-memory object or bitcode buffer.
getDependentLibrary Get a dependent library name from an input file.
getDependentLibraryCount Get the number of dependent libraries recorded in an input file.
getProducerString Returns a string representing the producer identification stored in the bitcode, or "" if the bitcode does not contains any.
isBitcodeFile isBitcodeFile overloads
isBitcodeForTarget Returns 'true' if the memory buffer is LLVM bitcode for the specified triple.
makeBuffer Create a MemoryBuffer from a memory range with an optional name.

Return Value

True on success.

Parameters

NameDescription
ModModule to merge into the combined LTO module.