Code generation optimization level.

Synopsis

Declared in <llvm/Support/CodeGen.h>

enum class CodeGenOptLevel : int;

Members

Name

Description

None

No optimization (‐O0).

Less

Minimal optimization (‐O1).

Default

Default optimization (‐O2, ‐Os, ‐Oz).

Aggressive

Aggressive optimization (‐O3).

Non-Member Functions

Name

Description

createDwarfEHPass

createDwarfEHPass ‐ This pass mulches exception handling code into a form adapted to code generation. Required if using dwarf exception handling.

createExpandIRInstsPass

Create a pass that expands large div/rem and floating‐point instructions.

getStandardCSEConfigForOpt

Return the standard CSEConfig for the given optimization level.

CodeGenOpt::getLevel

Get the Level identified by the integer OL.

CodeGenOpt::parseLevel

Parse C as a single digit integer and get matching CodeGenLevel.

Created with MrDocs