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

Method add_block_params

cranelift/codegen/src/machinst/lower.rs:903–911  ·  view source on GitHub ↗
(&mut self, block: Block)

Source from the content-addressed store, hash-verified

901 }
902
903 fn add_block_params(&mut self, block: Block) -> CodegenResult<()> {
904 for &param in self.f.dfg.block_params(block) {
905 for &reg in self.value_regs[param].regs() {
906 let vreg = reg.to_virtual_reg().unwrap();
907 self.vcode.add_block_param(vreg);
908 }
909 }
910 Ok(())
911 }
912
913 fn get_value_labels<'a>(&'a self, val: Value, depth: usize) -> Option<&'a [ValueLabelStart]> {
914 if let Some(ref values_labels) = self.f.dfg.values_labels {

Callers 1

lower_clif_blockMethod · 0.80

Calls 6

OkFunction · 0.85
to_virtual_regMethod · 0.80
add_block_paramMethod · 0.80
block_paramsMethod · 0.45
regsMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected