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

Function write_value_aliases

cranelift/codegen/src/write.rs:318–333  ·  view source on GitHub ↗

Write out any aliases to the given target, including indirect aliases

(
    w: &mut dyn Write,
    aliases: &SecondaryMap<Value, Vec<Value>>,
    target: Value,
    indent: usize,
)

Source from the content-addressed store, hash-verified

316
317/// Write out any aliases to the given target, including indirect aliases
318fn write_value_aliases(
319 w: &mut dyn Write,
320 aliases: &SecondaryMap<Value, Vec<Value>>,
321 target: Value,
322 indent: usize,
323) -> fmt::Result {
324 let mut todo_stack = vec![target];
325 while let Some(target) = todo_stack.pop() {
326 for &a in &aliases[target] {
327 writeln!(w, "{1:0$}{2} -> {3}", indent, "", a, target)?;
328 todo_stack.push(a);
329 }
330 }
331
332 Ok(())
333}
334
335fn write_instruction(
336 w: &mut dyn Write,

Callers 2

decorate_blockFunction · 0.85
write_instructionFunction · 0.85

Calls 3

OkFunction · 0.85
popMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected