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

Method cfg_rpo

cranelift/codegen/src/dominator_tree.rs:222–225  ·  view source on GitHub ↗

Get an iterator over CFG reverse post-order of blocks used to compute the dominator tree. Note that the post-order is not updated automatically when the CFG is modified. It is computed from scratch and cached by `compute()`.

(&self)

Source from the content-addressed store, hash-verified

220 /// Note that the post-order is not updated automatically when the CFG is modified. It is
221 /// computed from scratch and cached by `compute()`.
222 pub fn cfg_rpo(&self) -> impl Iterator<Item = &Block> {
223 debug_assert!(self.is_valid());
224 self.postorder.iter().rev()
225 }
226
227 /// Returns the immediate dominator of `block`.
228 ///

Callers 3

do_remove_constant_phisFunction · 0.80
find_loop_headersMethod · 0.80
newMethod · 0.80

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected