[−][src]Struct llvm_ir_analysis::FunctionAnalysis
Computes (and caches the results of) various analyses on a given Function
Implementations
impl<'m> FunctionAnalysis<'m>
[src]
pub fn new(function: &'m Function) -> Self
[src]
Create a new FunctionAnalysis
for the given Function
.
This method itself is cheap; individual analyses will be computed lazily on demand.
pub fn control_flow_graph(&self) -> Ref<'_, ControlFlowGraph<'m>>
[src]
Get the ControlFlowGraph
for the function.
pub fn dominator_tree(&self) -> Ref<'_, DominatorTree<'m>>
[src]
Get the DominatorTree
for the function.
pub fn postdominator_tree(&self) -> Ref<'_, PostDominatorTree<'m>>
[src]
Get the PostDominatorTree
for the function.
pub fn control_dependence_graph(&self) -> Ref<'_, ControlDependenceGraph<'m>>
[src]
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
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>,