diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-06 21:50:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-06 21:50:39 +0000 |
commit | a6dc3b3819406f8b3c615334627c9ee3bdfb17d2 (patch) | |
tree | ccd65cdbf61fb29290e6f534ff8e6a9ead5d7ead /docs | |
parent | 5260c4c74326dd6228eaff73d1e634e228ee9f4f (diff) | |
download | external_llvm-a6dc3b3819406f8b3c615334627c9ee3bdfb17d2.zip external_llvm-a6dc3b3819406f8b3c615334627c9ee3bdfb17d2.tar.gz external_llvm-a6dc3b3819406f8b3c615334627c9ee3bdfb17d2.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68465 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r-- | docs/BitCodeFormat.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/BitCodeFormat.html b/docs/BitCodeFormat.html index 8a53f27..54b9361 100644 --- a/docs/BitCodeFormat.html +++ b/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> |