[−][src]Struct llvm_ir_analysis::ControlFlowGraph
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]
&'s self,
block: &'m Name
) -> impl Iterator<Item = &'m Name> + 's
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]
&'s self,
block: &'m Name
) -> impl Iterator<Item = CFGNode<'m>> + 's
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]
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,
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, 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.
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>,