pub struct CgsccAnalysisManager { /* private fields */ }Expand description
Analysis manager handle for CGSCC passes and analyses.
Implementations§
Source§impl CgsccAnalysisManager
impl CgsccAnalysisManager
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 CGSCCAnalysisManager.
Sourcepub fn add_analysis<P>(&self, pass: P)
pub fn add_analysis<P>(&self, pass: P)
Register a CGSCC analysis pass.
Sourcepub fn get_result<A>(&self, function: &FunctionValue<'_>) -> &A::Resultwhere
A: LlvmCgsccAnalysis + 'static,
A::Result: 'static,
pub fn get_result<A>(&self, function: &FunctionValue<'_>) -> &A::Resultwhere
A: LlvmCgsccAnalysis + 'static,
A::Result: 'static,
Get (or compute) analysis result for a function in current SCC.
Sourcepub fn get_cached_result<A>(
&self,
function: &FunctionValue<'_>,
) -> Option<&A::Result>where
A: LlvmCgsccAnalysis + 'static,
A::Result: 'static,
pub fn get_cached_result<A>(
&self,
function: &FunctionValue<'_>,
) -> Option<&A::Result>where
A: LlvmCgsccAnalysis + 'static,
A::Result: 'static,
Get cached analysis result if present.
Auto Trait Implementations§
impl Freeze for CgsccAnalysisManager
impl RefUnwindSafe for CgsccAnalysisManager
impl !Send for CgsccAnalysisManager
impl !Sync for CgsccAnalysisManager
impl Unpin for CgsccAnalysisManager
impl UnsafeUnpin for CgsccAnalysisManager
impl UnwindSafe for CgsccAnalysisManager
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