llvm::TimePassesHandler

Implements -time-passes timing for the new pass manager.

Synopsis

Declared in <llvm/IR/PassTimingInfo.h>

class TimePassesHandler;

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.

Member Functions

NameDescription
TimePassesHandler [constructor]Constructors
operator= [deleted]Copy assignment is deleted; this handler is unique per compilation.
print Prints out timing information and then resets the timers.
registerCallbacks Register before/after pass and analysis timing callbacks on PIC.
setOutStream Set a custom output stream for subsequent reporting.

Static Data Members

NameDescription
AnalysisGroupDesc Timer group description for analysis execution timing.
AnalysisGroupName Timer group name for analysis execution timing.
PassGroupDesc Timer group description for pass execution timing.
PassGroupName Timer group name for pass execution timing.