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

pub enum Operation {
    Assign {
        dst: Scalar,
        src: Expression,
    },
    Store {
        dst: Array,
        index: Expression,
        src: Expression,
    },
    Load {
        dst: Scalar,
        index: Expression,
        src: Array,
    },
    Brc {
        target: Expression,
        condition: 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 given by expression at the address given.

Fields of Store

Load the value given by address and place the result in the variable dst.

Fields of Load

If condition is non-zero, branch to the value given by dst.

Fields of Brc

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 eacn Variable read by this Operation.

[src]

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

[src]

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

[src]

Get a mutable reference to the Variable written by this Operation, or None, if no Variable 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