Update bitcode format doc to mention that a multi-module bitcode file is

valid.

Differential Revision: https://reviews.llvm.org/D117067
This commit is contained in:
minglotus-6 2022-01-11 16:57:01 -08:00
parent 5f404a749a
commit 76b74236c7

View File

@ -557,9 +557,10 @@ MODULE_BLOCK Contents
---------------------
The ``MODULE_BLOCK`` block (id 8) is the top-level block for LLVM bitcode files,
and each bitcode file must contain exactly one. In addition to records
(described below) containing information about the module, a ``MODULE_BLOCK``
block may contain the following sub-blocks:
and each module in a bitcode file must contain exactly one. A bitcode file with
multi-module bitcode is valid. In addition to records (described below)
containing information about the module, a ``MODULE_BLOCK`` block may contain
the following sub-blocks:
* `BLOCKINFO`_
* `PARAMATTR_BLOCK`_