15 #ifndef LLVM_IR_PASSTIMINGINFO_H 16 #define LLVM_IR_PASSTIMINGINFO_H 28 class PassInstrumentationCallbacks;
53 using PassInvocationID = std::pair<StringRef, unsigned>;
100 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
#define LLVM_DUMP_METHOD
Mark debug helper function definitions like dump() that should not be stripped from debug builds...
void setOutStream(raw_ostream &OutStream)
Set a custom output stream for subsequent reporting.
void print()
Prints out timing information and then resets the timers.
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...
void reportAndResetTimings(raw_ostream *OutStream=nullptr)
If -time-passes has been specified, report the timings immediately and then reset the timers to zero...
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 implements an extremely fast bulk output stream that can only output to a stream...
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...