class TimePassesHandler
Declaration
class TimePassesHandler { /* full declaration omitted */ };
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.
Declared at: llvm/include/llvm/IR/PassTimingInfo.h:49
Method Overview
- public TimePassesHandler(bool Enabled = TimePassesIsEnabled)
- public TimePassesHandler(const llvm::TimePassesHandler &)
- public void print()
- public void registerCallbacks(llvm::PassInstrumentationCallbacks & PIC)
- public void setOutStream(llvm::raw_ostream & OutStream)
- public ~TimePassesHandler()
Methods
¶TimePassesHandler(
bool Enabled = TimePassesIsEnabled)
TimePassesHandler(
bool Enabled = TimePassesIsEnabled)
Declared at: llvm/include/llvm/IR/PassTimingInfo.h:75
Parameters
- bool Enabled = TimePassesIsEnabled
¶TimePassesHandler(const llvm::TimePassesHandler&)
TimePassesHandler(const llvm::TimePassesHandler&)
Declared at: llvm/include/llvm/IR/PassTimingInfo.h:84
Parameters
- const llvm::TimePassesHandler&
¶void print()
void print()
Description
Prints out timing information and then resets the timers.
Declared at: llvm/include/llvm/IR/PassTimingInfo.h:81
¶void registerCallbacks(
llvm::PassInstrumentationCallbacks& PIC)
void registerCallbacks(
llvm::PassInstrumentationCallbacks& PIC)
Declared at: llvm/include/llvm/IR/PassTimingInfo.h:87
Parameters
¶void setOutStream(llvm::raw_ostream& OutStream)
void setOutStream(llvm::raw_ostream& OutStream)
Description
Set a custom output stream for subsequent reporting.
Declared at: llvm/include/llvm/IR/PassTimingInfo.h:90
Parameters
- llvm::raw_ostream& OutStream
¶~TimePassesHandler()
~TimePassesHandler()
Description
Destructor handles the print action if it has not been handled before.
Declared at: llvm/include/llvm/IR/PassTimingInfo.h:78