llvm-project/llvm/lib/ProfileData
Rong Xu 33c76c0cc2 [PGO] Differentiate Clang instrumentation and IR level instrumentation profiles
This patch uses one bit in profile version to differentiate Clang
instrumentation and IR level instrumentation profiles.

PGOInstrumenation generates a COMDAT variable __llvm_profile_raw_version so
that the compiler runtime can set the right profile kind.
For Maco-O platform, we generate the variable as linkonce_odr linkage as
COMDAT is not supported.

PGOInstrumenation now checks this bit to make sure it's an IR level
instrumentation profile.

The patch was submitted as r260164 but reverted due to a Darwin test breakage.
Original Differential Revision: http://reviews.llvm.org/D15540

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

llvm-svn: 260385
2016-02-10 17:18:30 +00:00
..
CMakeLists.txt Refactor profile summary support code. NFC. 2016-02-04 23:34:31 +00:00
CoverageMapping.cpp Move coveragemap_error enum into coverage namespace and InstrProf.h /NFC 2016-01-10 21:56:33 +00:00
CoverageMappingReader.cpp [PGO] Enable compression in pgo instrumentation 2016-02-08 18:13:49 +00:00
CoverageMappingWriter.cpp Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
InstrProf.cpp Refactor PGO function naming and MD5 hashing support out of ProfileData 2016-02-09 05:12:44 +00:00
InstrProfReader.cpp [PGO] Differentiate Clang instrumentation and IR level instrumentation profiles 2016-02-10 17:18:30 +00:00
InstrProfWriter.cpp [PGO] Differentiate Clang instrumentation and IR level instrumentation profiles 2016-02-10 17:18:30 +00:00
LLVMBuild.txt LLVMProfileData: Update LLVMBuild.txt corresponding to r217437. 2014-09-09 15:00:13 +00:00
ProfileSummary.cpp Refactor profile summary support code. NFC. 2016-02-04 23:34:31 +00:00
SampleProf.cpp Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 20:50:44 +00:00
SampleProfReader.cpp [PGO] Handle and report overflow during profile merge for all types of data 2015-12-16 21:45:43 +00:00
SampleProfWriter.cpp [ProfileData] Add unit test infrastructure for sample profile reader/writer 2015-12-10 17:21:42 +00:00