(func: &IrFunction)
| 155 | |
| 156 | fn alloc_for(func: &IrFunction) -> FunctionContext { |
| 157 | let mut ctx = FunctionContext::new(&StdHashMap::new()); |
| 158 | assign_stack_slots(func, &mut ctx, &StdHashMap::new(), true, false); |
| 159 | ctx.finalize(); |
| 160 | ctx |
| 161 | } |
| 162 | |
| 163 | #[test] |
| 164 | fn scalar_values_get_callee_saved_registers() { |
| 165 | let mut func = IrFunction::new("main", i64_ty()); |