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

Method pred_iter

cranelift/codegen/src/flowgraph.rs:160–162  ·  view source on GitHub ↗

Get an iterator over the CFG predecessors to `block`.

(&self, block: Block)

Source from the content-addressed store, hash-verified

158
159 /// Get an iterator over the CFG predecessors to `block`.
160 pub fn pred_iter(&self, block: Block) -> PredIter<'_> {
161 PredIter(self.data[block].predecessors.iter(&self.pred_forest))
162 }
163
164 /// Get an iterator over the CFG successors to `block`.
165 pub fn succ_iter(&self, block: Block) -> SuccIter<'_> {

Callers 8

mutateMethod · 0.80
branches_and_jumpsFunction · 0.80
compute_domtreeMethod · 0.80
is_block_loop_headerMethod · 0.80
discover_loop_blocksMethod · 0.80
cfg_connectionsMethod · 0.80
compute_idomMethod · 0.80
cfg_integrityMethod · 0.80

Calls 2

PredIterClass · 0.85
iterMethod · 0.45

Tested by 1

branches_and_jumpsFunction · 0.64