21 if (LastTimer && LastTimer->isRunning()) {
22 LastTimer->stopTimer();
29 LastTimer = std::make_unique<Timer>(
"",
Name, *TimingGroup);
30 LastTimer->startTimer();
37 assert(LastTimer &&
"No phase timer was started");
38 LastTimer->stopTimer();
50 if (!TimingGroup || !BackendTimer)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
StringRef - Represent a constant reference to a string, i.e.
void stopTimer()
Stop timing a phase.
void startTimer(StringRef Name)
Start timing a phase. Automatically stops any previous phase timer.
void stopBackendTimer()
Stop timing the overall backend.
void startBackendTimer(StringRef Name)
Start timing the overall backend.
This is an optimization pass for GlobalISel generic memory operations.