[][src]Struct llvm_ir_analysis::ControlFlowGraph

pub struct ControlFlowGraph<'m> { /* fields omitted */ }

The control flow graph for a particular function.

To construct a ControlFlowGraph, use Analysis.

Implementations

impl<'m> ControlFlowGraph<'m>[src]

pub fn preds<'s>(
    &'s self,
    block: &'m Name
) -> impl Iterator<Item = &'m Name> + 's
[src]

Get the predecessors of the basic block with the given Name

pub fn preds_of_return<'s>(&'s self) -> impl Iterator<Item = &'m Name> + 's[src]

Get the predecessors of the special Return node, i.e., get all blocks which may directly return

pub fn succs<'s>(
    &'s self,
    block: &'m Name
) -> impl Iterator<Item = CFGNode<'m>> + 's
[src]

Get the successors of the basic block with the given Name. Here, CFGNode::Return indicates that the function may directly return from this basic block.

pub fn entry(&self) -> &'m Name[src]

Get the Name of the entry block for the function

Auto Trait Implementations

impl<'m> RefUnwindSafe for ControlFlowGraph<'m>

impl<'m> Send for ControlFlowGraph<'m>

impl<'m> Sync for ControlFlowGraph<'m>

impl<'m> Unpin for ControlFlowGraph<'m>

impl<'m> UnwindSafe for ControlFlowGraph<'m>

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, 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.