[llvm] [CGData] Lazy loading support for stable function map (PR #151660)

Kyungwoo Lee via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 8 10:36:19 PDT 2025


================
@@ -119,17 +146,31 @@ struct StableFunctionMap {
   /// `StableFunctionEntry` is ready for insertion.
   void insert(std::unique_ptr<StableFunctionEntry> FuncEntry) {
     assert(!Finalized && "Cannot insert after finalization");
-    HashToFuncs[FuncEntry->Hash].emplace_back(std::move(FuncEntry));
+    HashToFuncs[FuncEntry->Hash].Entries.emplace_back(std::move(FuncEntry));
----------------
kyulee-com wrote:

Can you clarify what happens to Offsets of EntryStorage? It appears they've already been populated. You might also comment when Entries and Offsets are used/written in EntryStorage type above.

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


More information about the llvm-commits mailing list