From b39df906a7c587a7709ed95b1708717a6446c388 Mon Sep 17 00:00:00 2001 From: Xinliang David Li Date: Thu, 3 Mar 2016 18:54:46 +0000 Subject: [PGO] Add API for profile merge from buffer Differential Revision: http://reviews.llvm.org/D17831 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@262644 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/profile/InstrProfiling.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/profile/InstrProfiling.h') diff --git a/lib/profile/InstrProfiling.h b/lib/profile/InstrProfiling.h index fdb8a704f..fe6ec36e4 100644 --- a/lib/profile/InstrProfiling.h +++ b/lib/profile/InstrProfiling.h @@ -62,6 +62,15 @@ uint64_t *__llvm_profile_end_counters(void); */ void __llvm_profile_reset_counters(void); +/*! + * \brief Read profile data form buffer and merge with + * in-process profile counters. The client is expected to + * have checked or already knows the profile data in the + * buffer matches the in-process counter structure before + * calling it. + */ +void __llvm_profile_merge_from_buffer(const char *Profile, uint64_t Size); + /*! * \brief Counts the number of times a target value is seen. * -- cgit v1.2.3