[clang] [Serialization] Storing DeclID separately (PR #95897)

Ilya Biryukov via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 25 09:17:01 PDT 2024


ilya-biryukov wrote:

Thanks for this patch, I will try it on our codebase to see the effects of it and report back to you.
I am also trying to understand in which cases this would be a win and when not.
IIUC, this is always a win when `ModuleFileIndex != 0`  and a pessimization otherwise.

When is `ModuleFileIndex == 0`? Does this only happen for predefined decls (that we never deserialize) or also for the declarations owned by the currently written module?


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


More information about the cfe-commits mailing list