LLVM
8.0.1
|
This class implements -time-passes functionality for new pass manager. More...
#include "llvm/IR/PassTimingInfo.h"
Public Member Functions | |
TimePassesHandler (bool Enabled=TimePassesIsEnabled) | |
~TimePassesHandler () | |
Destructor handles the print action if it has not been handled before. More... | |
void | print () |
Prints out timing information and then resets the timers. More... | |
TimePassesHandler (const TimePassesHandler &)=delete | |
void | operator= (const TimePassesHandler &)=delete |
void | registerCallbacks (PassInstrumentationCallbacks &PIC) |
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 48 of file PassTimingInfo.h.
llvm::TimePassesHandler::TimePassesHandler | ( | bool | Enabled = TimePassesIsEnabled | ) |
Definition at line 182 of file PassTimingInfo.cpp.
Referenced by ~TimePassesHandler().
|
inline |
Destructor handles the print action if it has not been handled before.
Definition at line 72 of file PassTimingInfo.h.
References llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::clear(), LLVM_DUMP_METHOD, operator=(), print(), registerCallbacks(), and TimePassesHandler().
|
delete |
|
delete |
Referenced by ~TimePassesHandler().
void llvm::TimePassesHandler::print | ( | ) |
Prints out timing information and then resets the timers.
Definition at line 185 of file PassTimingInfo.cpp.
References assert(), llvm::CreateInfoOutputFile(), llvm::dbgs(), llvm::Timer::hasTriggered(), I, llvm::Timer::isRunning(), LLVM_DUMP_METHOD, llvm::TimerGroup::print(), and llvm::Timer::startTimer().
Referenced by ~TimePassesHandler().
void llvm::TimePassesHandler::registerCallbacks | ( | PassInstrumentationCallbacks & | PIC | ) |
Definition at line 252 of file PassTimingInfo.cpp.
References P, llvm::PassInstrumentationCallbacks::registerAfterAnalysisCallback(), llvm::PassInstrumentationCallbacks::registerAfterPassCallback(), llvm::PassInstrumentationCallbacks::registerAfterPassInvalidatedCallback(), llvm::PassInstrumentationCallbacks::registerBeforeAnalysisCallback(), and llvm::PassInstrumentationCallbacks::registerBeforePassCallback().
Referenced by ~TimePassesHandler().