Format and stuff

This commit is contained in:
Janggun Lee
2025-01-23 19:11:43 +09:00
parent fcb6ca2538
commit 00c64a5297
22 changed files with 201 additions and 163 deletions

View File

@@ -1,6 +1,9 @@
use core::ops::{Deref, DerefMut};
use std::collections::{BTreeMap, HashMap, HashSet};
use crate::ir::*;
use crate::opt::FunctionPass;
use crate::*;
use crate::opt::opt_utils::*;
use crate::opt::*;
pub type Mem2reg = FunctionPass<Mem2regInner>;
@@ -8,7 +11,7 @@ pub type Mem2reg = FunctionPass<Mem2regInner>;
pub struct Mem2regInner {}
impl Optimize<FunctionDefinition> for Mem2regInner {
fn optimize(&mut self, _code: &mut FunctionDefinition) -> bool {
todo!("Homework: Register Promotion")
fn optimize(&mut self, code: &mut FunctionDefinition) -> bool {
todo!()
}
}