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,
    },
    Raise {
        expr: Expression,
    },
}

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

Raise operation for handling things such as system calls.

Fields of Raise

Methods

impl Operation
[src]

[src]

Create a new Operation::Assign.

[src]

Create a new Operation::Store.

[src]

Create a new Operation::Load.

[src]

Create a new Operation::Brc.

[src]

Create a new Operation::Raise.

[src]

Get each Scalar read by this Operation.

[src]

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

[src]

Get a reference to the Scalar written by this Operation, or None if no Scalar is written.

[src]

Get a mutable reference to the Scalar written by this Operation, or None, if no Scalar is written.

Trait Implementations

impl Clone for Operation
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Operation
[src]

[src]

Formats the value using the given formatter.

impl Eq for Operation
[src]

impl Hash for Operation
[src]

[src]

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

1.3.0
[src]

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

impl Ord for Operation
[src]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialEq for Operation
[src]

[src]

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

[src]

This method tests for !=.

impl PartialOrd for Operation
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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]

[src]

Formats the value using the given formatter. Read more