Enum gccjit::OptimizationLevel
source · #[repr(C)]pub enum OptimizationLevel {
None = 0,
Limited = 1,
Standard = 2,
Aggressive = 3,
}
Expand description
Represents an optimization level that the JIT compiler will use when compiling your code.
Variants§
None = 0
No optimizations are applied.
Limited = 1
Optimizies for both speed and code size, but doesn’t apply any optimizations that take extended periods of time.
Standard = 2
Performs all optimizations that do not involve a tradeoff of code size for speed.
Aggressive = 3
Performs all optimizations at the Standard level, as well as function inlining, loop vectorization, some loop unrolling, and various other optimizations.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for OptimizationLevel
impl Send for OptimizationLevel
impl Sync for OptimizationLevel
impl Unpin for OptimizationLevel
impl UnwindSafe for OptimizationLevel
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