mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 07:28:52 +00:00
14 lines
290 B
Rust
14 lines
290 B
Rust
use crate::opt::FunctionPass;
|
|
use crate::*;
|
|
|
|
pub type Gvn = FunctionPass<GvnInner>;
|
|
|
|
#[derive(Default)]
|
|
pub struct GvnInner {}
|
|
|
|
impl Optimize<ir::FunctionDefinition> for GvnInner {
|
|
fn optimize(&mut self, _code: &mut ir::FunctionDefinition) -> bool {
|
|
todo!("homework 5")
|
|
}
|
|
}
|