Displaying 5 results from an estimated 5 matches for "enter_subblock".
2008 Jun 24
1
[LLVMdev] bytecode reader
Hi,
I currently write a tool to parse the LLVM bytecode file (.bc file). So I
have some very basic questions:
- First, about the Abbreviation ID ( "0"=END_BLOCK, "1"=ENTER_SUBBLOCK...):
how to read these ID from the file stream ? I mean, I don't know, how many
bit length they are. It doesn't exist on the document.
- Second, how is the order to read the bytecode ?
For example 4 bytes after the LLVM IR magic nr.: 21 0C 00 00 It describes
the MODULE_BLOCK with its pa...
2008 Jun 23
0
[LLVMdev] bytecode reader
Hi,
I currently write a tool to parse the LLVM bytecode file (.bc file). So I
have some very basic questions:
- First, about the Abbreviation ID ( "0"=END_BLOCK, "1"=ENTER_SUBBLOCK...):
how to read these ID from the file stream ? I mean, I don't know, how many
bit length they are. It doesn't exist on the document.
- Second, how is the order to read the bytecode ?
For example 4 bytes after the LLVM IR magic nr.: 21 0C 00 00
It describes the MODULE_BLOCK with its pa...
2012 Sep 26
0
[LLVMdev] [PATCH / PROPOSAL] bitcode encoding that is ~15% smaller for large bitcode files...
.../llvm/Bitcode/BitstreamReader.h b/include/llvm/Bitcode/BitstreamReader.h
> index 3daef78..840f57e 100644
> --- a/include/llvm/Bitcode/BitstreamReader.h
> +++ b/include/llvm/Bitcode/BitstreamReader.h
> @@ -409,7 +409,7 @@ public:
> }
>
> /// EnterSubBlock - Having read the ENTER_SUBBLOCK abbrevid, enter
> - /// the block, and return true if the block is valid.
> + /// the block, and return true if the block has an error.
> bool EnterSubBlock(unsigned BlockID, unsigned *NumWordsP = 0) {
> // Save the current block's state on BlockScope.
> BlockScope...
2012 Sep 26
9
[LLVMdev] [PATCH / PROPOSAL] bitcode encoding that is ~15% smaller for large bitcode files...
Hi all,
I've been looking into how to make llvm bitcode files smaller. There is
one simple change that appears to shrink linked bitcode files by about 15%.
See this spreadsheet for some rough data:
https://docs.google.com/spreadsheet/ccc?key=0AjRrJHQc4_bddEtJdjdIek5fMDdIdFFIZldZXzdWa0E
The change is in how operand ids are encoded in bitcode files. Rather than
use an "absolute
2017 Apr 04
3
RFC: Adding a string table to the bitcode format
On Tue, Apr 4, 2017 at 12:36 PM, Duncan P. N. Exon Smith <
dexonsmith at apple.com> wrote:
>
> On 2017-Apr-04, at 12:12, Peter Collingbourne <peter at pcc.me.uk> wrote:
>
> On Mon, Apr 3, 2017 at 8:13 PM, Mehdi Amini <mehdi.amini at apple.com> wrote:
>
>>
>> On Apr 3, 2017, at 7:08 PM, Peter Collingbourne <peter at pcc.me.uk> wrote:
>>