[PATCH] Re-factor sample profile reader into lib/ProfileData.

Diego Novillo dnovillo at google.com
Mon Sep 8 12:31:19 PDT 2014


Hi bogner, echristo,

This patch moves the profile reading logic out of the Sample Profile
transformation into a generic profile reader facility in
lib/ProfileData.

The intent is to use this new reader to implement a sample profile
reader/writer that can be used to convert sample profiles from external
sources into LLVM.

This first patch introduces no functional changes. It moves the profile
reading code from lib/Transforms/SampleProfile.cpp into
lib/ProfileData/SampleProfReader.cpp.

In subsequent patches I will:

- Add a bitcode format for sample profiles to allow for more efficient
  encoding of the profile.
- Add a writer for both text and bitcode format profiles.
- Add a 'convert' command to llvm-profdata to be able to convert between
  the two (and serve as entry point for other sample profile formats).

http://reviews.llvm.org/D5250

Files:
  include/llvm/IR/DiagnosticInfo.h
  include/llvm/ProfileData/SampleProfReader.h
  lib/ProfileData/CMakeLists.txt
  lib/ProfileData/SampleProfReader.cpp
  lib/Transforms/Scalar/LLVMBuild.txt
  lib/Transforms/Scalar/SampleProfile.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5250.13412.patch
Type: text/x-patch
Size: 45573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140908/8d71d5e4/attachment.bin>


More information about the llvm-commits mailing list