pub enum Amode {
ImmReg {
simm32: i32,
base: Reg,
flags: MemFlags,
},
ImmRegRegShift {
simm32: i32,
base: Gpr,
index: Gpr,
shift: u8,
flags: MemFlags,
},
RipRelative {
target: MachLabel,
},
}
Expand description
Internal type Amode: defined at src/isa/x64/inst.isle line 1036.
Variants§
Implementations§
source§impl Amode
impl Amode
sourcepub fn imm_reg(simm32: i32, base: Reg) -> Self
pub fn imm_reg(simm32: i32, base: Reg) -> Self
Create an immediate sign-extended and register addressing mode.
sourcepub fn imm_reg_reg_shift(simm32: i32, base: Gpr, index: Gpr, shift: u8) -> Self
pub fn imm_reg_reg_shift(simm32: i32, base: Gpr, index: Gpr, shift: u8) -> Self
Create a sign-extended-32-to-64 with register and shift addressing mode.
sourcepub fn with_flags(&self, flags: MemFlags) -> Self
pub fn with_flags(&self, flags: MemFlags) -> Self
Trait Implementations§
source§impl From<Amode> for RegisterOrAmode
impl From<Amode> for RegisterOrAmode
source§impl Into<SyntheticAmode> for Amode
impl Into<SyntheticAmode> for Amode
source§fn into(self) -> SyntheticAmode
fn into(self) -> SyntheticAmode
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for Amode
impl RefUnwindSafe for Amode
impl Send for Amode
impl Sync for Amode
impl Unpin for Amode
impl UnwindSafe for Amode
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