Struct falcon::il::Block[][src]

pub struct Block { /* fields omitted */ }

A basic block in Falcon IL.

Methods

impl Block
[src]

Get the address of the first instruction in this block

Appends the contents of another Block to this Block.

Instruction indices are updated accordingly.

Returns the index of this Block

Returns instructions for this Block

Returns a mutable reference to the instructions for this Block.

Returns try if this Block is empty, meaning it has no Instruction

Returns an Instruction by index, or None if the instruction does not exist.

Returns a mutable reference to an Instruction by index, or None if the Instruction does not exist.

Deletes an Instruction by its index.

Generates a temporary scalar unique to this block.

Adds an assign operation to the end of this block.

Adds a store operation to the end of this block.

Adds a load operation to the end of this block.

Adds a conditional branch operation to the end of this block.

Adds an intrinsic operation to the end of this block.

Adds a nop operation to the end of this block.

Trait Implementations

impl Clone for Block
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Block
[src]

Formats the value using the given formatter. Read more

impl Eq for Block
[src]

impl Hash for Block
[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 Block
[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 Block
[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 Block
[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 Vertex for Block
[src]

impl Display for Block
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Block

impl Sync for Block