16 #ifndef LLVM_IR_PASSTIMINGINFO_H 17 #define LLVM_IR_PASSTIMINGINFO_H 29 class PassInstrumentationCallbacks;
52 using PassInvocationID = std::pair<StringRef, unsigned>;
96 unsigned nextPassID(
StringRef PassID) {
return ++PassIDCountMap[PassID]; }
~TimePassesHandler()
Destructor handles the print action if it has not been handled before.
void registerCallbacks(PassInstrumentationCallbacks &PIC)
This class represents lattice values for constants.
void operator=(const TimePassesHandler &)=delete
void print()
Prints out timing information and then resets the timers.
void reportAndResetTimings()
If -time-passes has been specified, report the timings immediately and then reset the timers to zero...
Timer * getPassTimer(Pass *)
Request the timer for this legacy-pass-manager's pass instance.
TimePassesHandler(bool Enabled=TimePassesIsEnabled)
This class is used to track the amount of time spent between invocations of its startTimer()/stopTime...
print lazy value Lazy Value Info Printer Pass
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
The TimerGroup class is used to group together related timers into a single report that is printed wh...
This class implements -time-passes functionality for new pass manager.
This class manages callbacks registration, as well as provides a way for PassInstrumentation to pass ...
StringRef - Represent a constant reference to a string, i.e.
bool TimePassesIsEnabled
If the user specifies the -time-passes argument on an LLVM tool command line then the value of this b...