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

Method num_blocks

cranelift/codegen/src/machinst/vcode.rs:659–661  ·  view source on GitHub ↗

Get the number of blocks. Block indices will be in the range `0 .. (self.num_blocks() - 1)`.

(&self)

Source from the content-addressed store, hash-verified

657 /// Get the number of blocks. Block indices will be in the range `0 ..
658 /// (self.num_blocks() - 1)`.
659 pub fn num_blocks(&self) -> usize {
660 self.block_ranges.len()
661 }
662
663 /// The number of lowered instructions.
664 pub fn num_insts(&self) -> usize {

Callers 3

emitMethod · 0.45
fmtMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected