Module rustc_mir::util::graphviz[][src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Re-exports

use dot;
use rustc::hir::def_id::DefId;
use rustc::mir::*;
use rustc::ty::TyCtxt;
use std::fmt::Debug;
use std::io;
use std::io::Write;
use rustc_data_structures::indexed_vec::Idx;
use super::pretty::dump_mir_def_ids;

Functions

escape [
Experimental
]
node [
Experimental
]
write_edges [
Experimental
]

Write graphviz DOT edges with labels between the given basic block and all of its successors.

write_graph_label [
Experimental
]

Write the graphviz DOT label for the overall graph. This is essentially a block of text that will appear below the graph, showing the type of the fn this MIR represents and the types of all the variables and temporaries.

write_mir_fn_graphviz [
Experimental
]

Write a graphviz DOT graph of the MIR.

write_mir_graphviz [
Experimental
]

Write a graphviz DOT graph of a list of MIRs.

write_node [
Experimental
]

Write a graphviz DOT node for the given basic block.

write_node_label [
Experimental
]

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 libgraphviz.)