Skip to main content

NnilInstruction

Enum NnilInstruction 

Source
pub enum NnilInstruction {
Show 38 variants Add { lhs: Insn, rhs: Insn, }, Sub { lhs: Insn, rhs: Insn, }, Mul { lhs: Insn, rhs: Insn, }, Mulh { lhs: Insn, rhs: Insn, }, Div { lhs: Insn, rhs: Insn, }, Mod { lhs: Insn, rhs: Insn, }, Fdiv { lhs: Insn, rhs: Insn, size: usize, }, And { lhs: Insn, rhs: Insn, }, Or { lhs: Insn, rhs: Insn, }, Xor { lhs: Insn, rhs: Insn, }, Sll { lhs: Insn, rhs: Insn, }, Srl { lhs: Insn, rhs: Insn, }, Sra { lhs: Insn, rhs: Insn, }, Slt { lhs: Insn, rhs: Insn, }, Mov { dst: Insn, src: Insn, }, Set { dst: Insn, src: Insn, }, Jr { dst: Insn, }, Jmp { dst: Insn, }, Beq { lhs: Insn, rhs: Insn, ttgt: Label, ftgt: Label, }, Bne { lhs: Insn, rhs: Insn, ttgt: Label, ftgt: Label, }, Blt { lhs: Insn, rhs: Insn, ttgt: Label, ftgt: Label, }, Bgt { lhs: Insn, rhs: Insn, ttgt: Label, ftgt: Label, }, Load { dst: Insn, src: Insn, size: u64, }, Store { dst: Insn, src: Insn, size: u64, }, Sext { size: usize, dst: Insn, }, Zext { size: usize, dst: Insn, }, Signed { dst: Insn, }, Unsigned { dst: Insn, }, IntToFloat { src: Insn, src_size: usize, signed: bool, dst_size: usize, }, Imm { imm: i64, }, Reg { reg: u64, }, TmpReg { reg: u64, }, Syscall {}, Sysbreak {}, Lr { dst: Insn, src: Insn, size: u64, }, Sc { dst: Insn, src: Insn, addr: Insn, size: u64, }, Amo { op: AmoOp, dst: Insn, src: Insn, addr: Insn, size: u64, }, Fence { mode: u8, pred: u8, succ: u8, },
}

Variants§

§

Add

Fields

§lhs: Insn
§rhs: Insn
§

Sub

Fields

§lhs: Insn
§rhs: Insn
§

Mul

Fields

§lhs: Insn
§rhs: Insn
§

Mulh

Fields

§lhs: Insn
§rhs: Insn
§

Div

Fields

§lhs: Insn
§rhs: Insn
§

Mod

Fields

§lhs: Insn
§rhs: Insn
§

Fdiv

Fields

§lhs: Insn
§rhs: Insn
§size: usize
§

And

Fields

§lhs: Insn
§rhs: Insn
§

Or

Fields

§lhs: Insn
§rhs: Insn
§

Xor

Fields

§lhs: Insn
§rhs: Insn
§

Sll

Fields

§lhs: Insn
§rhs: Insn
§

Srl

Fields

§lhs: Insn
§rhs: Insn
§

Sra

Fields

§lhs: Insn
§rhs: Insn
§

Slt

Fields

§lhs: Insn
§rhs: Insn
§

Mov

Fields

§dst: Insn
§src: Insn
§

Set

Fields

§dst: Insn
§src: Insn
§

Jr

Fields

§dst: Insn
§

Jmp

Fields

§dst: Insn
§

Beq

Fields

§lhs: Insn
§rhs: Insn
§ttgt: Label
§ftgt: Label
§

Bne

Fields

§lhs: Insn
§rhs: Insn
§ttgt: Label
§ftgt: Label
§

Blt

Fields

§lhs: Insn
§rhs: Insn
§ttgt: Label
§ftgt: Label
§

Bgt

Fields

§lhs: Insn
§rhs: Insn
§ttgt: Label
§ftgt: Label
§

Load

Fields

§dst: Insn
§src: Insn
§size: u64
§

Store

Fields

§dst: Insn
§src: Insn
§size: u64
§

Sext

Fields

§size: usize
§dst: Insn
§

Zext

Fields

§size: usize
§dst: Insn
§

Signed

Fields

§dst: Insn
§

Unsigned

Fields

§dst: Insn
§

IntToFloat

Fields

§src: Insn
§src_size: usize
§signed: bool
§dst_size: usize
§

Imm

Fields

§imm: i64
§

Reg

Fields

§reg: u64
§

TmpReg

Fields

§reg: u64
§

Syscall

§

Sysbreak

§

Lr

Fields

§dst: Insn
§src: Insn
§size: u64
§

Sc

Fields

§dst: Insn
§src: Insn
§addr: Insn
§size: u64
§

Amo

Fields

§dst: Insn
§src: Insn
§addr: Insn
§size: u64
§

Fence

Fields

§mode: u8
§pred: u8
§succ: u8

Implementations§

Trait Implementations§

Source§

impl Clone for NnilInstruction

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for NnilInstruction

Source§

impl Debug for NnilInstruction

Source§

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

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

impl Eq for NnilInstruction

Source§

impl PartialEq for NnilInstruction

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for NnilInstruction

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.