[][src]Struct llhd::analysis::PredecessorTable

pub struct PredecessorTable { /* fields omitted */ }

A table of basic block predecessors.

Methods

impl PredecessorTable[src]

pub fn new(unit: &Unit) -> Self[src]

Deprecated since 0.13.0:

use unit.predtbl() instead

Compute the predecessor table for a function or process.

pub fn new_temporal(unit: &Unit) -> Self[src]

Deprecated since 0.13.0:

use unit.temporal_predtbl() instead

Compute the temporal predecessor table for a process.

This is a special form of predecessor table which ignores edges in the CFG that cross a temporal instruction. As such all connected blocks in the table are guaranteed to execute within the same instant of time.

pub fn all_pred_sets(&self) -> &HashMap<Block, HashSet<Block>>[src]

Get a map of blocks to predecessor sets in this table.

pub fn all_succs_sets(&self) -> &HashMap<Block, HashSet<Block>>[src]

Get a map of blocks to successor sets in this table.

pub fn pred_set(&self, bb: Block) -> &HashSet<Block>[src]

Get the predecessors of a block.

pub fn succ_set(&self, bb: Block) -> &HashSet<Block>[src]

Get the successors of a block.

pub fn pred(&self, bb: Block) -> impl Iterator<Item = Block> + Clone + '_[src]

Get the predecessors of a block.

pub fn succ(&self, bb: Block) -> impl Iterator<Item = Block> + Clone + '_[src]

Get the successors of a block.

pub fn is_sole_pred(&self, bb: Block, pred_of: Block) -> bool[src]

Check if a block is the sole predecessor of another block.

pub fn is_sole_succ(&self, bb: Block, succ_of: Block) -> bool[src]

Check if a block is the sole successor of another block.

Trait Implementations

impl Clone for PredecessorTable[src]

impl Debug for PredecessorTable[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.