[][src]Struct llvm_ir_analysis::ControlDependenceGraph

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

The control dependence graph for a particular function. https://en.wikipedia.org/wiki/Data_dependency#Control_Dependency

To construct a ControlDependenceGraph, use FunctionAnalysis, which you can get from ModuleAnalysis.

Implementations

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

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

Get the blocks that block has an immediate control dependency on.

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

Get the blocks that block has a control dependency on (including transitively).

This is the block's immediate control dependencies, along with all the control dependencies of those dependencies, and so on recursively.

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

Get the blocks that have an immediate control dependency on block.

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

Get the blocks that have a control dependency on block (including transitively).

This is the block's immediate control dependents, along with all the control dependents of those dependents, and so on recursively.

pub fn is_control_dependent(&self, block_a: &'m Name, block_b: &'m Name) -> bool[src]

Does block_a have a control dependency on block_b?

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

Get the Name of the entry block for the function

Auto Trait Implementations

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.