Compile the merged optimized module into one or more output streams.

Synopsis

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

bool
compileOptimized(
    AddStreamFn AddStream,
    unsigned int ParallelismLevel);

Description

Emits 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.

Calls verifyMergedModuleOnce().

Return Value

True on success.

Parameters

Name

Description

AddStream

Callback that creates an output stream per partition.

ParallelismLevel

Number of parallel code‐generation partitions.

Created with MrDocs