Struct llhd::analysis::DominatorTree[][src]

pub struct DominatorTree { /* fields omitted */ }
Expand description

A block dominator tree.

Records for every block which other blocks in the CFG have to be traversed to reach it. And vice versa, which blocks a block precedeces in all cases.

Implementations

👎 Deprecated since 0.13.0:

use unit.domtree() instead

Compute the dominator tree of a function or process.

This implementation is based on 1.

pub fn blocks_post_order(&self) -> &[Block]
Notable traits for &'_ [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]

Get the blocks in the original CFG in post-order.

Get the post-order index of a block.

Check if a block dominates another.

Get the immediate dominator of a block.

Get the dominators of a block.

Get the followers of a block, i.e. the blocks it dominates.

Check if a block dominates another block.

Check if an instruction dominates a block.

Check if a value definition dominates a block.

Check if a block dominates an instruction.

A block does not dominate instructions within itself.

Check if an instruction dominates another instruction.

Check if a value definition dominates an instruction.

Check if a block dominates a value definition.

A block does not dominate values within itself.

Check if an instruction dominates a value definition.

Check if a value definition dominates another value definition.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.