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

Method num_blocks

cranelift/codegen/src/ir/dfg.rs:233–235  ·  view source on GitHub ↗

Get the total number of basic blocks created in this function, whether they are currently inserted in the layout or not. This is intended for use with `SecondaryMap::with_capacity`.

(&self)

Source from the content-addressed store, hash-verified

231 ///
232 /// This is intended for use with `SecondaryMap::with_capacity`.
233 pub fn num_blocks(&self) -> usize {
234 self.blocks.len()
235 }
236
237 /// Returns `true` if the given block reference is valid.
238 pub fn block_is_valid(&self, block: Block) -> bool {

Callers 7

reserve_capacityMethod · 0.45
add_blockMethod · 0.45
computeMethod · 0.45
compute_spanning_treeMethod · 0.45
computeMethod · 0.45
compute_postorderMethod · 0.45
find_reachable_blocksMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected