AA64Instruction

Enum AA64Instruction 

Source
pub enum AA64Instruction {
    PhiPlaceholder {
        rd: VReg,
        options: Vec<(Location, Value)>,
    },
    Integer {
        rd: VReg,
        value: u64,
        size: AA64RegSizes,
    },
    MSub {
        rd1: VReg,
        rd2: VReg,
        rx: VReg,
        ry: VReg,
        size: AA64RegSizes,
    },
    AluOp {
        op: AA64AluOp,
        rd: VReg,
        rx: VReg,
        ry: VReg,
        size: AA64RegSizes,
    },
    AluOpImm {
        op: AA64AluOp,
        rd: VReg,
        rx: VReg,
        imm: i16,
        size: AA64RegSizes,
    },
    Bl {
        rd: VReg,
        location: Location,
        clobbers: Vec<VReg>,
    },
    Bne {
        rx: VReg,
        ry: VReg,
        location: Location,
        size: AA64RegSizes,
    },
    Ret,
    Load {
        rd: VReg,
        imm: i16,
        rx: VReg,
        size: AA64RegSizes,
    },
    Store {
        rx: VReg,
        imm: i16,
        ry: VReg,
        size: AA64RegSizes,
    },
    Compare {
        rx: VReg,
        ry: VReg,
        size: AA64RegSizes,
    },
    CondSet {
        rd: VReg,
        cnd: AA64CompOp,
        size: AA64RegSizes,
    },
}

Variants§

§

PhiPlaceholder

Fields

§rd: VReg
§options: Vec<(Location, Value)>
§

Integer

Fields

§rd: VReg
§value: u64
§

MSub

Fields

§rd1: VReg
§rd2: VReg
§rx: VReg
§ry: VReg
§

AluOp

§

AluOpImm

Fields

§rd: VReg
§rx: VReg
§imm: i16
§

Bl

Fields

§rd: VReg
§location: Location
§clobbers: Vec<VReg>
§

Bne

Fields

§rx: VReg
§ry: VReg
§location: Location
§

Ret

§

Load

Fields

§rd: VReg
§imm: i16
§rx: VReg
§

Store

Fields

§rx: VReg
§imm: i16
§ry: VReg
§

Compare

Fields

§rx: VReg
§ry: VReg
§

CondSet

Trait Implementations§

Source§

impl Display for AA64Instruction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Instr for AA64Instruction

Source§

fn get_regs() -> Vec<VReg>

Gets the registers available for selection by the register allocator.
Source§

fn get_arg_regs() -> Vec<VReg>

Gets the registers that can be used as function arguments.
Source§

fn collect_registers<A>(&self, alloc: &mut A)

Collects the registers in an instruction for register allocation.
Source§

fn apply_reg_allocs(&mut self, alloc: &HashMap<VReg, VReg>)

Applies the results of register allocation.
Source§

fn mandatory_transforms(vcode: &mut VCode<Self>)

Performs transformations on the VCode that are mandatory after register allocation.
Source§

fn emit_assembly(file: &mut impl Write, vcode: &VCode<Self>) -> Result<()>

Transforms the given VCode into assembly written to a file.

Auto Trait Implementations§

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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.