[#llvm-CodeGenOptLevel] = xref:llvm.adoc[llvm]::CodeGenOptLevel :relfileprefix: ../ :mrdocs: Code generation optimization level. == Synopsis Declared in `<llvm/Support/CodeGen.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class CodeGenOptLevel : int; ---- == Members [cols="1,4"] |=== | Name| Description | `None` | No optimization (‐O0). | `Less` | Minimal optimization (‐O1). | `Default` | Default optimization (‐O2, ‐Os, ‐Oz). | `Aggressive` | Aggressive optimization (‐O3). |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/createDwarfEHPass.adoc[`createDwarfEHPass`] | createDwarfEHPass ‐ This pass mulches exception handling code into a form adapted to code generation. Required if using dwarf exception handling. | xref:llvm/createExpandIRInstsPass.adoc[`createExpandIRInstsPass`] | Create a pass that expands large div/rem and floating‐point instructions. | xref:llvm/getStandardCSEConfigForOpt.adoc[`getStandardCSEConfigForOpt`] | Return the standard CSEConfig for the given optimization level. | xref:llvm/CodeGenOpt/getLevel.adoc[`CodeGenOpt::getLevel`] | Get the `Level` identified by the integer `OL.` | xref:llvm/CodeGenOpt/parseLevel.adoc[`CodeGenOpt::parseLevel`] | Parse `C` as a single digit integer and get matching `CodeGenLevel.` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#