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

Method detach_block_params

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

Detach all the parameters from `block` and return them as a `ValueList`. This is a quite low-level operation. Sensible things to do with the detached block parameters is to put them back on the same block with `attach_block_param()` or change them into aliases with `change_to_alias()`.

(&mut self, block: Block)

Source from the content-addressed store, hash-verified

1390 /// is to put them back on the same block with `attach_block_param()` or change them into aliases
1391 /// with `change_to_alias()`.
1392 pub fn detach_block_params(&mut self, block: Block) -> ValueList {
1393 self.blocks[block].params.take()
1394 }
1395
1396 /// Detach all of an instruction's result values.
1397 ///

Callers 3

mutateMethod · 0.80
aliasesFunction · 0.80
blockFunction · 0.80

Calls 1

takeMethod · 0.45

Tested by 2

aliasesFunction · 0.64
blockFunction · 0.64