aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJin Xin Ng <njx@google.com>2022-06-01 10:49:36 -0700
committerJin Xin Ng <njx@google.com>2022-06-23 12:35:42 -0700
commit22f1273357cfe1d7d6e395c447d1be10360cffaa (patch)
tree8fa49b5b9dc2f37b68de42d97cc86831600868a1 /clang/lib/Frontend/CompilerInvocation.cpp
parent8c6da76483935d172c34e04e6c0106e33d803c61 (diff)
downloadllvm-22f1273357cfe1d7d6e395c447d1be10360cffaa.zip
llvm-22f1273357cfe1d7d6e395c447d1be10360cffaa.tar.gz
llvm-22f1273357cfe1d7d6e395c447d1be10360cffaa.tar.bz2
[ThinLTO][ELF] Add --thinlto-emit-index-files option
Allows ThinLTO indices to be written to disk on-the-fly/as-part-of “normal” linker execution. Previously ThinLTO indices could be written via --thinlto-index-only but that would cause the linker to exit early. For MLGO specifically, this enables saving the ThinLTO index files without having to restart the linker to collect data only available at later stages (i.e. output of --save-temps) of the linker's execution. Note, this option does not currently work with: --thinlto-object-suffix-replace, as this is intended to be used to consume minimized IR bitcode files while --thinlto-emit-index-files is intended to be run together with InProcessThinLTO (which cannot parse minimized IR). --thinlto-prefix-replace support is left unimplemented but can be implemented if needed Differential Revision: https://reviews.llvm.org/D127777
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions