[PATCH] D59416: [Legacy][TimePasses] allow -time-passes reporting into a custom stream

Fedor Sergeev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 15 08:02:25 PDT 2019


fedor.sergeev created this revision.
fedor.sergeev added reviewers: philip.pfaffe, chandlerc.
Herald added a subscriber: kristina.
Herald added a project: LLVM.

As a followup to newpm -time-passes fix (D59366 <https://reviews.llvm.org/D59366>), now adding a similar
functionality to legacy time-passes.

Enhancing llvm::reportAndResetTimings to accept an optional stream
for reporting output. By default it still reports into info-output-file.

Also fixing to actually reset after printing as declared.


Repository:
  rL LLVM

https://reviews.llvm.org/D59416

Files:
  include/llvm/IR/PassTimingInfo.h
  include/llvm/Support/Timer.h
  lib/IR/PassTimingInfo.cpp
  lib/Support/Timer.cpp
  unittests/IR/TimePassesTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59416.190826.patch
Type: text/x-patch
Size: 8250 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190315/9ef4854f/attachment.bin>


More information about the llvm-commits mailing list