Struct llvm_rs::PassManagerBuilder
source · pub struct PassManagerBuilder(_);Expand description
Used to custimize a pass sequence in various ways For more information go to llvm
Implementations§
source§impl<'a> PassManagerBuilder
impl<'a> PassManagerBuilder
sourcepub fn new() -> CSemiBox<'a, PassManagerBuilder>
pub fn new() -> CSemiBox<'a, PassManagerBuilder>
Create a new PassManagerBuilder
sourcepub fn set_disable_simplify_lib_calls(&self, opt: bool)
pub fn set_disable_simplify_lib_calls(&self, opt: bool)
pub fn disable_unit_at_a_time(&self, opt: bool)
pub fn disable_unroll_loop(&self, opt: bool)
pub fn populate_lto_pass_manger(
&self,
pass_manager: &PassManager,
internalize: bool,
run_inliner: bool
)
pub fn inline_with_threshold(&self, threshold: u32)
pub fn populate_module_pass_manager(&self, pass_manager: &PassManager)
pub fn populate_function_pass_manager(&self, pass_manager: &PassManager)
Trait Implementations§
source§impl DisposeRef for PassManagerBuilder
impl DisposeRef for PassManagerBuilder
§type RefTo = LLVMOpaquePassManagerBuilder
type RefTo = LLVMOpaquePassManagerBuilder
What a reference to this type represents as a C pointer.
source§impl<'a> From<&'a PassManagerBuilder> for LLVMPassManagerBuilderRef
impl<'a> From<&'a PassManagerBuilder> for LLVMPassManagerBuilderRef
source§fn from(ty: &'a PassManagerBuilder) -> LLVMPassManagerBuilderRef
fn from(ty: &'a PassManagerBuilder) -> LLVMPassManagerBuilderRef
Converts to this type from the input type.
source§impl<'a> From<&'a mut PassManagerBuilder> for LLVMPassManagerBuilderRef
impl<'a> From<&'a mut PassManagerBuilder> for LLVMPassManagerBuilderRef
source§fn from(ty: &'a mut PassManagerBuilder) -> LLVMPassManagerBuilderRef
fn from(ty: &'a mut PassManagerBuilder) -> LLVMPassManagerBuilderRef
Converts to this type from the input type.
source§impl<'a> From<*mut LLVMOpaquePassManagerBuilder> for &'a PassManagerBuilder
impl<'a> From<*mut LLVMOpaquePassManagerBuilder> for &'a PassManagerBuilder
source§fn from(ty: LLVMPassManagerBuilderRef) -> &'a PassManagerBuilder
fn from(ty: LLVMPassManagerBuilderRef) -> &'a PassManagerBuilder
Converts to this type from the input type.
source§impl<'a> From<*mut LLVMOpaquePassManagerBuilder> for &'a mut PassManagerBuilder
impl<'a> From<*mut LLVMOpaquePassManagerBuilder> for &'a mut PassManagerBuilder
source§fn from(ty: LLVMPassManagerBuilderRef) -> &'a mut PassManagerBuilder
fn from(ty: LLVMPassManagerBuilderRef) -> &'a mut PassManagerBuilder
Converts to this type from the input type.