This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. int3 marked an inline comment as done. Closed by commit rGb0bf3e66d087: [clang][docs] Document ThinLTO options for ld64.lld (authored by int3).
Changed prior to commit: https://reviews.llvm.org/D144482?vs=499154&id=499205#toc Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D144482/new/ https://reviews.llvm.org/D144482 Files: clang/docs/ThinLTO.rst Index: clang/docs/ThinLTO.rst =================================================================== --- clang/docs/ThinLTO.rst +++ clang/docs/ThinLTO.rst @@ -118,7 +118,7 @@ ``-Wl,-plugin-opt,jobs=N`` - ld64: ``-Wl,-mllvm,-threads=N`` -- lld: +- ld.lld, ld64.lld: ``-Wl,--thinlto-jobs=N`` - lld-link: ``/opt:lldltojobs=N`` @@ -141,9 +141,10 @@ - gold (as of LLVM 4.0): ``-Wl,-plugin-opt,cache-dir=/path/to/cache`` -- ld64 (support in clang 3.9 and Xcode 8): +- ld64 (supported since clang 3.9 and Xcode 8) and Mach-O ld64.lld (as of LLVM + 15.0): ``-Wl,-cache_path_lto,/path/to/cache`` -- ELF lld (as of LLVM 5.0): +- ELF ld.lld (as of LLVM 5.0): ``-Wl,--thinlto-cache-dir=/path/to/cache`` - COFF lld-link (as of LLVM 6.0): ``/lldltocache:/path/to/cache`` @@ -152,14 +153,14 @@ ------------- To help keep the size of the cache under control, ThinLTO supports cache -pruning. Cache pruning is supported with gold, ld64 and ELF and COFF lld, but -currently only gold, ELF and COFF lld allow you to control the policy with a -policy string. The cache policy must be specified with a linker option. +pruning. Cache pruning is supported with gold, ld64, and lld, but currently only +gold and lld allow you to control the policy with a policy string. The cache +policy must be specified with a linker option. - gold (as of LLVM 6.0): ``-Wl,-plugin-opt,cache-policy=POLICY`` -- ELF lld (as of LLVM 5.0): - ``-Wl,--thinlto-cache-policy,POLICY`` +- ELF ld.lld (as of LLVM 5.0), Mach-O ld64.lld (as of LLVM 15.0): + ``-Wl,--thinlto-cache-policy=POLICY`` - COFF lld-link (as of LLVM 6.0): ``/lldltocachepolicy:POLICY``
Index: clang/docs/ThinLTO.rst =================================================================== --- clang/docs/ThinLTO.rst +++ clang/docs/ThinLTO.rst @@ -118,7 +118,7 @@ ``-Wl,-plugin-opt,jobs=N`` - ld64: ``-Wl,-mllvm,-threads=N`` -- lld: +- ld.lld, ld64.lld: ``-Wl,--thinlto-jobs=N`` - lld-link: ``/opt:lldltojobs=N`` @@ -141,9 +141,10 @@ - gold (as of LLVM 4.0): ``-Wl,-plugin-opt,cache-dir=/path/to/cache`` -- ld64 (support in clang 3.9 and Xcode 8): +- ld64 (supported since clang 3.9 and Xcode 8) and Mach-O ld64.lld (as of LLVM + 15.0): ``-Wl,-cache_path_lto,/path/to/cache`` -- ELF lld (as of LLVM 5.0): +- ELF ld.lld (as of LLVM 5.0): ``-Wl,--thinlto-cache-dir=/path/to/cache`` - COFF lld-link (as of LLVM 6.0): ``/lldltocache:/path/to/cache`` @@ -152,14 +153,14 @@ ------------- To help keep the size of the cache under control, ThinLTO supports cache -pruning. Cache pruning is supported with gold, ld64 and ELF and COFF lld, but -currently only gold, ELF and COFF lld allow you to control the policy with a -policy string. The cache policy must be specified with a linker option. +pruning. Cache pruning is supported with gold, ld64, and lld, but currently only +gold and lld allow you to control the policy with a policy string. The cache +policy must be specified with a linker option. - gold (as of LLVM 6.0): ``-Wl,-plugin-opt,cache-policy=POLICY`` -- ELF lld (as of LLVM 5.0): - ``-Wl,--thinlto-cache-policy,POLICY`` +- ELF ld.lld (as of LLVM 5.0), Mach-O ld64.lld (as of LLVM 15.0): + ``-Wl,--thinlto-cache-policy=POLICY`` - COFF lld-link (as of LLVM 6.0): ``/lldltocachepolicy:POLICY``
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits