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

Method ra_offset

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

Stack offset of the saved return address, if present.

(&self)

Source from the content-addressed store, hash-verified

119 pub fn saved_regs(&self) -> &[(u8, usize)] {
120 self.frame.saved_regs()
121 }
122
123 /// Get the stack offset for a virtual register.
124 pub fn slot_for_reg(&self, reg: &IrRegister) -> Option<usize> {
125 self.reg_slots.get(reg).copied()
126 }

Callers 2

emit_prologueMethod · 0.45
emit_epilogueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected