1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/include/llvm/ProfileData
Teresa Johnson e1affa2f8c [ThinLTO] Support for reference graph in per-module and combined summary.
Summary:
This patch adds support for including a full reference graph including
call graph edges and other GV references in the summary.

The reference graph edges can be used to make importing decisions
without materializing any source modules, can be used in the plugin
to make file staging decisions for distributed build systems, and is
expected to have other uses.

The call graph edges are recorded in each function summary in the
bitcode via a list of <CalleeValueIds, StaticCount> tuples when no PGO
data exists, or <CalleeValueId, StaticCount, ProfileCount> pairs when
there is PGO, where the ValueId can be mapped to the function GUID via
the ValueSymbolTable. In the function index in memory, the call graph
edges reference the target via the CalleeGUID instead of the
CalleeValueId.

The reference graph edges are recorded in each summary record with a
list of referenced value IDs, which can be mapped to value GUID via the
ValueSymbolTable.

Addtionally, a new summary record type is added to record references
from global variable initializers. A number of bitcode records and data
structures have been renamed to reflect the newly expanded scope of the
summary beyond functions. More cleanup will follow.

Reviewers: joker.eph, davidxl

Subscribers: joker.eph, llvm-commits

Differential Revision: http://reviews.llvm.org/D17212

llvm-svn: 263275
2016-03-11 18:52:24 +00:00
..
CoverageMapping.h [PGO] coverage map bug with cov data produced for 32bit target 2016-02-10 17:57:08 +00:00
CoverageMappingReader.h [Coverage] move a local var to be BinaryCoverageReader's member 2016-01-18 06:48:01 +00:00
CoverageMappingWriter.h [cleanup] Re-sort all the #include lines in LLVM using 2015-01-14 11:23:27 +00:00
InstrProf.h Add profile summary support for sample profile. 2016-02-19 03:15:33 +00:00
InstrProfData.inc Add forward declarations /NFC 2016-02-26 00:54:08 +00:00
InstrProfReader.h Add a profile summary class specific to instrumentation profiles. 2016-02-17 18:18:47 +00:00
InstrProfWriter.h [PGO] Differentiate Clang instrumentation and IR level instrumentation profiles 2016-02-10 17:18:30 +00:00
ProfileCommon.h [ThinLTO] Support for reference graph in per-module and combined summary. 2016-03-11 18:52:24 +00:00
SampleProf.h Use LineLocation instead of CallsiteLocation to index callsite profile. 2016-03-03 18:09:32 +00:00
SampleProfReader.h Add profile summary support for sample profile. 2016-02-19 03:15:33 +00:00
SampleProfWriter.h Use LineLocation instead of CallsiteLocation to index callsite profile. 2016-03-03 18:09:32 +00:00