Enum rune_ssa::Value[][src]

pub enum Value {
    Input(usize),
    Const(ConstId),
    Phi(Phi),
    Not(Assign),
    Add(AssignAssign),
    Sub(AssignAssign),
    Div(AssignAssign),
    Mul(AssignAssign),
    CmpLt(AssignAssign),
    CmpLte(AssignAssign),
    CmpEq(AssignAssign),
    CmpGt(AssignAssign),
    CmpGte(AssignAssign),
}

A single abstract machine instruction.

Variants

Input(usize)

A numerated input.

Const(ConstId)

An instruction to load a constant as a value.

Phi(Phi)

A phony use node, indicating what assignments flow into this.

Not(Assign)

Compute !arg.

Add(AssignAssign)

Compute lhs + rhs.

Sub(AssignAssign)

Compute lhs - rhs.

Div(AssignAssign)

Compute lhs / rhs.

Mul(AssignAssign)

Compute lhs * rhs.

CmpLt(AssignAssign)

Compare if lhs < rhs.

CmpLte(AssignAssign)

Compare if lhs <= rhs.

CmpEq(AssignAssign)

Compare if lhs == rhs.

CmpGt(AssignAssign)

Compare if lhs > rhs.

CmpGte(AssignAssign)

Compare if lhs >= rhs.

Implementations

impl Value[src]

pub fn dump(&self) -> InstDump<'_>[src]

Dump diagnostical information on an instruction.

Trait Implementations

impl Clone for Value[src]

impl Debug for Value[src]

Auto Trait Implementations

impl !RefUnwindSafe for Value

impl !Send for Value

impl !Sync for Value

impl Unpin for Value

impl !UnwindSafe for Value

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> 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.