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

Method declare_block

cranelift/frontend/src/ssa.rs:390–395  ·  view source on GitHub ↗

Declares a new basic block to construct corresponding data for SSA construction. No predecessors are declared here and the block is not sealed. Predecessors have to be added with `declare_block_predecessor`.

(&mut self, block: Block)

Source from the content-addressed store, hash-verified

388 /// No predecessors are declared here and the block is not sealed.
389 /// Predecessors have to be added with `declare_block_predecessor`.
390 pub fn declare_block(&mut self, block: Block) {
391 // Ensure the block exists so seal_all_blocks will see it even if no predecessors or
392 // variables get declared for this block. But don't assign anything to it:
393 // SecondaryMap automatically sets all blocks to `default()`.
394 let _ = &mut self.ssa_blocks[block];
395 }
396
397 /// Declares a new predecessor for a `Block` and record the branch instruction
398 /// of the predecessor that leads to it.

Callers 12

create_blockMethod · 0.80
simple_blockFunction · 0.80
sequence_of_blocksFunction · 0.80
program_with_loopFunction · 0.80
br_table_with_argsFunction · 0.80
undef_values_reorderingFunction · 0.80
undefFunction · 0.80
undef_in_entryFunction · 0.80
unreachable_useFunction · 0.80

Calls

no outgoing calls

Tested by 11

simple_blockFunction · 0.64
sequence_of_blocksFunction · 0.64
program_with_loopFunction · 0.64
br_table_with_argsFunction · 0.64
undef_values_reorderingFunction · 0.64
undefFunction · 0.64
undef_in_entryFunction · 0.64
unreachable_useFunction · 0.64