pub struct LoopAnalysisManager { /* private fields */ }Expand description
Analysis manager handle for loop passes and analyses.
Implementations§
Source§impl LoopAnalysisManager
impl LoopAnalysisManager
Sourcepub unsafe fn from_raw(raw: *mut c_void) -> Self
pub unsafe fn from_raw(raw: *mut c_void) -> Self
Construct from an opaque manager pointer passed by the C++ layer.
§Safety
raw must be a valid pointer to LLVM’s LoopAnalysisManager.
Sourcepub fn add_analysis<P>(&self, pass: P)
pub fn add_analysis<P>(&self, pass: P)
Register a loop analysis pass.
Sourcepub fn get_result<A>(&self, loop_header: LLVMBasicBlockRef) -> &A::Resultwhere
A: LlvmLoopAnalysis + 'static,
A::Result: 'static,
pub fn get_result<A>(&self, loop_header: LLVMBasicBlockRef) -> &A::Resultwhere
A: LlvmLoopAnalysis + 'static,
A::Result: 'static,
Get (or compute) analysis result for a loop header.
Sourcepub fn get_cached_result<A>(
&self,
loop_header: LLVMBasicBlockRef,
) -> Option<&A::Result>where
A: LlvmLoopAnalysis + 'static,
A::Result: 'static,
pub fn get_cached_result<A>(
&self,
loop_header: LLVMBasicBlockRef,
) -> Option<&A::Result>where
A: LlvmLoopAnalysis + 'static,
A::Result: 'static,
Get cached analysis result if present.
Auto Trait Implementations§
impl Freeze for LoopAnalysisManager
impl RefUnwindSafe for LoopAnalysisManager
impl !Send for LoopAnalysisManager
impl !Sync for LoopAnalysisManager
impl Unpin for LoopAnalysisManager
impl UnsafeUnpin for LoopAnalysisManager
impl UnwindSafe for LoopAnalysisManager
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more