Struct llvm_ir_analysis::FunctionAnalysis
source · pub struct FunctionAnalysis<'m> { /* private fields */ }
Expand description
Computes (and caches the results of) various analyses on a given Function
Implementations§
source§impl<'m> FunctionAnalysis<'m>
impl<'m> FunctionAnalysis<'m>
sourcepub fn new(function: &'m Function) -> Self
pub fn new(function: &'m Function) -> Self
Create a new FunctionAnalysis
for the given Function
.
This method itself is cheap; individual analyses will be computed lazily on demand.
sourcepub fn control_flow_graph(&self) -> Ref<'_, ControlFlowGraph<'m>>
pub fn control_flow_graph(&self) -> Ref<'_, ControlFlowGraph<'m>>
Get the ControlFlowGraph
for the function.
sourcepub fn dominator_tree(&self) -> Ref<'_, DominatorTree<'m>>
pub fn dominator_tree(&self) -> Ref<'_, DominatorTree<'m>>
Get the DominatorTree
for the function.
sourcepub fn postdominator_tree(&self) -> Ref<'_, PostDominatorTree<'m>>
pub fn postdominator_tree(&self) -> Ref<'_, PostDominatorTree<'m>>
Get the PostDominatorTree
for the function.
sourcepub fn control_dependence_graph(&self) -> Ref<'_, ControlDependenceGraph<'m>>
pub fn control_dependence_graph(&self) -> Ref<'_, ControlDependenceGraph<'m>>
Get the ControlDependenceGraph
for the function.
Auto Trait Implementations§
impl<'m> !RefUnwindSafe for FunctionAnalysis<'m>
impl<'m> Send for FunctionAnalysis<'m>
impl<'m> !Sync for FunctionAnalysis<'m>
impl<'m> Unpin for FunctionAnalysis<'m>
impl<'m> UnwindSafe for FunctionAnalysis<'m>
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