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

Method block_params

cranelift/codegen/src/machinst/vcode.rs:1556–1565  ·  view source on GitHub ↗
(&self, block: BlockIndex)

Source from the content-addressed store, hash-verified

1554 }
1555
1556 fn block_params(&self, block: BlockIndex) -> &[VReg] {
1557 // As a special case we don't return block params for the entry block, as all the arguments
1558 // will be defined by the `Inst::Args` instruction.
1559 if block == self.entry {
1560 return &[];
1561 }
1562
1563 let range = self.block_params_range.get(block.index());
1564 &self.block_params[range]
1565 }
1566
1567 fn branch_blockparams(&self, block: BlockIndex, _insn: InsnIndex, succ_idx: usize) -> &[VReg] {
1568 let succ_range = self.branch_block_arg_succ_range.get(block.index());

Callers 4

newMethod · 0.45
gen_arg_setupMethod · 0.45
add_block_paramsMethod · 0.45

Calls 2

getMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected