aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorKyungwoo Lee <kyulee@meta.com>2024-07-23 10:25:51 +0900
committerGitHub <noreply@github.com>2024-07-23 10:25:51 +0900
commitd3fb41dddc11b0ebc338a3b9e6a5ab7288ff7d1d (patch)
treee6ca8facc6d9a32f66d8a4ddbeb5d55e5835bf0f /clang/lib/Frontend/CompilerInvocation.cpp
parentc473e75adeaf2998e4fb444b0bdbf2dd19312e50 (diff)
downloadllvm-d3fb41dddc11b0ebc338a3b9e6a5ab7288ff7d1d.zip
llvm-d3fb41dddc11b0ebc338a3b9e6a5ab7288ff7d1d.tar.gz
llvm-d3fb41dddc11b0ebc338a3b9e6a5ab7288ff7d1d.tar.bz2
[CGData] llvm-cgdata (#89884)
The llvm-cgdata tool has been introduced to handle reading and writing of codegen data. This data includes an optimistic codegen summary that can be utilized to enhance subsequent codegen. Currently, the tool supports saving and restoring the outlined hash tree, facilitating machine function outlining across modules. Additional codegen summaries can be incorporated into separate sections as required. This patch primarily establishes basic support for the reader and writer, similar to llvm-profdata. The high-level operations of llvm-cgdata are as follows: 1. It reads local raw codegen data from a custom section (for example, __llvm_outline) embedded in native binary files 2. It merges local raw codegen data into an indexed codegen data, complete with a suitable header. 3. It handles reading and writing of the indexed codegen data into a standalone file. This depends on https://github.com/llvm/llvm-project/pull/89792. This is a patch for https://discourse.llvm.org/t/rfc-enhanced-machine-outliner-part-2-thinlto-nolto/78753. --------- Co-authored-by: Kyungwoo Lee <kyulee@fb.com>
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions