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

No files matched your search

+3 -3
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,
}