1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
use crate::error::CompileWarnings;
use crate::hir::HIR;
#[derive(Debug)]
pub struct HIROptimizer {}
impl HIROptimizer {
pub fn fold_constants(&mut self, mut _hir: HIR) -> HIR {
todo!()
}
pub fn eliminate_unused_variables(&mut self, mut _hir: HIR) -> (HIR, CompileWarnings) {
todo!()
}
pub fn eliminate_dead_code(&mut self, mut _hir: HIR) -> (HIR, CompileWarnings) {
todo!()
}
}