[][src]Struct gf::pivot::fragment::FragmentDomTree

pub struct FragmentDomTree<'a, D: Direction> { /* fields omitted */ }

🟢 Dominator tree of a sealed fragment.

Forward dominator trees are prebuilt for all sealed fragments, and can be retrieved via Fragment::dom_tree.

Implementations

impl<'a, D: Direction> FragmentDomTree<'a, D>[src]

pub unsafe fn from_unsealed(
    fragment: Fragment<'a>,
    unsealed: &'a UnsealedFragmentDomTree<D>
) -> Self
[src]

Wrap an unsealed fragment dominator tree.

pub fn fragment(&self) -> Fragment<'a>[src]

Return parent fragment.

pub fn idom(&self, basic_block: BasicBlock<'a>) -> BasicBlock<'a>[src]

Return the immediate dominator of a basic block where the entry node is defined to dominate itself.

Errors

  • Panics if the basic block does not belong to this tree.

pub fn is_dom(&self, parent: BasicBlock<'a>, child: BasicBlock<'a>) -> bool[src]

Return whether parent dominates child.

Errors

  • Panics if either basic block does not belong to this tree.

pub fn lca(&self, u: BasicBlock<'a>, v: BasicBlock<'a>) -> BasicBlock<'a>[src]

Return the lowest common ancestor of two basic blocks.

Errors

  • Panics if either basic block does not belong to this tree.

Trait Implementations

impl<'a, D: Clone + Direction> Clone for FragmentDomTree<'a, D>[src]

impl<'a, D: Copy + Direction> Copy for FragmentDomTree<'a, D>[src]

Auto Trait Implementations

impl<'a, D> RefUnwindSafe for FragmentDomTree<'a, D> where
    D: RefUnwindSafe

impl<'a, D> Send for FragmentDomTree<'a, D> where
    D: Sync

impl<'a, D> Sync for FragmentDomTree<'a, D> where
    D: Sync

impl<'a, D> Unpin for FragmentDomTree<'a, D>

impl<'a, D> UnwindSafe for FragmentDomTree<'a, D> where
    D: RefUnwindSafe

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.