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

Method extend

cranelift/codegen/src/ir/instructions.rs:141–152  ·  view source on GitHub ↗

Appends multiple elements to the arguments.

(&mut self, elements: I, pool: &mut ValueListPool)

Source from the content-addressed store, hash-verified

139
140 /// Appends multiple elements to the arguments.
141 pub fn extend<I, T>(&mut self, elements: I, pool: &mut ValueListPool)
142 where
143 I: IntoIterator<Item = T>,
144 T: Into<BlockArg>,
145 {
146 self.values.extend(
147 elements
148 .into_iter()
149 .map(|elem| elem.into().encode_as_value()),
150 pool,
151 )
152 }
153
154 /// Return a value that can display this block call.
155 pub fn display<'a>(&self, pool: &'a ValueListPool) -> DisplayBlockCall<'a> {

Callers 15

nextMethod · 0.45
do_remove_constant_phisFunction · 0.45
compute_spanning_treeMethod · 0.45
discover_loop_blocksMethod · 0.45
newMethod · 0.45
into_value_listMethod · 0.45
setMethod · 0.45
gen_inline_probestackMethod · 0.45
gen_clobber_saveMethod · 0.45
gen_clobber_restoreMethod · 0.45
gen_tail_epilogueMethod · 0.45
gen_restore_gprsFunction · 0.45

Calls 3

encode_as_valueMethod · 0.80
mapMethod · 0.45
into_iterMethod · 0.45

Tested by 1