[llvm] 76b7423 - Update bitcode format doc to mention that a multi-module bitcode file is

via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 18 17:50:42 PST 2022


Author: minglotus-6
Date: 2022-01-18T17:49:34-08:00
New Revision: 76b74236c7f9ee705b38eb8651c26c3f44ad2327

URL: https://github.com/llvm/llvm-project/commit/76b74236c7f9ee705b38eb8651c26c3f44ad2327
DIFF: https://github.com/llvm/llvm-project/commit/76b74236c7f9ee705b38eb8651c26c3f44ad2327.diff

LOG: Update bitcode format doc to mention that a multi-module bitcode file is
valid.

Differential Revision: https://reviews.llvm.org/D117067

Added: 
    

Modified: 
    llvm/docs/BitCodeFormat.rst

Removed: 
    


################################################################################
diff  --git a/llvm/docs/BitCodeFormat.rst b/llvm/docs/BitCodeFormat.rst
index 462e1e522ec3..8e81a7daa459 100644
--- a/llvm/docs/BitCodeFormat.rst
+++ b/llvm/docs/BitCodeFormat.rst
@@ -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`_


        


More information about the llvm-commits mailing list