Enum falcon::il::Operation[][src]

pub enum Operation {
    Assign {
        dst: Scalar,
        src: Expression,
    },
    Store {
        index: Expression,
        src: Expression,
    },
    Load {
        dst: Scalar,
        index: Expression,
    },
    Branch {
        target: Expression,
    },
    Intrinsic {
        intrinsic: Intrinsic,
    },
    Nop,
}

An IL Operation updates some state.

Variants

Assign the value given in expression to the variable indicated.

Fields of Assign

Store the value in src at the address given in index.

Fields of Store

Load the value in memory at index and place the result in the variable dst.

Fields of Load

Branch to the value given by target.

Fields of Branch

Holds an Intrinsic for unmodellable instructions

Fields of Intrinsic

An operation that does nothing, and allows for a placeholder Instuction

Methods

impl Operation
[src]

Create a new Operation::Assign.

Create a new Operation::Store.

Create a new Operation::Load.

Create a new Operation::Brc.

Create a new Operation::Intrinsic.

Create a new Operation::Nop

Get each Scalar read by this Operation.

Get a mutable reference to each Scalar read by this Operation.

Get a Vec of the Scalars written by this Operation

Get a Vec of mutable referencer to the Scalars written by this Operation

Trait Implementations

impl Clone for Operation
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Operation
[src]

Formats the value using the given formatter. Read more

impl Eq for Operation
[src]

impl Hash for Operation
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Ord for Operation
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialEq for Operation
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for Operation
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Display for Operation
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Operation

impl Sync for Operation