[PATCH] D51540: [ThinLTO] Update LangRef doc for summary parsing
Teresa Johnson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 18 06:45:43 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL342479: [ThinLTO] Update LangRef doc for summary parsing (authored by tejohnson, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D51540
Files:
llvm/trunk/docs/LangRef.rst
Index: llvm/trunk/docs/LangRef.rst
===================================================================
--- llvm/trunk/docs/LangRef.rst
+++ llvm/trunk/docs/LangRef.rst
@@ -5827,20 +5827,20 @@
the bitcode. The summary is emitted into the LLVM assembly and identified
in syntax by a caret ('``^``').
-*Note that temporarily the summary entries are skipped when parsing the
-assembly, although the parsing support is actively being implemented. The
-following describes when the summary entries will be parsed once implemented.*
-The summary will be parsed into a ModuleSummaryIndex object under the
-same conditions where summary index is currently built from bitcode.
-Specifically, tools that test the Thin Link portion of a ThinLTO compile
-(i.e. llvm-lto and llvm-lto2), or when parsing a combined index
-for a distributed ThinLTO backend via clang's "``-fthinlto-index=<>``" flag.
-Additionally, it will be parsed into a bitcode output, along with the Module
+The summary is parsed into a bitcode output, along with the Module
IR, via the "``llvm-as``" tool. Tools that parse the Module IR for the purposes
of optimization (e.g. "``clang -x ir``" and "``opt``"), will ignore the
summary entries (just as they currently ignore summary entries in a bitcode
input file).
+Eventually, the summary will be parsed into a ModuleSummaryIndex object under
+the same conditions where summary index is currently built from bitcode.
+Specifically, tools that test the Thin Link portion of a ThinLTO compile
+(i.e. llvm-lto and llvm-lto2), or when parsing a combined index
+for a distributed ThinLTO backend via clang's "``-fthinlto-index=<>``" flag
+(this part is not yet implemented, use llvm-as to create a bitcode object
+before feeding into thin link tools for now).
+
There are currently 3 types of summary entries in the LLVM assembly:
:ref:`module paths<module_path_summary>`,
:ref:`global values<gv_summary>`, and
@@ -6051,7 +6051,7 @@
.. code-block:: text
- VFuncId, args: (Arg[, Arg]*)
+ (VFuncId, args: (Arg[, Arg]*))
and where each VFuncId has the format described for ``TypeTestAssumeVCalls``,
and each Arg is an integer argument number.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51540.165958.patch
Type: text/x-patch
Size: 2169 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180918/3d45d705/attachment.bin>
More information about the llvm-commits
mailing list