MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / idom

Method idom

cranelift/codegen/src/dominator_tree.rs:237–239  ·  view source on GitHub ↗

Returns the immediate dominator of `block`. `block_a` is said to *dominate* `block_b` if all control flow paths from the function entry to `block_b` must go through `block_a`. The *immediate dominator* is the dominator that is closest to `block`. All other dominators also dominate the immediate dominator. This returns `None` if `block` is not reachable from the entry block, or if it is the entr

(&self, block: Block)

Source from the content-addressed store, hash-verified

235 /// This returns `None` if `block` is not reachable from the entry block, or if it is the entry block
236 /// which has no dominators.
237 pub fn idom(&self, block: Block) -> Option<Block> {
238 self.nodes[block].idom.into()
239 }
240
241 /// Returns `true` if `a` dominates `b`.
242 ///

Callers 4

runMethod · 0.45
fmtMethod · 0.45
dominator_treeFunction · 0.45

Calls

no outgoing calls

Tested by 1

runMethod · 0.36