Enum Amode
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 1132.
Variants§
Implementations§
§impl Amode
impl Amode
pub 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.
pub 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.
pub fn with_flags(&self, flags: MemFlags) -> Amode
pub fn with_flags(&self, flags: MemFlags) -> Amode
Trait Implementations§
§impl From<Amode> for RegisterOrAmode
impl From<Amode> for RegisterOrAmode
§fn from(amode: Amode) -> RegisterOrAmode
fn from(amode: Amode) -> RegisterOrAmode
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 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