[all-commits] [llvm/llvm-project] aa0883: [lld/mac] Add support for distributed ThinLTO
Nico Weber via All-commits
all-commits at lists.llvm.org
Thu Jan 12 17:54:42 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: aa0883b59ae17e5465906dad51b5561b5292a28d
https://github.com/llvm/llvm-project/commit/aa0883b59ae17e5465906dad51b5561b5292a28d
Author: Nico Weber <thakis at chromium.org>
Date: 2023-01-12 (Thu, 12 Jan 2023)
Changed paths:
M lld/ELF/InputFiles.cpp
M lld/MachO/Config.h
M lld/MachO/Driver.cpp
M lld/MachO/InputFiles.cpp
M lld/MachO/InputFiles.h
M lld/MachO/LTO.cpp
M lld/MachO/LTO.h
M lld/MachO/Options.td
M lld/test/ELF/lto/thinlto-index-only.ll
M lld/test/ELF/lto/thinlto-obj-path.ll
M lld/test/ELF/lto/thinlto-prefix-replace.ll
M lld/test/MachO/lto-object-path.ll
A lld/test/MachO/thinlto-emit-imports.ll
A lld/test/MachO/thinlto-emit-index.ll
A lld/test/MachO/thinlto-index-file.ll
A lld/test/MachO/thinlto-index-only.ll
A lld/test/MachO/thinlto-obj-path.ll
A lld/test/MachO/thinlto-object-suffix-replace.ll
A lld/test/MachO/thinlto-prefix-replace.ll
Log Message:
-----------
[lld/mac] Add support for distributed ThinLTO
Adds support for the following flags:
* --thinlto-index-only, --thinlto-index-only=
* --thinlto-emit-imports-files
* --thinlto-emit-index-files
* --thinlto-object-suffix-replace=
* --thinlto-prefix-replace=
See https://blog.llvm.org/2016/06/thinlto-scalable-and-incremental-lto.html
for some words on --thinlto-index-only.
I don't really need the other flags, but they were in the vicinity
and _someone_ might need them, so I figured I'd add them too.
`-object_path_lto` now sets `c.AlwaysEmitRegularLTOObj` as in the other ports,
which means it can now only point to a filename for non-thin LTO.
I think that was the intent of D129705 anyways, so update
test/MachO/lto-object-path.ll to use a non-thin bitcode file for that test.
Differential Revision: https://reviews.llvm.org/D138451
More information about the All-commits
mailing list