pub struct FrameMap {
pub slots: HashMap<Register, i32>,
pub frame_size: i32,
}Expand description
Maps virtual registers to stack slot offsets.
Fields§
§slots: HashMap<Register, i32>§frame_size: i32Implementations§
Source§impl FrameMap
impl FrameMap
Sourcepub fn from_function(f: &Function) -> Self
pub fn from_function(f: &Function) -> Self
Creates a frame map from a function, assigning stack slots to all virtual registers.
pub fn recompute_frame_size_from_slots(&mut self)
Auto Trait Implementations§
impl Freeze for FrameMap
impl RefUnwindSafe for FrameMap
impl Send for FrameMap
impl Sync for FrameMap
impl Unpin for FrameMap
impl UnsafeUnpin for FrameMap
impl UnwindSafe for FrameMap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more