(&self, func: Cow<Function>, context: &Context)
| 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 | } |
nothing calls this directly
no test coverage detected