Struct wasm_opt::InliningOptions
source · pub struct InliningOptions {
pub always_inline_max_size: u32,
pub one_caller_inline_max_size: u32,
pub flexible_inline_max_size: u32,
pub allow_functions_with_loops: bool,
pub partial_inlining_ifs: u32,
}
Expand description
Options related to inlining.
Fields§
§always_inline_max_size: u32
Function size at which we always inline.
Default: 2
.
one_caller_inline_max_size: u32
Function size which we inline when there is only one caller.
Default: u32::MAX
.
flexible_inline_max_size: u32
Function size above which we generally never inline.
Default: 20
.
allow_functions_with_loops: bool
Functions with loops are usually not inlined.
Default: false
.
partial_inlining_ifs: u32
The number of if
s to allow partial inlining of their conditions.
Default: 0
.
Trait Implementations§
source§impl Clone for InliningOptions
impl Clone for InliningOptions
source§fn clone(&self) -> InliningOptions
fn clone(&self) -> InliningOptions
Returns a copy 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 InliningOptions
impl Debug for InliningOptions
source§impl Default for InliningOptions
impl Default for InliningOptions
source§fn default() -> InliningOptions
fn default() -> InliningOptions
Returns the “default value” for a type. Read more
impl Copy for InliningOptions
Auto Trait Implementations§
impl Freeze for InliningOptions
impl RefUnwindSafe for InliningOptions
impl Send for InliningOptions
impl Sync for InliningOptions
impl Unpin for InliningOptions
impl UnwindSafe for InliningOptions
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