MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / new

Method new

src/debug_utils/dominator_tree.rs:50–57  ·  view source on GitHub ↗

Creates a new `DominatorTree`.

()

Source from the content-addressed store, hash-verified

48impl DominatorTree {
49 /// Creates a new `DominatorTree`.
50 pub fn new() -> Self {
51 Self {
52 nodes: SecondaryMap::new(),
53 virtual_root_child: None.into(),
54 processed: EntitySet::new(),
55 stack: vec![],
56 }
57 }
58
59 /// Computes the dominator tree.
60 pub fn compute(&mut self, func: &impl Function, po: &PostOrder) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected