[lld] r239714 - COFF: Add a brief description about LTO.

Rui Ueyama ruiu at google.com
Sun Jun 14 19:46:18 PDT 2015


Author: ruiu
Date: Sun Jun 14 21:46:18 2015
New Revision: 239714

URL: http://llvm.org/viewvc/llvm-project?rev=239714&view=rev
Log:
COFF: Add a brief description about LTO.

Modified:
    lld/trunk/COFF/README.md

Modified: lld/trunk/COFF/README.md
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/README.md?rev=239714&r1=239713&r2=239714&view=diff
==============================================================================
--- lld/trunk/COFF/README.md (original)
+++ lld/trunk/COFF/README.md Sun Jun 14 21:46:18 2015
@@ -191,6 +191,20 @@ We created an experimental multi-threade
 ConcRT concurrency library, and it was able to link itself in 0.5
 seconds, so we think the design is promising.
 
+Link-Time Optimization
+----------------------
+
+LTO is implemented by handling LLVM bitcode files as input files.
+The linker resolves symbols in bitcode files normally. If all symbols
+are successfully resolved, it then calls an LLVM libLTO function
+with all bitcode files to convert them to one big regular COFF file.
+Finally, the linker replaces bitcode symbols with COFF symbols,
+so that we can link the input files as if they were in COFF format
+from the beginning.
+
+The details are described in this document.
+http://llvm.org/docs/LinkTimeOptimization.html
+
 Glossary
 --------
 





More information about the llvm-commits mailing list