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

Method immediate_dominator

src/debug_utils/dominator_tree.rs:113–115  ·  view source on GitHub ↗

Returns the immediate dominator of the given basic block. Returns `None` for entry points, unreachable blocks, and blocks whose only immediate dominator is the virtual root of a multi-entry CFG.

(&self, block: Block)

Source from the content-addressed store, hash-verified

111 /// Returns `None` for entry points, unreachable blocks, and blocks whose
112 /// only immediate dominator is the virtual root of a multi-entry CFG.
113 pub fn immediate_dominator(&self, block: Block) -> Option<Block> {
114 self.nodes[block].parent.into()
115 }
116
117 /// Determines whether `a` dominates `b`.
118 ///

Callers 7

check_ssa_dominanceMethod · 0.80
arbitrary_with_configMethod · 0.80
add_blockparamsMethod · 0.80
get_value_for_useMethod · 0.80
gen_block_start_defsMethod · 0.80
gen_instMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected