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 |
|
Construct an LTO code generator that uses the given LLVM context. |
|
Destroy this LTO code generator. |
Forward an LLVM diagnostic to the external LTO diagnostic handler. |
|
Merge given module. Return true on success. |
|
Record a symbol that must be preserved during LTO. |
|
Optimize and compile the merged module into a single in‐memory buffer. |
|
|
|
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. |
|
Return the LLVM context used by this code generator. |
|
Optimizes the merged module. Returns true on success. |
|
Parse the options set in setCodeGenDebugOptions. |
|
Destroy the merged module, releasing ownership of it. |
|
Record assembly undefined references from the given module. |
|
Set the target feature attributes for code generation. |
|
Pass options to the driver and optimization passes. |
|
Set the relocation model for code generation. |
|
Set the target CPU name for code generation. |
|
Set the debug‐info model to emit. |
|
Enable or disable debug output from the pass manager. |
|
Set the external diagnostic handler callback and its context. |
|
Enable or disable IR verification during LTO. |
|
Set the file type to be emitted (assembly or object code). The default is CodeGenFileType::ObjectFile. |
|
Enable the Freestanding mode: indicate that the optimizer should not assume builtins are present on the target. |
|
Set the destination module. |
|
Set the optimization level used for LTO and code generation. |
|
Set the path where IR is saved before optimization, if any. |
|
Set whether to embed use‐lists when writing bitcode. |
|
Set whether LTO should internalize unreferenced globals. |
|
Restore linkage of globals |
|
Set the target options used for code generation. |
|
Write the merged module to the file specified by the given path. Return true on success. |
Static Member Functions
Name |
Description |
Return a string identifying the LTO library version. |
Created with MrDocs