pub struct LLVMExtPassConfig {
pub name: String,
pub phase: LLVMExtPassPhase,
pub enabled: bool,
pub max_iterations: usize,
pub debug: u32,
pub timeout_ms: Option<u64>,
}Expand description
Configuration for LLVMExt passes.
Fields§
§name: String§phase: LLVMExtPassPhase§enabled: bool§max_iterations: usize§debug: u32§timeout_ms: Option<u64>Implementations§
Source§impl LLVMExtPassConfig
impl LLVMExtPassConfig
pub fn new(name: impl Into<String>) -> Self
pub fn with_phase(self, phase: LLVMExtPassPhase) -> Self
pub fn with_max_iter(self, n: usize) -> Self
pub fn with_debug(self, d: u32) -> Self
pub fn disabled(self) -> Self
pub fn with_timeout(self, ms: u64) -> Self
pub fn is_debug_enabled(&self) -> bool
Trait Implementations§
Source§impl Clone for LLVMExtPassConfig
impl Clone for LLVMExtPassConfig
Source§fn clone(&self) -> LLVMExtPassConfig
fn clone(&self) -> LLVMExtPassConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LLVMExtPassConfig
impl Debug for LLVMExtPassConfig
Auto Trait Implementations§
impl Freeze for LLVMExtPassConfig
impl RefUnwindSafe for LLVMExtPassConfig
impl Send for LLVMExtPassConfig
impl Sync for LLVMExtPassConfig
impl Unpin for LLVMExtPassConfig
impl UnsafeUnpin for LLVMExtPassConfig
impl UnwindSafe for LLVMExtPassConfig
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