pub struct CraneliftPassConfig {
pub const_folding: bool,
pub dce: bool,
pub inst_combine: bool,
pub branch_opt: bool,
pub licm: bool,
pub reg_coalescing: bool,
pub load_elim: bool,
pub tail_call_opt: bool,
pub inline_depth: u32,
pub debug_info: bool,
}Expand description
Which optimization passes to run on Cranelift IR.
Fields§
§const_folding: boolEnable constant folding.
dce: boolEnable dead code elimination.
inst_combine: boolEnable instruction combining (e.g., add + mul → madd).
branch_opt: boolEnable branch optimization.
licm: boolEnable loop-invariant code motion.
reg_coalescing: boolEnable register coalescing.
load_elim: boolEnable redundant load elimination.
tail_call_opt: boolEnable tail call optimization.
inline_depth: u32Maximum inlining depth.
debug_info: boolWhether to emit debug information.
Implementations§
Trait Implementations§
Source§impl Clone for CraneliftPassConfig
impl Clone for CraneliftPassConfig
Source§fn clone(&self) -> CraneliftPassConfig
fn clone(&self) -> CraneliftPassConfig
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 CraneliftPassConfig
impl Debug for CraneliftPassConfig
Auto Trait Implementations§
impl Freeze for CraneliftPassConfig
impl RefUnwindSafe for CraneliftPassConfig
impl Send for CraneliftPassConfig
impl Sync for CraneliftPassConfig
impl Unpin for CraneliftPassConfig
impl UnsafeUnpin for CraneliftPassConfig
impl UnwindSafe for CraneliftPassConfig
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