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 🔒