pub struct NativeEmitConfig {
pub opt_level: u8,
pub debug_info: bool,
pub target_arch: String,
pub num_gp_regs: usize,
pub emit_comments: bool,
}Expand description
Configuration for the native backend.
Fields§
§opt_level: u8Optimization level: 0 = none, 1 = basic, 2 = full, 3 = aggressive.
debug_info: boolWhether to generate debug info.
target_arch: StringTarget architecture hint.
num_gp_regs: usizeNumber of general-purpose registers available.
emit_comments: boolWhether to emit comments in the IR.
Trait Implementations§
Source§impl Clone for NativeEmitConfig
impl Clone for NativeEmitConfig
Source§fn clone(&self) -> NativeEmitConfig
fn clone(&self) -> NativeEmitConfig
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 NativeEmitConfig
impl Debug for NativeEmitConfig
Auto Trait Implementations§
impl Freeze for NativeEmitConfig
impl RefUnwindSafe for NativeEmitConfig
impl Send for NativeEmitConfig
impl Sync for NativeEmitConfig
impl Unpin for NativeEmitConfig
impl UnsafeUnpin for NativeEmitConfig
impl UnwindSafe for NativeEmitConfig
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