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

Method run

cranelift/filetests/src/test_alias_analysis.rs:33–43  ·  view source on GitHub ↗
(&self, func: Cow<Function>, context: &Context)

Source from the content-addressed store, hash-verified

31 }
32
33 fn run(&self, func: Cow<Function>, context: &Context) -> anyhow::Result<()> {
34 let mut comp_ctx = cranelift_codegen::Context::for_function(func.into_owned());
35
36 comp_ctx.flowgraph();
37 comp_ctx
38 .replace_redundant_loads()
39 .map_err(|e| crate::pretty_anyhow_error(&comp_ctx.func, Into::into(e)))?;
40
41 let text = comp_ctx.func.display().to_string();
42 run_filecheck(&text, context)
43 }
44}

Callers

nothing calls this directly

Calls 7

pretty_anyhow_errorFunction · 0.85
run_filecheckFunction · 0.85
into_ownedMethod · 0.80
flowgraphMethod · 0.80
to_stringMethod · 0.45
displayMethod · 0.45

Tested by

no test coverage detected