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

Method write

cranelift/codegen/src/cfg_printer.rs:28–33  ·  view source on GitHub ↗

Write the CFG for this function to `w`.

(&self, w: &mut dyn Write)

Source from the content-addressed store, hash-verified

26
27 /// Write the CFG for this function to `w`.
28 pub fn write(&self, w: &mut dyn Write) -> Result {
29 self.header(w)?;
30 self.block_nodes(w)?;
31 self.cfg_connections(w)?;
32 writeln!(w, "}}")
33 }
34
35 fn header(&self, w: &mut dyn Write) -> Result {
36 writeln!(w, "digraph \"{}\" {{", self.func.name)?;

Callers 7

fmtMethod · 0.45
generateFunction · 0.45
generateFunction · 0.45
generateFunction · 0.45
generateFunction · 0.45

Calls 3

block_nodesMethod · 0.80
cfg_connectionsMethod · 0.80
headerMethod · 0.45

Tested by

no test coverage detected