[][src]Enum melon::Instruction

pub enum Instruction {
    Add(IntegerType),
    Sub(IntegerType),
    Mul(IntegerType),
    Div(IntegerType),
    Shr(IntegerType),
    Shl(IntegerType),
    And(IntegerType),
    Or(IntegerType),
    Xor(IntegerType),
    Not(IntegerType),
    Neg(IntegerType),
    Cmp(IntegerType),
    Inc(IntegerType),
    Dec(IntegerType),
    U8Promote,
    U16Demote,
    I8Promote,
    I16Demote,
    PushConstU8(u8),
    PushConstU16(u16),
    PushConstI8(i8),
    PushConstI16(i16),
    LoadReg(Register),
    Load(IntegerTypeAddress),
    LoadIndirect(IntegerType),
    Store(IntegerTypeAddress),
    StoreIndirect(IntegerType),
    Dup(IntegerType),
    Drop(IntegerType),
    SysCall(u16),
    Call(Address),
    Ret,
    Alloc(u16),
    Free,
    Jmp(boolu16),
    Jeq(boolu16),
    Jneq(boolu16),
    Jlt(boolu16),
    JltEq(boolu16),
    Jgt(boolu16),
    JgtEq(boolu16),
}

Variants

U8Promote
U16Demote
I8Promote
I16Demote
PushConstU8(u8)
PushConstU16(u16)
PushConstI8(i8)
PushConstI16(i16)
LoadReg(Register)
LoadIndirect(IntegerType)
StoreIndirect(IntegerType)
SysCall(u16)
Call(Address)
Ret
Alloc(u16)
Free
Jmp(boolu16)
Jeq(boolu16)
Jneq(boolu16)
Jlt(boolu16)
JltEq(boolu16)
Jgt(boolu16)
JgtEq(boolu16)

Trait Implementations

impl Clone for Instruction[src]

impl Copy for Instruction[src]

impl Debug for Instruction[src]

impl<'de> Deserialize<'de> for Instruction[src]

impl Distribution<Instruction> for Standard[src]

impl Serialize for Instruction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,