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

Method args

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

Return an iterator over the arguments of this block.

(
        &self,
        pool: &'a ValueListPool,
    )

Source from the content-addressed store, hash-verified

106
107 /// Return an iterator over the arguments of this block.
108 pub fn args<'a>(
109 &self,
110 pool: &'a ValueListPool,
111 ) -> impl ExactSizeIterator<Item = BlockArg> + DoubleEndedIterator<Item = BlockArg> + use<'a>
112 {
113 self.values.as_slice(pool)[1..]
114 .iter()
115 .map(|value| BlockArg::decode_from_value(*value))
116 }
117
118 /// Traverse the arguments with a closure that can mutate them.
119 pub fn update_args<F: FnMut(BlockArg) -> BlockArg>(

Callers 7

inst_valuesMethod · 0.45
fmtMethod · 0.45
compute_arg_locsMethod · 0.45
compute_arg_locsMethod · 0.45
compute_arg_locsMethod · 0.45
compute_arg_locsMethod · 0.45
compute_arg_locsMethod · 0.45

Calls 3

mapMethod · 0.45
iterMethod · 0.45
as_sliceMethod · 0.45

Tested by

no test coverage detected