summaryrefslogtreecommitdiffstats
path: root/llvm/docs/BitCodeFormat.html
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-26 22:21:57 +0000
committerChris Lattner <sabre@nondot.org>2009-04-26 22:21:57 +0000
commita6fdf5a8c9512046b2cc36a2dfaa1420156a0cde (patch)
treec5a9d638320172412987785a535d037f5a5939c1 /llvm/docs/BitCodeFormat.html
parent56930a4b8177a49bb5d91fa9f4301439b888769c (diff)
downloadbcm5719-llvm-a6fdf5a8c9512046b2cc36a2dfaa1420156a0cde.tar.gz
bcm5719-llvm-a6fdf5a8c9512046b2cc36a2dfaa1420156a0cde.zip
Add two new record types to the blockinfo block:
BLOCKNAME and SETRECORDNAME. This allows a bitcode file to be self describing with pretty names for records and blocks in addition to numbers. This enhances llvm-bcanalyzer to use this to print prettily. llvm-svn: 70165
Diffstat (limited to 'llvm/docs/BitCodeFormat.html')
-rw-r--r--llvm/docs/BitCodeFormat.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/docs/BitCodeFormat.html b/llvm/docs/BitCodeFormat.html
index 54b9361c379..8813b017f91 100644
--- a/llvm/docs/BitCodeFormat.html
+++ b/llvm/docs/BitCodeFormat.html
@@ -563,6 +563,8 @@ blocks. The currently specified records are:
<pre>
[SETBID (#1), blockid]
[DEFINE_ABBREV, ...]
+[BLOCKNAME, ...name...]
+[SETRECORDNAME, RecordID, ...name...]
</pre>
</div>
@@ -582,6 +584,15 @@ in <tt>BLOCKINFO</tt> blocks receive abbreviation IDs as described
in <tt><a href="#DEFINE_ABBREV">DEFINE_ABBREV</a></tt>.
</p>
+<p>The <tt>BLOCKNAME</tt> can optionally occur in this block. The elements of
+the record are the bytes for the string name of the block. llvm-bcanalyzer uses
+this to dump out bitcode files symbolically.</p>
+
+<p>The <tt>SETRECORDNAME</tt> record can optionally occur in this block. The
+first entry is a record ID number and the rest of the elements of the record are
+the bytes for the string name of the record. llvm-bcanalyzer uses
+this to dump out bitcode files symbolically.</p>
+
<p>
Note that although the data in <tt>BLOCKINFO</tt> blocks is described as
"metadata," the abbreviations they contain are essential for parsing records
OpenPOWER on IntegriCloud