mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 07:28:52 +00:00
Remove some deadcode and tqdm
This commit is contained in:
@@ -5,7 +5,6 @@ use ordered_float::OrderedFloat;
|
||||
use thiserror::Error;
|
||||
|
||||
use crate::ir::*;
|
||||
use crate::*;
|
||||
|
||||
#[derive(Debug, PartialEq, Clone)]
|
||||
pub enum Value {
|
||||
|
||||
@@ -3,9 +3,9 @@ use std::path::Path;
|
||||
|
||||
use lang_c::*;
|
||||
|
||||
use crate::Translate;
|
||||
use crate::ir::*;
|
||||
use crate::utils::AssertSupported;
|
||||
use crate::{Translate, *};
|
||||
|
||||
peg::parser! {
|
||||
grammar ir_parse() for str {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
use crate::*;
|
||||
|
||||
mod deadcode;
|
||||
mod gvn;
|
||||
mod mem2reg;
|
||||
|
||||
@@ -194,9 +194,11 @@ pub fn test_irgen(path: &Path) {
|
||||
println!("clang (expected): {}, kecc: {}", status as u8, value as u8);
|
||||
if status as u8 != value as u8 {
|
||||
let mut stderr = io::stderr().lock();
|
||||
stderr.write_fmt(format_args!(
|
||||
"[irgen] Failed to correctly generate {path:?}.\n\n [incorrect ir]"
|
||||
));
|
||||
stderr
|
||||
.write_fmt(format_args!(
|
||||
"[irgen] Failed to correctly generate {path:?}.\n\n [incorrect ir]"
|
||||
))
|
||||
.unwrap();
|
||||
write(&ir, &mut stderr).unwrap();
|
||||
drop(stderr);
|
||||
panic!("[irgen]");
|
||||
|
||||
Reference in New Issue
Block a user