MacroAssembler

Struct MacroAssembler 

Source
pub struct MacroAssembler<'a> {
    pub asm: Assembler<'a>,
}

Fields§

§asm: Assembler<'a>

Implementations§

Source§

impl<'a> MacroAssembler<'a>

Source

pub const SCRATCH_REGISTER: Gpq = R11

Source

pub const FP_TEMP_REGISTER: Xmm = XMM15

Source

pub fn new(buffer: &'a mut CodeBuffer) -> Self

Source

pub fn supports_avx(&self) -> bool

Source

pub fn swap32(&mut self, src1: impl OperandCast, src2: impl OperandCast)

Source

pub fn swap64(&mut self, src1: impl OperandCast, src2: impl OperandCast)

Source

pub fn mov32(&mut self, dst: impl OperandCast, src: impl OperandCast)

Source

pub fn mov64(&mut self, dst: impl OperandCast, src: impl OperandCast)

Source

pub fn load8(&mut self, dst: impl OperandCast, src: impl OperandCast)

Source

pub fn load16(&mut self, dst: impl OperandCast, src: impl OperandCast)

Source

pub fn load32(&mut self, dst: impl OperandCast, src: impl OperandCast)

Source

pub fn load64(&mut self, dst: impl OperandCast, src: impl OperandCast)

Source

pub fn store8(&mut self, dst: impl OperandCast, src: impl OperandCast)

Source

pub fn store16(&mut self, dst: impl OperandCast, src: impl OperandCast)

Source

pub fn store32(&mut self, dst: impl OperandCast, src: impl OperandCast)

Source

pub fn store64(&mut self, dst: impl OperandCast, src: impl OperandCast)

Source

pub fn zero32(&mut self, dst: impl OperandCast)

Source

pub fn zero64(&mut self, dst: impl OperandCast)

Source

pub fn add32( &mut self, dst: impl OperandCast, src1: impl OperandCast, src2: impl OperandCast, )

Source

pub fn add64( &mut self, dst: impl OperandCast, src1: impl OperandCast, src2: impl OperandCast, )

Source

pub fn x86_lea32(&mut self, dst: impl OperandCast, src: impl OperandCast)

Source

pub fn x86_lea64(&mut self, dst: impl OperandCast, src: impl OperandCast)

Source

pub fn sub32( &mut self, dst: impl OperandCast, src1: impl OperandCast, src2: impl OperandCast, )

Source

pub fn sub64( &mut self, dst: impl OperandCast, src1: impl OperandCast, src2: impl OperandCast, )

Source

pub fn neg32(&mut self, srcdst: impl OperandCast)

Source

pub fn neg64(&mut self, srcdst: impl OperandCast)

Source

pub fn mul64( &mut self, dst: impl OperandCast, src1: impl OperandCast, src2: impl OperandCast, )

Source

pub fn mul32( &mut self, dst: impl OperandCast, src1: impl OperandCast, src2: impl OperandCast, )

Source

pub fn div64( &mut self, dst: impl OperandCast, src1: impl OperandCast, src2: impl OperandCast, )

Auto Trait Implementations§

§

impl<'a> Freeze for MacroAssembler<'a>

§

impl<'a> RefUnwindSafe for MacroAssembler<'a>

§

impl<'a> Send for MacroAssembler<'a>

§

impl<'a> Sync for MacroAssembler<'a>

§

impl<'a> Unpin for MacroAssembler<'a>

§

impl<'a> !UnwindSafe for MacroAssembler<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.