pub struct PluginModulePassManager { /* private fields */ }Expand description
A borrowed module pass manager received in plugin pipeline parsing callbacks.
Unlike ModulePassManager, this does not own
the pass manager — it wraps a raw ModulePassManager* from LLVM. Passes
added to it are owned by the C++ side.
Implementations§
Source§impl PluginModulePassManager
impl PluginModulePassManager
Sourcepub fn add_pass<P: LlvmModulePass + 'static>(&mut self, pass: P)
pub fn add_pass<P: LlvmModulePass + 'static>(&mut self, pass: P)
Add a custom module pass.
Sourcepub fn add_cgscc_pass<P: LlvmCgsccPass + 'static>(&mut self, pass: P)
pub fn add_cgscc_pass<P: LlvmCgsccPass + 'static>(&mut self, pass: P)
Add a custom CGSCC pass (adapted into the module pipeline).
Sourcepub fn add_function_pass_via_cgscc<P: LlvmFunctionPass + 'static>(
&mut self,
pass: P,
)
pub fn add_function_pass_via_cgscc<P: LlvmFunctionPass + 'static>( &mut self, pass: P, )
Add a custom function pass adapted through the CGSCC level.
Sourcepub fn add_loop_pass_via_cgscc<P: LlvmLoopPass + 'static>(&mut self, pass: P)
pub fn add_loop_pass_via_cgscc<P: LlvmLoopPass + 'static>(&mut self, pass: P)
Add a custom loop pass adapted through the CGSCC and function levels.
Auto Trait Implementations§
impl Freeze for PluginModulePassManager
impl RefUnwindSafe for PluginModulePassManager
impl !Send for PluginModulePassManager
impl !Sync for PluginModulePassManager
impl Unpin for PluginModulePassManager
impl UnsafeUnpin for PluginModulePassManager
impl UnwindSafe for PluginModulePassManager
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