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

Function write_function

cranelift/codegen/src/write.rs:158–160  ·  view source on GitHub ↗

Write `func` to `w` as equivalent text. Use `isa` to emit ISA-dependent annotations.

(w: &mut dyn Write, func: &Function)

Source from the content-addressed store, hash-verified

156/// Write `func` to `w` as equivalent text.
157/// Use `isa` to emit ISA-dependent annotations.
158pub fn write_function(w: &mut dyn Write, func: &Function) -> fmt::Result {
159 decorate_function(&mut PlainWriter, w, func)
160}
161
162/// Create a reverse-alias map from a value to all aliases having that value as a direct target
163fn alias_map(func: &Function) -> SecondaryMap<Value, Vec<Value>> {

Callers 1

fmtMethod · 0.85

Calls 1

decorate_functionFunction · 0.85

Tested by

no test coverage detected