compileOptimized overloads

Synopses

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

Compiles the merged optimized module into a single output file. It brings the output to a buffer, and returns the buffer to the caller. Return NULL if the compilation was not successful.

std::unique_ptr<MemoryBuffer>
compileOptimized();

Compile the merged optimized module ParallelismLevel output files each representing a linkable partition of the module. If out contains more than one element, code generation is done in parallel with ParallelismLevel threads. Output files will be written to the streams created using the AddStream callback. Returns true on success.

bool
compileOptimized(
    AddStreamFn AddStream,
    unsigned int ParallelismLevel);

Created with MrDocs