erg/compiler/erg_compiler/optimize.rs
Shunsuke Shibayama 6726d93f65 Do cargo fmt
2022-08-13 07:02:07 +09:00

19 lines
430 B
Rust

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!()
}
}