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

Method cfg_connections

cranelift/codegen/src/cfg_printer.rs:65–76  ·  view source on GitHub ↗
(&self, w: &mut dyn Write)

Source from the content-addressed store, hash-verified

63 }
64
65 fn cfg_connections(&self, w: &mut dyn Write) -> Result {
66 for block in &self.func.layout {
67 for BlockPredecessor {
68 block: parent,
69 inst,
70 } in self.cfg.pred_iter(block)
71 {
72 writeln!(w, " {parent}:{inst} -> {block}")?;
73 }
74 }
75 Ok(())
76 }
77}
78
79impl<'a> Display for CFGPrinter<'a> {

Callers 1

writeMethod · 0.80

Calls 2

OkFunction · 0.85
pred_iterMethod · 0.80

Tested by

no test coverage detected