pub enum Amode {
ImmReg {
simm32: i32,
base: Reg,
flags: MemFlags,
},
ImmRegRegShift {
simm32: i32,
base: Gpr,
index: Gpr,
shift: u8,
flags: MemFlags,
},
RipRelative {
target: MachLabel,
},
}
Available on crate feature
x86
only.Expand description
Internal type Amode: defined at src/isa/x64/inst.isle line 1132.
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