Structsยง
- Lint ๐
- An adapter for
MirLint
s that implementsMirPass
. - With
MinOpt ๐Level
Enumsยง
- Optimizations ๐
- Whether to allow non-required optimizations
Constantsยง
- PASS_
TO_ ๐PROFILER_ NAMES - Maps MIR pass names to a snake case form to match profiling naming style
Traitsยง
- MirLint ๐
- Just like
MirPass
, except it cannot mutateBody
, and MIR dumping is disabled (via theLint
adapter). - MirPass ๐
- A streamlined trait that you can implement to create a pass; the
pass will be named after the type, and it will consist of a main
loop that goes over each available MIR and applies
run_pass
.
Functionsยง
- c_name ๐
- dump_
mir_ ๐for_ pass - dump_
mir_ ๐for_ phase_ change - run_
passes ๐ - The optional
phase_change
is applied after executing all the passes, if present - run_
passes_ ๐inner - run_
passes_ ๐no_ validate - Run the sequence of passes without validating the MIR after each pass. The MIR is still validated at the end.
- should_
run_ ๐pass - to_
profiler_ ๐name - Converts a MIR pass name into a snake case form to match the profiling naming style.
- validate_
body ๐