pub enum Amode {
ImmReg {
simm32: i32,
base: Reg,
flags: MemFlagsData,
},
ImmRegRegShift {
simm32: i32,
base: Gpr,
index: Gpr,
shift: u8,
flags: MemFlagsData,
},
RipRelative {
target: MachLabel,
},
}Expand description
Internal type Amode: defined at src/isa/x64/inst.isle line 449.
Variants§
Implementations§
Source§impl Amode
impl Amode
Sourcepub fn imm_reg(simm32: i32, base: Reg) -> Amode
pub fn imm_reg(simm32: i32, base: Reg) -> Amode
Create an immediate sign-extended and register addressing mode.
Sourcepub fn imm_reg_reg_shift(simm32: i32, base: Gpr, index: Gpr, shift: u8) -> Amode
pub fn imm_reg_reg_shift(simm32: i32, base: Gpr, index: Gpr, shift: u8) -> Amode
Create a sign-extended-32-to-64 with register and shift addressing mode.
Sourcepub fn with_flags(&self, flags: MemFlagsData) -> Amode
pub fn with_flags(&self, flags: MemFlagsData) -> Amode
Set the specified MemFlagsData to the Amode.
Trait Implementations§
Source§impl From<Amode> for SyntheticAmode
impl From<Amode> for SyntheticAmode
Source§fn from(amode: Amode) -> SyntheticAmode
fn from(amode: Amode) -> SyntheticAmode
Converts to this type from the 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 UnsafeUnpin 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