pub struct PostDomTree { /* private fields */ }Implementations§
Source§impl PostDomTree
impl PostDomTree
pub fn new() -> Self
pub fn compute(&mut self, func: &Function)
pub fn idom_of(&self, block: Block) -> Option<PDTIdom>
pub fn clear(&mut self)
Sourcepub fn compute_df(&self) -> PDFSet
pub fn compute_df(&self) -> PDFSet
Compute post dominance frontiers of each blocks.
Sourcepub fn is_reachable(&self, block: Block) -> bool
pub fn is_reachable(&self, block: Block) -> bool
Returns true if block is reachable from the exit blocks.
Trait Implementations§
Source§impl Debug for PostDomTree
impl Debug for PostDomTree
Auto Trait Implementations§
impl Freeze for PostDomTree
impl RefUnwindSafe for PostDomTree
impl Send for PostDomTree
impl Sync for PostDomTree
impl Unpin for PostDomTree
impl UnwindSafe for PostDomTree
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more