[−][src]Module rustc_mir::util

Re-exports

pub use self::aggregate::expand_aggregate;

Modules

aggregate
alignment
borrowck_errors
collect_writes
elaborate_drops
find_self_call
generic_graphviz
graphviz
patch
pretty
spanview
storage

Enums

PassWhere

An indication of where we are in the control flow graph. Used for printing extra information in dump_mir

Functions

dump_enabled
dump_mir

If the session is properly configured, dumps a human-readable representation of the mir into:

find_self_call

Checks if the specified local is used as the self prameter of a method call in the provided BasicBlock. If it is, then the DefId of the called method is returned.

graphviz_safe_def_name
is_disaligned

Returns true if this place is allowed to be less aligned than its containing struct (because it is within a packed struct).

write_graphviz_node_label

Write a graphviz HTML-styled label for the given basic block, with all necessary escaping already performed. (This is suitable for emitting directly, as is done in this module, or for use with the LabelText::HtmlStr from librustc_graphviz.)

write_mir_graphviz

Write a graphviz DOT graph of a list of MIRs.

write_mir_pretty

Write out a human-readable textual representation for the given MIR.