Update homework 1 and 2

This commit is contained in:
Jeehoon Kang
2020-03-26 03:38:20 +09:00
parent 241a66fcc1
commit 8938a7ad8f
40 changed files with 5171 additions and 1504 deletions

View File

@@ -1,37 +1,24 @@
#![deny(warnings)]
#![allow(unreachable_code)]
mod tests;
mod utils;
pub mod asm;
pub mod ir;
mod codegen;
mod irgen;
mod optimize;
mod parse;
pub mod run_ir;
mod write_asm;
mod write_base;
mod write_c;
mod write_ir;
pub mod assert_ast_equiv;
pub mod write_c_test;
mod asm;
mod c;
mod ir;
mod asmgen;
mod irgen;
mod opt;
pub use tests::*;
pub use utils::*;
pub use write_base::write;
pub use asm::Asm;
pub use c::Parse;
pub use codegen::Codegen;
pub use asmgen::Asmgen;
pub use irgen::Irgen;
pub use optimize::{O0, O1};
pub use parse::Parse;
pub use utils::{Optimize, Repeat, Translate};
pub use write_asm::write_asm;
pub use write_c::write_c;
pub use write_ir::write_ir;
pub use assert_ast_equiv::assert_ast_equiv;
pub use write_c_test::write_c_test;
pub use opt::{Gvn, Mem2reg, Optimize, Repeat, SimplifyCfg, Translate, O0, O1};