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

Methods

TimePassesHandler(
    bool Enabled = TimePassesIsEnabled)

Declared at: llvm/include/llvm/IR/PassTimingInfo.h:75

Parameters

bool Enabled = TimePassesIsEnabled

TimePassesHandler(const llvm::TimePassesHandler&)

Declared at: llvm/include/llvm/IR/PassTimingInfo.h:84

Parameters

const llvm::TimePassesHandler&

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)

Declared at: llvm/include/llvm/IR/PassTimingInfo.h:87

Parameters

llvm::PassInstrumentationCallbacks& PIC

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

Description

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

Declared at: llvm/include/llvm/IR/PassTimingInfo.h:78