[−][src]Struct llvm_ir_analysis::ControlDependenceGraph
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]
&'s self,
block: &'m Name
) -> impl Iterator<Item = &'m Name> + 's
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]
&'s self,
block: &'m Name
) -> impl Iterator<Item = &'m Name> + 's
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]
&'s self,
block: &'m Name
) -> impl Iterator<Item = CFGNode<'m>> + 's
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]
&'s self,
block: &'m Name
) -> impl Iterator<Item = CFGNode<'m>> + 's
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
impl<'m> RefUnwindSafe for ControlDependenceGraph<'m>
impl<'m> Send for ControlDependenceGraph<'m>
impl<'m> Sync for ControlDependenceGraph<'m>
impl<'m> Unpin for ControlDependenceGraph<'m>
impl<'m> UnwindSafe for ControlDependenceGraph<'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,
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, 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>,