Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | allow the 8-bit abbrev to be used for either bb or other values | Chris Lattner | 2007-05-04 | 1 | -6/+6 | |
| | | | | llvm-svn: 36761 | |||||
* | shave another 150K off of kc++, by using a 7-bit encoding for BB names | Chris Lattner | 2007-05-04 | 1 | -1/+12 | |
| | | | | | | | | | | | | | | | | | | where we can. This shrinks kc++'s down to 3368K, with a VST record of: Block ID #14 (VALUE_SYMTAB): Num Instances: 2345 Total Size: 1.29508e+07b/1.61885e+06B/404713W Average Size: 5522.73b/690.342B/172.585W % of file: 48.0645 Tot/Avg SubBlocks: 0/0 Tot/Avg Abbrevs: 7035/3 Tot/Avg Records: 120924/51.5667 % Abbrev Recs: 100 Isn't it nice to be able to optimizer bc size without touching the reader? :) llvm-svn: 36759 | |||||
* | where possible, encode symtab names with 7 bits per char instead of 8. This | Chris Lattner | 2007-05-04 | 1 | -11/+45 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | shaves 110K off kc++ to 3514K. Before: Block ID #14 (VALUE_SYMTAB): Num Instances: 2345 Total Size: 1.50425e+07b/1.88031e+06B/470077W Average Size: 6414.69b/801.837B/200.459W % of file: 51.8057 Tot/Avg SubBlocks: 0/0 Tot/Avg Abbrevs: 2345/1 Tot/Avg Records: 120924/51.5667 % Abbrev Recs: 85.1791 after: Block ID #14 (VALUE_SYMTAB): Num Instances: 2345 Total Size: 1.41229e+07b/1.76536e+06B/441341W Average Size: 6022.56b/752.82B/188.205W % of file: 50.2295 Tot/Avg SubBlocks: 0/0 Tot/Avg Abbrevs: 4690/2 Tot/Avg Records: 120924/51.5667 % Abbrev Recs: 85.1791 llvm-svn: 36758 | |||||
* | Encode all value symtab strings as arrays of 8-bit fixed width integers, | Chris Lattner | 2007-05-04 | 1 | -15/+15 | |
| | | | | | | | instead of the default inefficient encoding. This shrinks kc++ from 4134K to 3629K llvm-svn: 36755 | |||||
* | eliminate internal length fields from record. Records already know their | Chris Lattner | 2007-05-04 | 1 | -11/+12 | |
| | | | | | | total length llvm-svn: 36752 | |||||
* | stub out creation of BLOCKINFO_BLOCK | Chris Lattner | 2007-05-04 | 1 | -0/+25 | |
| | | | | llvm-svn: 36749 | |||||
* | fix encoding of invoke instructions. kc++ now round trips | Chris Lattner | 2007-05-04 | 1 | -1/+0 | |
| | | | | llvm-svn: 36737 | |||||
* | encode and read param attrs along with function type. WE can now roundtrip ↵ | Chris Lattner | 2007-05-04 | 1 | -2/+2 | |
| | | | | | | Olden/voronoi loslessly llvm-svn: 36735 | |||||
* | fix a bug encoding param attrs | Chris Lattner | 2007-05-04 | 1 | -1/+1 | |
| | | | | llvm-svn: 36730 | |||||
* | add writer support for param attrs | Chris Lattner | 2007-05-04 | 1 | -1/+15 | |
| | | | | llvm-svn: 36724 | |||||
* | trivial scaffolding for param attrs | Chris Lattner | 2007-05-04 | 1 | -0/+12 | |
| | | | | llvm-svn: 36720 | |||||
* | Encoding calling conv info in call/invoke instrs, tree add now round trips ↵ | Chris Lattner | 2007-05-03 | 1 | -2/+3 | |
| | | | | | | completely llvm-svn: 36707 | |||||
* | don't bother encoding # varargs | Chris Lattner | 2007-05-03 | 1 | -1/+0 | |
| | | | | llvm-svn: 36705 | |||||
* | fix encoding of BB names in the symtab | Chris Lattner | 2007-05-03 | 1 | -4/+10 | |
| | | | | llvm-svn: 36704 | |||||
* | add reader logic for terminator instrs. | Chris Lattner | 2007-05-02 | 1 | -2/+0 | |
| | | | | llvm-svn: 36642 | |||||
* | use the correct code for binop instrs | Chris Lattner | 2007-05-02 | 1 | -1/+1 | |
| | | | | llvm-svn: 36639 | |||||
* | fix build with non-buggy compilers | Chris Lattner | 2007-05-01 | 1 | -10/+11 | |
| | | | | llvm-svn: 36621 | |||||
* | write the symbol table for function bodies | Chris Lattner | 2007-05-01 | 1 | -30/+33 | |
| | | | | llvm-svn: 36610 | |||||
* | encode all of the instructions. | Chris Lattner | 2007-05-01 | 1 | -3/+166 | |
| | | | | llvm-svn: 36609 | |||||
* | Implement visibility checking during linking. Also implement protected | Anton Korobeynikov | 2007-04-29 | 1 | -2/+3 | |
| | | | | | | visibility support for bitcode. llvm-svn: 36577 | |||||
* | Fix this to use the right block ID | Chris Lattner | 2007-04-29 | 1 | -3/+1 | |
| | | | | llvm-svn: 36550 | |||||
* | moved Writer.cpp -> BitcodeWriter.cpp to make it more unique in the tree. | Chris Lattner | 2007-04-29 | 1 | -1/+1 | |
| | | | | llvm-svn: 36549 | |||||
* | start code for writing out instructions. Separate BB#s from normal value | Chris Lattner | 2007-04-26 | 1 | -1/+66 | |
| | | | | | | #'s. llvm-svn: 36472 | |||||
* | add support for incorporating and purging functions to the value enumerator | Chris Lattner | 2007-04-26 | 1 | -1/+3 | |
| | | | | llvm-svn: 36465 | |||||
* | improve a comment | Chris Lattner | 2007-04-26 | 1 | -3/+5 | |
| | | | | llvm-svn: 36464 | |||||
* | move some code around, fix a bug in the reader reading globalinits (which | Chris Lattner | 2007-04-26 | 1 | -66/+86 | |
| | | | | | | | I just introduced), stub out function reading, purge aggregate values from the value table before reading functions. llvm-svn: 36463 | |||||
* | add bitcode alias support | Chris Lattner | 2007-04-26 | 1 | -0/+12 | |
| | | | | llvm-svn: 36461 | |||||
* | implement reading and writing of constant exprs. | Chris Lattner | 2007-04-24 | 1 | -9/+97 | |
| | | | | llvm-svn: 36394 | |||||
* | fix off-by-one computing size for section abbrevs | Chris Lattner | 2007-04-24 | 1 | -1/+1 | |
| | | | | llvm-svn: 36388 | |||||
* | Emit module-level constants. | Chris Lattner | 2007-04-24 | 1 | -4/+111 | |
| | | | | llvm-svn: 36384 | |||||
* | write out the symtab for globals. | Chris Lattner | 2007-04-23 | 1 | -33/+70 | |
| | | | | llvm-svn: 36374 | |||||
* | implement reading of abbrevs, and writing of abbreviated global varrs. | Chris Lattner | 2007-04-23 | 1 | -3/+7 | |
| | | | | llvm-svn: 36367 | |||||
* | first part of implementation of abbrevs. The writer isn't fully there yet ↵ | Chris Lattner | 2007-04-23 | 1 | -6/+39 | |
| | | | | | | | | and the reader doesn't handle them at all yet. llvm-svn: 36363 | |||||
* | promote LLVMBitCodes to be a public header | Chris Lattner | 2007-04-23 | 1 | -1/+1 | |
| | | | | llvm-svn: 36358 | |||||
* | Initial support for writing bitcode files. This currently only writes types, | Chris Lattner | 2007-04-22 | 1 | -0/+317 | |
the type symtab, and global/function protos, and is missing the important size optimization, but it is a place to start. llvm-svn: 36331 |