Skip to main content

Module optimizer

Module optimizer 

Source

Enums§

CfgDumpStage

Functions§

assign_offsets
Recomputes byte offsets for all labels and instructions in the AST from scratch, in node order. Called after any pass that alters the node list so there is a single authoritative place that assigns offsets.
eliminate_unreachable_functions
Removes functions not reachable from the entry via call imm.
eliminate_unreachable_functions_with_observer
Removes unreachable functions and exposes the CFG before and after the pass. The observer owns any optional diagnostics or I/O, keeping the pass itself pure.