Struct llvm_plugin::PassBuilder
source · [−]pub struct PassBuilder { /* private fields */ }
Expand description
Main struct for registering callbacks.
Implementations
sourceimpl PassBuilder
impl PassBuilder
sourcepub fn add_module_pipeline_parsing_callback<T>(&mut self, cb: T)where
T: Fn(&str, &mut ModulePassManager) -> PipelineParsing,
pub fn add_module_pipeline_parsing_callback<T>(&mut self, cb: T)where
T: Fn(&str, &mut ModulePassManager) -> PipelineParsing,
Register a new pipeline parsing callback.
These callbacks can be used to parse a single pass name, and populate the given ModulePassManager accordingly.
sourcepub fn add_function_pipeline_parsing_callback<T>(&mut self, cb: T)where
T: Fn(&str, &mut FunctionPassManager) -> PipelineParsing,
pub fn add_function_pipeline_parsing_callback<T>(&mut self, cb: T)where
T: Fn(&str, &mut FunctionPassManager) -> PipelineParsing,
Register a new pipeline parsing callback.
These callbacks can be used to parse a single pass name, and populate the given FunctionPassManager accordingly.
sourcepub fn add_module_analysis_registration_callback<T>(&mut self, cb: T)where
T: Fn(&mut ModuleAnalysisManager),
pub fn add_module_analysis_registration_callback<T>(&mut self, cb: T)where
T: Fn(&mut ModuleAnalysisManager),
Register a new callback for analysis registration.
These callbacks can be used to register custom analyses with the given ModuleAnalysisManager.
sourcepub fn add_function_analysis_registration_callback<T>(&mut self, cb: T)where
T: Fn(&mut FunctionAnalysisManager),
pub fn add_function_analysis_registration_callback<T>(&mut self, cb: T)where
T: Fn(&mut FunctionAnalysisManager),
Register a new callback for analysis registration.
These callbacks can be used to register custom analyses with the given FunctionAnalysisManager.
Auto Trait Implementations
impl RefUnwindSafe for PassBuilder
impl !Send for PassBuilder
impl !Sync for PassBuilder
impl Unpin for PassBuilder
impl UnwindSafe for PassBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more