[PATCH] D13758: Instr PGO code small restructuring

David Li via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 14 16:52:07 PDT 2015


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

In this clean up patch, 
1) key constant values (version, magic) and data structures related to raw and indexed profile format are moved into one centralized place: InstrProf.h.
2) Utility function such as MD5Hash computation is also moved to the common header to allow sharing by other components in the future
3) A header data structure is introduced for Indexed format so that the reader and writer can always be in sync
4) Added some comments to document different places where multiple definition of the data structure must be kept in sync (reader/writer, runtime, lowering etc).

No functional change is intended.

http://reviews.llvm.org/D13758

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13758.37425.patch
Type: text/x-patch
Size: 14455 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151014/207e95f2/attachment.bin>


More information about the llvm-commits mailing list