Structsยง
- Lint ๐An adapter for
MirLint
s that implementsMirPass
. - With
MinOpt ๐Level
Constantsยง
- PASS_
NAMES ๐
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 - run_
passes ๐The optionalphase_change
is applied after executing all the passes, if present - run_
passes_ ๐inner - 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 ๐