diff options
author | Teresa Johnson <tejohnson@google.com> | 2016-09-21 16:57:03 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2016-09-21 16:57:03 +0000 |
commit | 7ca59a723e260266ad3418fb1393281e08f9f1cb (patch) | |
tree | 0ed963786e0faf2c9c679a39836d93eeb7ae9dcf /docs/CommandGuide | |
parent | bd81660d3610ae5b3c300dea369fbe0b35c89a49 (diff) | |
download | clang-7ca59a723e260266ad3418fb1393281e08f9f1cb.tar.gz |
[docs] Add ThinLTO user documentation
Summary: Add some user facing documentation on ThinLTO and how to use it.
Reviewers: mehdi_amini
Subscribers: mehdi_amini, cfe-commits
Differential Revision: https://reviews.llvm.org/D24806
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@282089 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CommandGuide')
-rw-r--r-- | docs/CommandGuide/clang.rst | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/CommandGuide/clang.rst b/docs/CommandGuide/clang.rst index 1c47db78da..f600315da1 100644 --- a/docs/CommandGuide/clang.rst +++ b/docs/CommandGuide/clang.rst @@ -328,13 +328,19 @@ Code Generation Options model can be overridden with the tls_model attribute. The compiler will try to choose a more efficient model if possible. -.. option:: -flto, -emit-llvm +.. option:: -flto[=full,thin], -emit-llvm Generate output files in LLVM formats, suitable for link time optimization. When used with :option:`-S` this generates LLVM intermediate language assembly files, otherwise this generates LLVM bitcode format object files (which may be passed to the linker depending on the stage selection options). + The default for :option:`-flto` is :option:`-flto=full`, in which the + LLVM bitcode is suitable for monolithic Link Time Optimization (LTO), where + the linker merges all such modules into a single combined module for + optimization. With :option:`-flto=thin`, :doc:`ThinLTO <../ThinLTO>` + compilation is invoked instead. + Driver Options ~~~~~~~~~~~~~~ |