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

Fedor Sergeev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 14 07:55:37 PDT 2019


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

TimePassesHandler object (implementation of time-passes for new pass manager)
gains ability to report into a stream customizable per-instance (per pipeline).

By default it still reports into the file denoted by -info-output-file option.

Current intended use is to specify separate time-passes output stream per each compilation,
setting up TimePasses member of StandardInstrumentation during PassBuilder setup.
That allows to get independent non-overlapping pass-times reports for parallel
independent compilations.


Repository:
  rL LLVM

https://reviews.llvm.org/D59366

Files:
  include/llvm/IR/PassTimingInfo.h
  include/llvm/Passes/StandardInstrumentations.h
  lib/IR/PassTimingInfo.cpp
  test/Other/time-passes.ll
  tools/opt/NewPMDriver.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59366.190631.patch
Type: text/x-patch
Size: 4449 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190314/f56631ec/attachment.bin>


More information about the llvm-commits mailing list