Code generation optimization level.
Declared in <llvm/Support/CodeGen.h>
enum class CodeGenOptLevel : int;
| Name | Description |
|---|---|
None | No optimization (-O0). |
Less | Minimal optimization (-O1). |
Default | Default optimization (-O2, -Os, -Oz). |
Aggressive | Aggressive optimization (-O3). |
| 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. |