Struct erg_compiler::optimize::HIROptimizer
source · pub struct HIROptimizer { /* private fields */ }
Expand description
Optimizes a HIR
.
This should not be used in the context of sequential execution (e.g. REPL), since it assumes that the given code is all there is.
The optimizer determines the optimization level using opt_level
in cfg: ErgConfig
.
Implementations§
source§impl HIROptimizer
impl HIROptimizer
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HIROptimizer
impl Send for HIROptimizer
impl Sync for HIROptimizer
impl Unpin for HIROptimizer
impl !UnwindSafe for HIROptimizer
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