LLVM  12.0.0git
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)
 
void setOutStream (raw_ostream &OutStream)
 Set a custom output stream for subsequent reporting. More...
 

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 49 of file PassTimingInfo.h.

Constructor & Destructor Documentation

◆ TimePassesHandler() [1/2]

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

Definition at line 185 of file PassTimingInfo.cpp.

Referenced by ~TimePassesHandler().

◆ ~TimePassesHandler()

llvm::TimePassesHandler::~TimePassesHandler ( )
inline

Destructor handles the print action if it has not been handled before.

Definition at line 76 of file PassTimingInfo.h.

References LLVM_DUMP_METHOD, operator=(), print(), registerCallbacks(), setOutStream(), and TimePassesHandler().

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

◆ registerCallbacks()

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

◆ setOutStream()

void llvm::TimePassesHandler::setOutStream ( raw_ostream OutStream)

Set a custom output stream for subsequent reporting.

Definition at line 188 of file PassTimingInfo.cpp.

Referenced by ~TimePassesHandler().


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