This commit is contained in:
Jeehoon Kang
2021-06-21 18:45:39 +00:00
parent 2d8d1e7fb4
commit 4535b2ef6f
28 changed files with 696 additions and 370 deletions

View File

@@ -22,15 +22,15 @@ pub trait Optimize<T> {
pub type O0 = Null;
pub type O1 = Repeat<(SimplifyCfg, (Mem2reg, (Gvn, Deadcode)))>;
#[derive(Default)]
#[derive(Default, Debug)]
pub struct Null {}
#[derive(Default)]
#[derive(Default, Debug)]
pub struct Repeat<O> {
inner: O,
}
#[derive(Default)]
#[derive(Default, Debug)]
pub struct FunctionPass<T: Optimize<ir::FunctionDefinition>> {
inner: T,
}