pub struct PluginFunctionPassManager { /* private fields */ }Expand description
A borrowed function pass manager received in plugin pipeline parsing callbacks.
Unlike FunctionPassManager, this does not
own the pass manager. Passes added to it are owned by the C++ side.
Implementations§
Source§impl PluginFunctionPassManager
impl PluginFunctionPassManager
Sourcepub fn add_pass<P: LlvmFunctionPass + 'static>(&mut self, pass: P)
pub fn add_pass<P: LlvmFunctionPass + 'static>(&mut self, pass: P)
Add a custom function pass.
Sourcepub fn add_loop_pass<P: LlvmLoopPass + 'static>(&mut self, pass: P)
pub fn add_loop_pass<P: LlvmLoopPass + 'static>(&mut self, pass: P)
Add a custom loop pass (adapted into the function pipeline).
Auto Trait Implementations§
impl Freeze for PluginFunctionPassManager
impl RefUnwindSafe for PluginFunctionPassManager
impl !Send for PluginFunctionPassManager
impl !Sync for PluginFunctionPassManager
impl Unpin for PluginFunctionPassManager
impl UnsafeUnpin for PluginFunctionPassManager
impl UnwindSafe for PluginFunctionPassManager
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