mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 07:28:52 +00:00
Format and stuff
This commit is contained in:
@@ -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!()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user