mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 20:14:45 +00:00
17 lines
410 B
Rust
17 lines
410 B
Rust
use crate::hir::HIR;
|
|
use crate::error::{CompileWarnings};
|
|
|
|
#[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!()
|
|
}
|
|
}
|