[PATCH] Add show and merge tools for sample PGO profiles.

Diego Novillo dnovillo at google.com
Fri Oct 31 14:08:36 PDT 2014


Hi bogner,

This patch extends the 'show' and 'merge' commands in llvm-profdata to handle
sample PGO formats. Using the 'merge' command it is now possible to convert
one sample PGO format to another.

The only format that is currently not working is 'gcc'. I still need to
implement support for it in lib/ProfileData.

The changes in the sample profile support classes are needed for the
merge operation.

http://reviews.llvm.org/D6065

Files:
  include/llvm/ProfileData/SampleProf.h
  include/llvm/ProfileData/SampleProfReader.h
  include/llvm/ProfileData/SampleProfWriter.h
  lib/ProfileData/SampleProf.cpp
  lib/ProfileData/SampleProfReader.cpp
  lib/ProfileData/SampleProfWriter.cpp
  test/tools/llvm-profdata/Inputs/sample-profile.proftext
  test/tools/llvm-profdata/sample-profile-basic.test
  tools/llvm-profdata/llvm-profdata.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6065.15645.patch
Type: text/x-patch
Size: 28397 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141031/bb1bf02c/attachment.bin>


More information about the llvm-commits mailing list