[PATCH] D14692: [PGO] Refactor common profile dumping code for File and Buffer API

David Li via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 15 22:31:25 PST 2015


davidxl created this revision.
davidxl added a reviewer: vsk.
davidxl added a subscriber: llvm-commits.

The implementation of the buffer API and File API share almost identical code causing lots of duplicate update work. This patch refactors the implementation using a writer callback mechanism. 

http://reviews.llvm.org/D14692

Files:
  lib/profile/CMakeLists.txt
  lib/profile/InstrProfilingBuffer.c
  lib/profile/InstrProfilingFile.c
  lib/profile/InstrProfilingInternal.h
  lib/profile/InstrProfilingWriter.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14692.40249.patch
Type: text/x-patch
Size: 11278 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151116/f3a78a8b/attachment-0001.bin>


More information about the llvm-commits mailing list