Skip to main content

Module prettify

Module prettify 

Source
Expand description

These two passes provide no value to the compiler, so are off at every level.

However, they can be enabled on the command line (-Zmir-enable-passes=+ReorderBasicBlocks,+ReorderLocals) to make the MIR easier to read for humans.

Re-exportsยง

use rustc_index::bit_set::DenseBitSet; ๐Ÿ”’
use rustc_index::IndexSlice; ๐Ÿ”’
use rustc_index::IndexVec; ๐Ÿ”’
use rustc_middle::mir::visit::MutVisitor; ๐Ÿ”’
use rustc_middle::mir::visit::PlaceContext; ๐Ÿ”’
use rustc_middle::mir::visit::Visitor; ๐Ÿ”’
use rustc_middle::ty::TyCtxt; ๐Ÿ”’
use crate::PassPolicy; ๐Ÿ”’
use rustc_middle::mir::*; ๐Ÿ”’

Structsยง

BasicBlockUpdater ๐Ÿ”’
LocalFinder ๐Ÿ”’
LocalUpdater ๐Ÿ”’
ReorderBasicBlocks ๐Ÿ”’
Rearranges the basic blocks into a reverse post-order.
ReorderLocals ๐Ÿ”’
Rearranges the locals into use order.

Functionsยง

permute ๐Ÿ”’