[llvm-branch-commits] [libc] [lldb] [clang-tools-extra] [llvm] [libcxx] [flang] [mlir] [openmp] [clang] [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 18:21:58 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>
----------------
aaupov wrote:

Done

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


More information about the llvm-branch-commits mailing list