[PATCH] D64542: [lld-link] implement -thinlto-{prefix,object-suffix}-replace

Bob Haarman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 10 17:17:15 PDT 2019


inglorion created this revision.
inglorion added reviewers: ruiu, tejohnson, pcc, rnk.
Herald added subscribers: dexonsmith, steven_wu, mehdi_amini.
Herald added a project: LLVM.

Adds the following two options to lld-link:

-thinlto-prefix-replace: allows replacing a prefix in paths generated
for ThinLTO. This can be used to ensure index files and native object
files are stored in unique directories, allowing multiple distributed
ThinLTO links to proceed concurrently.

-thinlto-object-suffix-replace: allows replacing a suffix in object
file paths involved in ThinLTO. This allows minimized index files to
be used for the thin link while storing the paths to the full bitcode
files for subsequent steps (code generation and final linking).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D64542

Files:
  lld/COFF/Config.h
  lld/COFF/Driver.cpp
  lld/COFF/InputFiles.cpp
  lld/COFF/InputFiles.h
  lld/COFF/LTO.cpp
  lld/COFF/Options.td
  lld/test/COFF/thinlto-object-suffix-replace.ll
  lld/test/COFF/thinlto-prefix-replace.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64542.209100.patch
Type: text/x-patch
Size: 8395 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190711/2867afc5/attachment.bin>


More information about the llvm-commits mailing list