aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/DecoderEmitter.cpp
diff options
context:
space:
mode:
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>2024-04-01 16:10:10 +0800
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>2024-04-01 16:16:03 +0800
commitef0291e5f4451abbafab0c839bf51a6382f735f3 (patch)
treeff76bcb5dbdf4381a1f245d56aa160409a22d666 /llvm/utils/TableGen/DecoderEmitter.cpp
parenta4dec9d6bc67c4d8fbd4a4f54ffaa0399def9627 (diff)
downloadllvm-ef0291e5f4451abbafab0c839bf51a6382f735f3.zip
llvm-ef0291e5f4451abbafab0c839bf51a6382f735f3.tar.gz
llvm-ef0291e5f4451abbafab0c839bf51a6382f735f3.tar.bz2
[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).
Diffstat (limited to 'llvm/utils/TableGen/DecoderEmitter.cpp')
0 files changed, 0 insertions, 0 deletions