Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion llvm/include/llvm/Passes/StandardInstrumentations.h
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,9 @@ class StandardInstrumentations {
public:
StandardInstrumentations(LLVMContext &Context, bool DebugLogging,
bool VerifyEach = false,
PrintPassOptions PrintPassOpts = PrintPassOptions());
PrintPassOptions PrintPassOpts = PrintPassOptions(),
bool EnableTimePasses = false,
bool EnableTimePassesPerRun = false);

// Register all the standard instrumentation callbacks. If \p FAM is nullptr
// then PreservedCFGChecker is not enabled.
Expand Down
8 changes: 5 additions & 3 deletions llvm/lib/Passes/StandardInstrumentations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2442,10 +2442,12 @@ void DotCfgChangeReporter::registerCallbacks(

StandardInstrumentations::StandardInstrumentations(
LLVMContext &Context, bool DebugLogging, bool VerifyEach,
PrintPassOptions PrintPassOpts)
PrintPassOptions PrintPassOpts, bool EnableTimePasses,
bool EnableTimePassesPerRun)
: PrintPass(DebugLogging, PrintPassOpts),
OptNone(DebugLogging),
OptPassGate(Context),
TimePasses(TimePassesIsEnabled ? TimePassesIsEnabled : EnableTimePasses,
TimePassesPerRun ? TimePassesPerRun : EnableTimePassesPerRun),
OptNone(DebugLogging), OptPassGate(Context),
PrintChangedIR(PrintChanged == ChangePrinter::Verbose),
PrintChangedDiff(PrintChanged == ChangePrinter::DiffVerbose ||
PrintChanged == ChangePrinter::ColourDiffVerbose,
Expand Down