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

Method predecessors

cranelift/frontend/src/ssa.rs:620–624  ·  view source on GitHub ↗

Returns the list of `Block`s that have been declared as predecessors of the argument.

(&self, block: Block)

Source from the content-addressed store, hash-verified

618
619 /// Returns the list of `Block`s that have been declared as predecessors of the argument.
620 fn predecessors(&self, block: Block) -> &[Inst] {
621 self.ssa_blocks[block]
622 .predecessors
623 .as_slice(&self.inst_pool)
624 }
625
626 /// Returns whether the given Block has any predecessor or not.
627 pub fn has_any_predecessors(&self, block: Block) -> bool {

Callers 3

seal_one_blockMethod · 0.80
has_any_predecessorsMethod · 0.80

Calls 1

as_sliceMethod · 0.45

Tested by

no test coverage detected