mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 23:18:48 +00:00
18 lines
415 B
Rust
18 lines
415 B
Rust
use core::ops::{Deref, DerefMut};
|
|
use std::collections::{BTreeMap, HashMap, HashSet};
|
|
|
|
use crate::ir::*;
|
|
use crate::opt::opt_utils::*;
|
|
use crate::opt::*;
|
|
|
|
pub type Mem2reg = FunctionPass<Mem2regInner>;
|
|
|
|
#[derive(Default, Clone, Copy, Debug)]
|
|
pub struct Mem2regInner {}
|
|
|
|
impl Optimize<FunctionDefinition> for Mem2regInner {
|
|
fn optimize(&mut self, code: &mut FunctionDefinition) -> bool {
|
|
todo!()
|
|
}
|
|
}
|