[llvm] [Profile] Add binary profile correlation to offload profile metadata at runtime. (PR #69493)

David Li via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 19 10:20:01 PDT 2023


================
@@ -53,6 +53,9 @@ uint64_t __llvm_profile_get_size_for_buffer(void) {
 COMPILER_RT_VISIBILITY
 uint64_t __llvm_profile_get_num_data(const __llvm_profile_data *Begin,
                                      const __llvm_profile_data *End) {
+  if ((__llvm_profile_get_version() & VARIANT_MASK_DBG_CORRELATE) ||
----------------
david-xl wrote:

Add another inline helper : hasCorrelation(..) and put it in the refactor patch.

https://github.com/llvm/llvm-project/pull/69493


More information about the llvm-commits mailing list