[llvm-branch-commits] [llvm] [mlir] [flang] [lldb] [libc] [libcxx] [clang] [clang-tools-extra] [BOLT] Embed cold mapping info into function entry in BAT (PR #76903)
Rafael Auler via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Jan 11 14:48:44 PST 2024
================
@@ -78,10 +79,20 @@ class BoltAddressTranslation {
BoltAddressTranslation() {}
+ /// Write the serialized address translation table for a function.
+ template <bool Cold>
+ void writeMaps(std::map<uint64_t, MapTy> &Maps, raw_ostream &OS);
+
/// Write the serialized address translation tables for each reordered
/// function
void write(const BinaryContext &BC, raw_ostream &OS);
+ /// Read the serialized address translation table for a function.
+ /// Return a parse error if failed.
+ template <bool Cold>
----------------
rafaelauler wrote:
private: ?
https://github.com/llvm/llvm-project/pull/76903
More information about the llvm-branch-commits
mailing list