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