[llvm-branch-commits] [clang] [mlir] [clang-tools-extra] [libcxx] [flang] [llvm] [libc] [lldb] [BOLT] Embed cold mapping info into function entry in BAT (PR #76903)
Amir Ayupov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Jan 11 14:52:39 PST 2024
================
@@ -160,12 +164,31 @@ std::error_code BoltAddressTranslation::parse(StringRef Buf) {
return make_error_code(llvm::errc::io_error);
Error Err(Error::success());
+ std::vector<uint64_t> HotFuncs;
----------------
aaupov wrote:
It's populated by `parseMaps<Hot>` and read by `parseMaps<Cold>`.
Cold functions encode indices of parent hot functions (also delta encoded), hence this vector is required.
https://github.com/llvm/llvm-project/pull/76903
More information about the llvm-branch-commits
mailing list