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<CompilerOptimizationLevel> for i32
impl From<CompilerOptimizationLevel> for i32
source§fn from(val: CompilerOptimizationLevel) -> i32
fn from(val: CompilerOptimizationLevel) -> i32
Converts to this type from the input type.
source§impl From<CompilerOptimizationLevel> for u32
impl From<CompilerOptimizationLevel> for u32
source§fn from(val: CompilerOptimizationLevel) -> u32
fn from(val: CompilerOptimizationLevel) -> u32
Converts to this type from the input type.
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<CompilerOptimizationLevel> for CompilerOptimizationLevel
impl PartialEq<CompilerOptimizationLevel> 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 ==
.