[PATCH] D59366: [NewPM][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 08:24:14 PDT 2019


fedor.sergeev updated this revision to Diff 190635.
fedor.sergeev added a comment.

As per discussion with @philip.pfaffe - owning output stream is rather strange for TimePasses object.
This ownership idea came from CreateInfoOutputFile design, as it returns new stream each time.

Now making OutStream being just a non-owning pointer and handling ownership ouside of TimePasses
(in NewPMDriver).


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59366/new/

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.190635.patch
Type: text/x-patch
Size: 4407 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190314/38e5945e/attachment.bin>


More information about the llvm-commits mailing list