[−][src]Struct gf::pivot::fragment::UnsealedFragmentDomTree
⚪ Dominator tree of an unsealed fragment.
Implementations
impl<D: Direction> UnsealedFragmentDomTree<D>
[src]
pub fn new(cfg: &UnsealedFragmentCfg<D>) -> Self
[src]
Build the dominator tree of an unsealed fragment.
pub fn idom(&self, basic_block: BasicBlockId) -> BasicBlockId
[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: BasicBlockId, child: BasicBlockId) -> bool
[src]
Return whether parent
dominates child
.
Errors
- Panics if either basic block does not belong to this tree.
pub fn lca(&self, u: BasicBlockId, v: BasicBlockId) -> BasicBlockId
[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<D: Clone + Direction> Clone for UnsealedFragmentDomTree<D>
[src]
fn clone(&self) -> UnsealedFragmentDomTree<D>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<D: Debug + Direction> Debug for UnsealedFragmentDomTree<D>
[src]
Auto Trait Implementations
impl<D> RefUnwindSafe for UnsealedFragmentDomTree<D> where
D: RefUnwindSafe,
D: RefUnwindSafe,
impl<D> Send for UnsealedFragmentDomTree<D> where
D: Send,
D: Send,
impl<D> Sync for UnsealedFragmentDomTree<D> where
D: Sync,
D: Sync,
impl<D> Unpin for UnsealedFragmentDomTree<D> where
D: Unpin,
D: Unpin,
impl<D> UnwindSafe for UnsealedFragmentDomTree<D> where
D: UnwindSafe,
D: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,