C++ class which implements the opaque lto_code_gen_t type.

Synopsis

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

struct LTOCodeGenerator;

Member Functions

Name

Description

LTOCodeGenerator [constructor]

Construct from LLVMContext

~LTOCodeGenerator [destructor]

Destructor

DiagnosticHandler

addModule

Merge given module. Return true on success.

addMustPreserveSymbol

compile

As with compile_to_file(), this function compiles the merged module into single output file. Instead of returning the output file path to the caller (linker), it brings the output to a buffer, and returns the buffer to the caller. This function should delete the intermediate file once its content is brought to memory. Return NULL if the compilation was not successful.

compileOptimized

compileOptimized overloads

compile_to_file

Compile the merged module into a single output file; the path to output file is returned to the caller via argument "name". Return true on success.

getContext

optimize

Optimizes the merged module. Returns true on success.

parseCodeGenDebugOptions

Parse the options set in setCodeGenDebugOptions.

resetMergedModule

setAsmUndefinedRefs

setAttrs

setCodeGenDebugOptions

Pass options to the driver and optimization passes.

setCodePICModel

setCpu

setDebugInfo

setDebugPassManager

setDiagnosticHandler

setDisableVerify

setFileType

Set the file type to be emitted (assembly or object code). The default is CodeGenFileType::ObjectFile.

setFreestanding

Enable the Freestanding mode: indicate that the optimizer should not assume builtins are present on the target.

setModule

Set the destination module.

setOptLevel

setSaveIRBeforeOptPath

setShouldEmbedUselists

setShouldInternalize

setShouldRestoreGlobalsLinkage

Restore linkage of globals

setTargetOptions

writeMergedModules

Write the merged module to the file specified by the given path. Return true on success.

Static Member Functions

Name

getVersionString

Created with MrDocs