Struct twiggy_ir::Items [−][src]
pub struct Items { /* fields omitted */ }
Expand description
The architecture- and target-independent internal representation of functions, sections, etc in a file that is being size profiled.
Constructed with ItemsBuilder
.
Implementations
Iterate over all of the IR items.
Iterate over an item’s neighbors.
pub fn predecessors(&self, id: Id) -> Predecessors<'_>ⓘNotable traits for Predecessors<'a>impl<'a> Iterator for Predecessors<'a> type Item = Id;
pub fn predecessors(&self, id: Id) -> Predecessors<'_>ⓘNotable traits for Predecessors<'a>impl<'a> Iterator for Predecessors<'a> type Item = Id;
Notable traits for Predecessors<'a>
impl<'a> Iterator for Predecessors<'a> type Item = Id;
Iterate over an item’s predecessors.
Get the id of the “meta root” which is a single root item with edges to all of the real roots.
Force computation of predecessors.
Compute dominators for each item.
Get a refercence to immediate dominators
Force computation of the dominator tree.
Get a reference to the dominator tree.
Must have already called compute_dominator_tree
.
Force computation of the retained sizes of each IR item.
Get the given item’s retained size.
Get an item with the given name.