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

Method with_function

cranelift/codegen/src/flowgraph.rs:98–102  ·  view source on GitHub ↗

Allocate and compute the control flow graph for `func`.

(func: &Function)

Source from the content-addressed store, hash-verified

96
97 /// Allocate and compute the control flow graph for `func`.
98 pub fn with_function(func: &Function) -> Self {
99 let mut cfg = Self::new();
100 cfg.compute(func);
101 cfg
102 }
103
104 /// Compute the control flow graph of `func`.
105 ///

Callers

nothing calls this directly

Calls 2

newFunction · 0.50
computeMethod · 0.45

Tested by

no test coverage detected