[PATCH] D105922: [lld-macho] Add LTO cache support
Leonard Grey via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 13 11:21:36 PDT 2021
lgrey created this revision.
lgrey added a reviewer: lld-macho.
Herald added subscribers: ormris, dang, steven_wu, hiraditya, inglorion.
Herald added a reviewer: int3.
Herald added a reviewer: gkm.
Herald added a project: lld-macho.
lgrey requested review of this revision.
This adds support for the lld-only `--thinlto-cache-policy` option, as well as implementations for ld64's `-cache_path_lto`, `-prune_interval_lto`, `-prune_after_lto`, and `-max_relative_cache_size_lto`.
Because `llvm::CachePruningPolicy` has reasonable default values, it's infeasible to give `--thinlto-cache-policy` precedence over the individual ld64 cache pruning options without replicating the parsing code. Currently, we ignore the individual options when the composite option is provided, but we can also give the individual options precedence if that seems better.
https://reviews.llvm.org/D105922
Files:
lld/MachO/Config.h
lld/MachO/Driver.cpp
lld/MachO/LTO.cpp
lld/MachO/LTO.h
lld/MachO/Options.td
lld/test/MachO/Inputs/lto-cache.ll
lld/test/MachO/lto-cache.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105922.358356.patch
Type: text/x-patch
Size: 10757 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210713/51033fd6/attachment.bin>
More information about the llvm-commits
mailing list