Rename Register to GPReg and add return regs to backend

This commit is contained in:
Brendan Hansknecht 2020-11-20 17:17:04 -08:00
parent 65e14f2941
commit 6da6faa35f
3 changed files with 114 additions and 117 deletions

View file

@ -90,8 +90,11 @@ where
fn build_proc(&mut self, proc: Proc<'a>) -> Result<(&'a [u8], &[Relocation]), String> {
self.reset();
// TODO: let the backend know of all the arguments.
// let start = std::time::Instant::now();
self.calculate_last_seen(&proc.body);
//println!("{:?}", self.last_seen_map());
// let duration = start.elapsed();
// println!("Time to calculate lifetimes: {:?}", duration);
// println!("{:?}", self.last_seen_map());
self.build_stmt(&proc.body)?;
self.finalize()
}