[PATCH] D14786: [llvm-profdata] Add merge() to InstrProfRecord

Nathan Slingerland via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 18 13:52:01 PST 2015


slingn created this revision.
slingn added reviewers: dnovillo, bogner, davidxl.
slingn added a subscriber: llvm-commits.

This change refactors two aspects of InstrProfRecord:

1) Add a merge() method to InstrProfRecord (previously InstrProfWriter combineInstrProfRecords()) in order to better encapsulate this functionality and to make the InstrProfRecord and SampleRecord APIs more consistent.

2) Make InstrProfRecord mergeValueProfData() a private method since it is only ever called internally by merge().

http://reviews.llvm.org/D14786

Files:
  include/llvm/ProfileData/InstrProf.h
  lib/ProfileData/InstrProfWriter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14786.40556.patch
Type: text/x-patch
Size: 6020 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151118/7518123f/attachment.bin>


More information about the llvm-commits mailing list