llvm::CodeGenOptLevel

Code generation optimization level.

Synopsis

Declared in <llvm/Support/CodeGen.h>

enum class CodeGenOptLevel : int;

Members

NameDescription
None No optimization (-O0).
Less Minimal optimization (-O1).
Default Default optimization (-O2, -Os, -Oz).
Aggressive Aggressive optimization (-O3).

Non-Member Functions

NameDescription
createDwarfEHPasscreateDwarfEHPass - This pass mulches exception handling code into a form adapted to code generation. Required if using dwarf exception handling.
createExpandIRInstsPassCreate a pass that expands large div/rem and floating-point instructions.
getStandardCSEConfigForOptReturn the standard CSEConfig for the given optimization level.
CodeGenOpt::getLevelGet the Level identified by the integer OL.
CodeGenOpt::parseLevelParse C as a single digit integer and get matching CodeGenLevel.