pub enum Allocation<R: Copy> {
Register(R),
Spill(i32),
}Expand description
Result of allocating a virtual register: either a physical register or a stack spill slot (byte offset from the frame base pointer).
Variants§
Trait Implementations§
Source§impl<R: Clone + Copy> Clone for Allocation<R>
impl<R: Clone + Copy> Clone for Allocation<R>
Source§fn clone(&self) -> Allocation<R>
fn clone(&self) -> Allocation<R>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<R: PartialEq + Copy> PartialEq for Allocation<R>
impl<R: PartialEq + Copy> PartialEq for Allocation<R>
Source§fn eq(&self, other: &Allocation<R>) -> bool
fn eq(&self, other: &Allocation<R>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<R: Copy + Copy> Copy for Allocation<R>
impl<R: Eq + Copy> Eq for Allocation<R>
impl<R: Copy> StructuralPartialEq for Allocation<R>
Auto Trait Implementations§
impl<R> Freeze for Allocation<R>where
R: Freeze,
impl<R> RefUnwindSafe for Allocation<R>where
R: RefUnwindSafe,
impl<R> Send for Allocation<R>where
R: Send,
impl<R> Sync for Allocation<R>where
R: Sync,
impl<R> Unpin for Allocation<R>where
R: Unpin,
impl<R> UnsafeUnpin for Allocation<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for Allocation<R>where
R: UnwindSafe,
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