[all-commits] [llvm/llvm-project] ef0291: [NFC] [Serialization] Reordering lexcical and visi...
Chuanqi Xu via All-commits
all-commits at lists.llvm.org
Mon Apr 1 01:17:26 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ef0291e5f4451abbafab0c839bf51a6382f735f3
https://github.com/llvm/llvm-project/commit/ef0291e5f4451abbafab0c839bf51a6382f735f3
Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
Date: 2024-04-01 (Mon, 01 Apr 2024)
Changed paths:
M clang/lib/Serialization/ASTWriter.cpp
M clang/test/Modules/language-linkage.cppm
Log Message:
-----------
[NFC] [Serialization] Reordering lexcical and visible TU block after type decl offsets
This patch reorder the lexical block for the translation unit, visible update block for the TU and
the viisble upaete block for the extern C context after the type decl
offsets block.
This should be a NFC patch.
This is helpful for later optimizations for eliding unreachable
declarations in the global module fragment. See the comments in
https://github.com/llvm/llvm-project/pull/76930.
Simply, if we want to get the reachable sets of declaratins during the
writing process, we need to write the file-level context later than the
process of writing declarations (which is the main process to determine
the reachable set).
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list