LLVM  8.0.1
Public Member Functions | List of all members
llvm::TimePassesHandler Class Reference

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TimePassesHandler() [1/2]

llvm::TimePassesHandler::TimePassesHandler ( bool  Enabled = TimePassesIsEnabled)

Definition at line 182 of file PassTimingInfo.cpp.

Referenced by ~TimePassesHandler().

◆ ~TimePassesHandler()

llvm::TimePassesHandler::~TimePassesHandler ( )
inline

◆ TimePassesHandler() [2/2]

llvm::TimePassesHandler::TimePassesHandler ( const TimePassesHandler )
delete

Member Function Documentation

◆ operator=()

void llvm::TimePassesHandler::operator= ( const TimePassesHandler )
delete

Referenced by ~TimePassesHandler().

◆ print()

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().

◆ registerCallbacks()

void llvm::TimePassesHandler::registerCallbacks ( PassInstrumentationCallbacks PIC)

The documentation for this class was generated from the following files: