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

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

Constructor & Destructor Documentation

◆ TimePassesHandler() [1/3]

llvm::TimePassesHandler::TimePassesHandler ( )

Definition at line 200 of file PassTimingInfo.cpp.

◆ TimePassesHandler() [2/3]

llvm::TimePassesHandler::TimePassesHandler ( bool  Enabled,
bool  PerRun = false 
)

Definition at line 195 of file PassTimingInfo.cpp.

◆ ~TimePassesHandler()

llvm::TimePassesHandler::~TimePassesHandler ( )
inline

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

Definition at line 78 of file PassTimingInfo.h.

References print().

◆ TimePassesHandler() [3/3]

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

Member Function Documentation

◆ operator=()

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

◆ print()

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

◆ 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 203 of file PassTimingInfo.cpp.


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