Skip to main content

Module opt

Module opt 

Source
Expand description

Optimization level configuration for the Gruel compiler.

CFG-level optimization passes were removed in ADR-0034. Optimization is now handled entirely by LLVM’s mid-end pipeline (default<OX>), which is invoked when generating object code or LLVM IR at -O1 and above.

This module retains the OptLevel enum so that the CLI and CompileOptions continue to express the user’s requested optimization level.

Structs§

ParseOptLevelError
Error returned when parsing an optimization level fails.

Enums§

OptLevel
Optimization level, following standard compiler conventions.