[PATCH] D127777: [ThinLTO][ELF] Add --thinlto-emit-index-files option

Jin Xin Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 14 12:59:09 PDT 2022


Northbadge created this revision.
Northbadge added reviewers: tejohnson, MaskRay, mtrofin.
Herald added subscribers: ormris, StephenFan, arphaman, steven_wu, hiraditya, arichardson, inglorion, emaste.
Herald added a project: All.
Northbadge requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.

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 and --thinlto-emit-imports-files support are left unimplemented but can be implemented if needed


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D127777

Files:
  lld/ELF/Config.h
  lld/ELF/Driver.cpp
  lld/ELF/LTO.cpp
  lld/ELF/Options.td
  lld/test/ELF/lto/thinlto-emit-index.ll
  llvm/include/llvm/LTO/LTO.h
  llvm/lib/LTO/LTO.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127777.436901.patch
Type: text/x-patch
Size: 17574 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220614/c8d1f16b/attachment.bin>


More information about the llvm-commits mailing list