[PATCH] D13843: Use ProfileData/InstrProfData.inc template file to define PGO runtime types

David Li via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 16 20:49:51 PDT 2015


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

In r250574, a template file is introduced to be a centralized place to define core PGO data structures that are shared between runtime, reader, and writer. In this patch, the file is used to replace 'hard' coded definitions so that they can always be in sync. Changes in the future will only (mostly) need to touch one file only (the template file).

A couple of notes:
1) clang FE change to use the the template file (will be in a different patch)
2) find a way to share header files between LLVM compiler and compiler_rt. 
3) more portable way to specify packed struct.

http://reviews.llvm.org/D13843

Files:
  include/llvm/ProfileData/InstrProf.h
  include/llvm/ProfileData/InstrProfData.inc
  include/llvm/ProfileData/InstrProfReader.h
  lib/ProfileData/CoverageMappingReader.cpp
  lib/Transforms/Instrumentation/InstrProfiling.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13843.37671.patch
Type: text/x-patch
Size: 8059 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151017/c5e468af/attachment.bin>


More information about the llvm-commits mailing list