LLVM 20.0.0git
|
This class implements -time-passes functionality for new pass manager. More...
#include "llvm/IR/PassTimingInfo.h"
Public Member Functions | |
TimePassesHandler () | |
TimePassesHandler (bool Enabled, bool PerRun=false) | |
~TimePassesHandler () | |
Destructor handles the print action if it has not been handled before. | |
void | print () |
Prints out timing information and then resets the timers. | |
TimePassesHandler (const TimePassesHandler &)=delete | |
void | operator= (const TimePassesHandler &)=delete |
void | registerCallbacks (PassInstrumentationCallbacks &PIC) |
void | setOutStream (raw_ostream &OutStream) |
Set a custom output stream for subsequent reporting. | |
This class implements -time-passes functionality for new pass manager.
It provides the pass-instrumentation callbacks that measure the pass execution time. They collect timing info into individual timers as passes are being run. At the end of its life-time it prints the resulting timing report.
Definition at line 44 of file PassTimingInfo.h.
llvm::TimePassesHandler::TimePassesHandler | ( | ) |
Definition at line 200 of file PassTimingInfo.cpp.
Definition at line 195 of file PassTimingInfo.cpp.
|
inline |
Destructor handles the print action if it has not been handled before.
Definition at line 78 of file PassTimingInfo.h.
References print().
|
delete |
|
delete |
void llvm::TimePassesHandler::print | ( | ) |
Prints out timing information and then resets the timers.
Definition at line 207 of file PassTimingInfo.cpp.
References llvm::CreateInfoOutputFile(), OS, and llvm::TimerGroup::print().
Referenced by ~TimePassesHandler().
void llvm::TimePassesHandler::registerCallbacks | ( | PassInstrumentationCallbacks & | PIC | ) |
Definition at line 311 of file PassTimingInfo.cpp.
References P, PIC, llvm::PassInstrumentationCallbacks::registerAfterAnalysisCallback(), llvm::PassInstrumentationCallbacks::registerAfterPassCallback(), llvm::PassInstrumentationCallbacks::registerAfterPassInvalidatedCallback(), llvm::PassInstrumentationCallbacks::registerBeforeAnalysisCallback(), and llvm::PassInstrumentationCallbacks::registerBeforeNonSkippedPassCallback().
Referenced by llvm::StandardInstrumentations::registerCallbacks().
void llvm::TimePassesHandler::setOutStream | ( | raw_ostream & | OutStream | ) |
Set a custom output stream for subsequent reporting.
Definition at line 203 of file PassTimingInfo.cpp.