Skip to main content

Module lowering

Module lowering 

Source
Expand description

IR lowering passes: HIR→MIR and MIR→LIR.

These passes transform between the compiler’s intermediate representations, flattening structured control flow and performing instruction selection.

Re-exports§

pub use hir_to_mir::lower_kernel;
pub use mir_to_lir::lower_function;

Modules§

hir_to_mir
HIR to MIR lowering: flattens structured control flow into a CFG and constructs SSA form with explicit basic blocks and terminators.
mir_to_lir
MIR to LIR lowering: instruction selection and structured control flow emission.