Add timing for several new-backend stages.

This PR adds a bit more granularity to the output of e.g. `clif-util
compile -T`, indicating how much time is spent in VCode lowering and
various other new-backend-specific tasks.
This commit is contained in:
Chris Fallin
2020-07-22 19:55:00 -07:00
parent 87eb4392c4
commit 2b9fefe89a
4 changed files with 18 additions and 2 deletions

View File

@@ -20,6 +20,7 @@
use crate::ir::{self, types, SourceLoc};
use crate::machinst::*;
use crate::settings;
use crate::timing;
use regalloc::Function as RegallocFunction;
use regalloc::Set as RegallocSet;
@@ -424,6 +425,7 @@ impl<I: VCodeInst> VCode<I> {
where
I: MachInstEmit,
{
let _tt = timing::vcode_emit();
let mut buffer = MachBuffer::new();
let mut state = I::State::new(&*self.abi);