summaryrefslogtreecommitdiffstats
path: root/llvm/docs/BitCodeFormat.html
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-06 21:50:39 +0000
committerChris Lattner <sabre@nondot.org>2009-04-06 21:50:39 +0000
commit4bda28e7651c9d5b12b296b6cde6de486d98e6d2 (patch)
treeab7cb3b4dd110bd3cba5bc9f27effcb75362fb7a /llvm/docs/BitCodeFormat.html
parent0669f6d2950f9d72a70cccf78064904052d1fffd (diff)
downloadbcm5719-llvm-4bda28e7651c9d5b12b296b6cde6de486d98e6d2.tar.gz
bcm5719-llvm-4bda28e7651c9d5b12b296b6cde6de486d98e6d2.zip
add a new Blob encoding abbreviation for bitcode files that emits
elements in a form that is efficient for the reader to just get a pointer in memory and start reading. APIs to do efficient reading and writing are still todo. llvm-svn: 68465
Diffstat (limited to 'llvm/docs/BitCodeFormat.html')
-rw-r--r--llvm/docs/BitCodeFormat.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/docs/BitCodeFormat.html b/llvm/docs/BitCodeFormat.html
index 8a53f27abe1..54b9361c379 100644
--- a/llvm/docs/BitCodeFormat.html
+++ b/llvm/docs/BitCodeFormat.html
@@ -478,6 +478,13 @@ emitted as their code, followed by the extra data.
<li value="4">Char6: This field should be emitted as
a <a href="#char6">char6-encoded value</a>. This operand type takes no
extra data.</li>
+<li value="5">Blob: This field is emitted as a vbr6, followed by padding to a
+ 32-bit boundary (for alignment) and an array of 8-bit objects. The array of
+ bytes is further followed by tail padding to ensure that its total length is
+ a multiple of 4 bytes. This makes it very efficient for the reader to
+ decode the data without having to make a copy of it: it can use a pointer to
+ the data in the mapped in file and poke directly at it. A blob may only
+ occur as the last operand of an abbreviation.</li>
</ol>
<p>
OpenPOWER on IntegriCloud