pub enum CompilerOptimizationLevel {
O0,
O1,
O2,
O3,
Os,
Oz,
}
Expand description
Defines WasmEdge AOT compiler optimization level.
Variants§
O0
Disable as many optimizations as possible.
O1
Optimize quickly without destroying debuggability.
O2
Optimize for fast execution as much as possible without triggering significant incremental compile time or code size growth.
O3
Optimize for fast execution as much as possible.
Os
Optimize for small code size as much as possible without triggering significant incremental compile time or execution time slowdowns.
Oz
Optimize for small code size as much as possible.
Trait Implementations§
Source§impl Clone for CompilerOptimizationLevel
impl Clone for CompilerOptimizationLevel
Source§fn clone(&self) -> CompilerOptimizationLevel
fn clone(&self) -> CompilerOptimizationLevel
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 CompilerOptimizationLevel
impl Debug for CompilerOptimizationLevel
Source§impl From<i32> for CompilerOptimizationLevel
impl From<i32> for CompilerOptimizationLevel
Source§fn from(val: i32) -> CompilerOptimizationLevel
fn from(val: i32) -> CompilerOptimizationLevel
Converts to this type from the input type.
Source§impl From<u32> for CompilerOptimizationLevel
impl From<u32> for CompilerOptimizationLevel
Source§fn from(val: u32) -> CompilerOptimizationLevel
fn from(val: u32) -> CompilerOptimizationLevel
Converts to this type from the input type.
impl Copy for CompilerOptimizationLevel
impl Eq for CompilerOptimizationLevel
impl StructuralPartialEq for CompilerOptimizationLevel
Auto Trait Implementations§
impl Freeze for CompilerOptimizationLevel
impl RefUnwindSafe for CompilerOptimizationLevel
impl Send for CompilerOptimizationLevel
impl Sync for CompilerOptimizationLevel
impl Unpin for CompilerOptimizationLevel
impl UnwindSafe for CompilerOptimizationLevel
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