Struct llvm_kaleidoscope_rs::llvm::FunctionPassManager
source · pub struct FunctionPassManager<'llvm> { /* private fields */ }
Expand description
Wrapper for a LLVM Function PassManager (legacy).
Implementations§
source§impl<'llvm> FunctionPassManager<'llvm>
impl<'llvm> FunctionPassManager<'llvm>
sourcepub fn with_ctx(module: &'llvm Module) -> FunctionPassManager<'llvm>
pub fn with_ctx(module: &'llvm Module) -> FunctionPassManager<'llvm>
Create a new Function PassManager with the following optimization passes
- InstructionCombiningPass
- ReassociatePass
- NewGVNPass
- CFGSimplificationPass
The list of selected optimization passes is taken from the tutorial chapter LLVM Optimization Passes.
Trait Implementations§
Auto Trait Implementations§
impl<'llvm> RefUnwindSafe for FunctionPassManager<'llvm>
impl<'llvm> !Send for FunctionPassManager<'llvm>
impl<'llvm> !Sync for FunctionPassManager<'llvm>
impl<'llvm> Unpin for FunctionPassManager<'llvm>
impl<'llvm> UnwindSafe for FunctionPassManager<'llvm>
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