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

Method append_block_param_for_parser

cranelift/codegen/src/ir/dfg.rs:1514–1523  ·  view source on GitHub ↗
(&mut self, block: Block, ty: Type, val: Value)

Source from the content-addressed store, hash-verified

1512 /// create parameters with specific values.
1513 #[cold]
1514 pub fn append_block_param_for_parser(&mut self, block: Block, ty: Type, val: Value) {
1515 let num = self.blocks[block].params.push(val, &mut self.value_lists);
1516 assert!(num <= u16::MAX as usize, "Too many parameters on block");
1517 self.values[val] = ValueData::Param {
1518 ty,
1519 num: num as u16,
1520 block,
1521 }
1522 .into();
1523 }
1524
1525 /// Create a new value alias. This is only for use by the parser to create
1526 /// aliases with specific values, and the printer for testing.

Callers 1

parse_block_paramMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected