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

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


================
@@ -267,6 +267,9 @@ uint64_t __llvm_profile_get_num_data(const __llvm_profile_data *Begin,
 uint64_t __llvm_profile_get_data_size(const __llvm_profile_data *Begin,
                                       const __llvm_profile_data *End);
 
+/*! \brief Get the size of the profile name section in bytes. */
+uint64_t __llvm_profile_get_name_size(const char *Begin, const char *End);
----------------
david-xl wrote:

extract out as in a refactoring patch. If this interface is not intended to be public, no need to use the __llvm name space for it, but use the internal interface naming convention.

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


More information about the cfe-commits mailing list