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.
source§impl PartialEq for CompilerOptimizationLevel
impl PartialEq for CompilerOptimizationLevel
source§fn eq(&self, other: &CompilerOptimizationLevel) -> bool
fn eq(&self, other: &CompilerOptimizationLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CompilerOptimizationLevel
impl Eq for CompilerOptimizationLevel
impl StructuralEq for CompilerOptimizationLevel
impl StructuralPartialEq for CompilerOptimizationLevel
Auto Trait Implementations§
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