[][src]Enum raptor::ir::Operation

pub enum Operation<V: Value> {
    Assign {
        dst: Variable,
        src: Expression<V>,
    },
    Store {
        index: Expression<V>,
        src: Expression<V>,
    },
    Load {
        dst: Variable,
        index: Expression<V>,
    },
    Branch {
        target: Expression<V>,
    },
    Call(Call<V>),
    Intrinsic(Intrinsic),
    Return(Option<Expression<V>>),
    Nop,
}

Variants

Assign

Fields of Assign

dst: Variablesrc: Expression<V>
Store

Fields of Store

index: Expression<V>src: Expression<V>
Load

Fields of Load

dst: Variableindex: Expression<V>
Branch

Fields of Branch

target: Expression<V>
Call(Call<V>)
Intrinsic(Intrinsic)
Return(Option<Expression<V>>)
Nop

Methods

impl<V: Value> Operation<V>[src]

pub fn from_il(operation: &Operation) -> Operation<Constant>[src]

pub fn is_assign(&self) -> bool[src]

pub fn is_load(&self) -> bool[src]

pub fn is_return(&self) -> bool[src]

pub fn is_nop(&self) -> bool[src]

pub fn is_branch(&self) -> bool[src]

pub fn is_call(&self) -> bool[src]

pub fn src(&self) -> Option<&Expression<V>>[src]

pub fn dst(&self) -> Option<&Variable>[src]

pub fn target(&self) -> Option<&Expression<V>>[src]

pub fn call(&self) -> Option<&Call<V>>[src]

pub fn result(&self) -> Option<&Expression<V>>[src]

pub fn expressions(&self) -> Vec<&Expression<V>>[src]

pub fn expressions_mut(&mut self) -> Vec<&mut Expression<V>>[src]

pub fn variables_written(&self) -> Option<Vec<&Variable>>[src]

pub fn variables_read(&self) -> Option<Vec<&Variable>>[src]

pub fn variables(&self) -> Option<Vec<&Variable>>[src]

Trait Implementations

impl<V: Clone + Value> Clone for Operation<V>[src]

impl<V: Debug + Value> Debug for Operation<V>[src]

impl<'de, V: Value> Deserialize<'de> for Operation<V> where
    V: Deserialize<'de>, 
[src]

impl<V: Value> Display for Operation<V>[src]

impl<V: Eq + Value> Eq for Operation<V>[src]

impl<V: Hash + Value> Hash for Operation<V>[src]

impl<V: Ord + Value> Ord for Operation<V>[src]

impl<V: PartialEq + Value> PartialEq<Operation<V>> for Operation<V>[src]

impl<V: PartialOrd + Value> PartialOrd<Operation<V>> for Operation<V>[src]

impl<V: Value> Serialize for Operation<V> where
    V: Serialize
[src]

impl<V: Value> StructuralEq for Operation<V>[src]

impl<V: Value> StructuralPartialEq for Operation<V>[src]

Auto Trait Implementations

impl<V> RefUnwindSafe for Operation<V> where
    V: RefUnwindSafe

impl<V> Send for Operation<V>

impl<V> Sync for Operation<V>

impl<V> Unpin for Operation<V>

impl<V> UnwindSafe for Operation<V> where
    V: UnwindSafe

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

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.