Enum SyntheticAmode
pub enum SyntheticAmode {
Real(Amode),
IncomingArg {
offset: u32,
},
SlotOffset {
simm32: i32,
},
ConstantOffset(VCodeConstant),
}
Expand description
A Memory Address. These denote a 64-bit value only. Used for usual addressing modes as well as addressing modes used during compilation, when the moving SP offset is not known.
Variants§
Real(Amode)
A real amode.
IncomingArg
A (virtual) offset into the incoming argument area.
SlotOffset
A (virtual) offset to the slot area of the function frame, which lies just above the outgoing arguments.
ConstantOffset(VCodeConstant)
A virtual offset to a constant that will be emitted in the constant section of the buffer.
Implementations§
§impl SyntheticAmode
impl SyntheticAmode
pub fn real(amode: Amode) -> SyntheticAmode
pub fn real(amode: Amode) -> SyntheticAmode
Create a real addressing mode.
Trait Implementations§
§impl Clone for SyntheticAmode
impl Clone for SyntheticAmode
§fn clone(&self) -> SyntheticAmode
fn clone(&self) -> SyntheticAmode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for SyntheticAmode
impl Debug for SyntheticAmode
§impl From<StackAMode> for SyntheticAmode
impl From<StackAMode> for SyntheticAmode
§fn from(amode: StackAMode) -> SyntheticAmode
fn from(amode: StackAMode) -> SyntheticAmode
Converts to this type from the input type.
§impl Into<SyntheticAmode> for Amode
impl Into<SyntheticAmode> for Amode
§fn into(self) -> SyntheticAmode
fn into(self) -> SyntheticAmode
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for SyntheticAmode
impl RefUnwindSafe for SyntheticAmode
impl Send for SyntheticAmode
impl Sync for SyntheticAmode
impl Unpin for SyntheticAmode
impl UnwindSafe for SyntheticAmode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)