Add production of .llir and .mir -files for LLIR and MIR
This commit is contained in:
parent
b39b829061
commit
c643bb235f
@ -40,7 +40,7 @@ fn main() -> Result<(), std::io::Error> {
|
|||||||
fs::write(&llir_path, &llir).expect("Could not write LLIR-file!");
|
fs::write(&llir_path, &llir).expect("Could not write LLIR-file!");
|
||||||
println!("Output LLIR-file to {:?}\n", llir_path);
|
println!("Output LLIR-file to {:?}\n", llir_path);
|
||||||
fs::write(&mir_path, &mir).expect("Could not write MIR-file!");
|
fs::write(&mir_path, &mir).expect("Could not write MIR-file!");
|
||||||
println!("Output MIR-file to {:?}\n", llir_path);
|
println!("Output MIR-file to {:?}\n", mir_path);
|
||||||
println!(
|
println!(
|
||||||
"Compilation took: {:.2}ms\n",
|
"Compilation took: {:.2}ms\n",
|
||||||
(after.duration_since(before).unwrap().as_micros() as f32) / 1000.
|
(after.duration_since(before).unwrap().as_micros() as f32) / 1000.
|
||||||
|
Loading…
Reference in New Issue
Block a user