MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / mark_stack_address

Method mark_stack_address

crates/ir-to-asm/src/compiler/function_context.rs:186–188  ·  view source on GitHub ↗

Mark that a register's value should be computed as `sp + slot`.

(&mut self, reg: &IrRegister)

Source from the content-addressed store, hash-verified

184 self.label_map.get(ir_label)
185 }
186
187 /// Emit the function prologue using the given backend.
188 pub fn emit_prologue(&self, backend: &mut impl Rv64Backend) {
189 backend.emit_comment("--- Function Prologue ---");
190 let frame_size = self.frame_size();
191 backend.emit_comment(&format!("Allocate stack frame: {frame_size} bytes"));

Callers 1

assign_stack_slotsFunction · 0.80

Calls 2

insertMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected