summaryrefslogtreecommitdiff
path: root/lib/profile/InstrProfiling.h
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-03-03 18:54:46 +0000
committerXinliang David Li <davidxl@google.com>2016-03-03 18:54:46 +0000
commitb39df906a7c587a7709ed95b1708717a6446c388 (patch)
tree115f2c50ca9fe1eefd2faf04215d0361b4b89a01 /lib/profile/InstrProfiling.h
parentece56f52345a0d53c440dda852e6e59ff7d4512b (diff)
[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
Diffstat (limited to 'lib/profile/InstrProfiling.h')
-rw-r--r--lib/profile/InstrProfiling.h9
1 files changed, 9 insertions, 0 deletions
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
@@ -63,6 +63,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.
*
* Records the target value for the CounterIndex if not seen before. Otherwise,