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 | 8de63464b8378f5f8529b775bae6c5f540184dc4 (patch) | |
| tree | 28a0ce6db14a4c727bac7bb17b8a94199610728b /clang/docs/CommandGuide | |
| parent | de2490d0dcff0dd4358456d94f88bdf99859fb5c (diff) | |
| download | bcm5719-llvm-8de63464b8378f5f8529b775bae6c5f540184dc4.tar.gz bcm5719-llvm-8de63464b8378f5f8529b775bae6c5f540184dc4.zip | |
[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
llvm-svn: 282089
Diffstat (limited to 'clang/docs/CommandGuide')
| -rw-r--r-- | clang/docs/CommandGuide/clang.rst | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/docs/CommandGuide/clang.rst b/clang/docs/CommandGuide/clang.rst index 1c47db78da1..f600315da1c 100644 --- a/clang/docs/CommandGuide/clang.rst +++ b/clang/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 ~~~~~~~~~~~~~~ |

