summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* allow the 8-bit abbrev to be used for either bb or other valuesChris Lattner2007-05-041-6/+6
| | | | llvm-svn: 36761
* shave another 150K off of kc++, by using a 7-bit encoding for BB namesChris Lattner2007-05-041-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. ThisChris Lattner2007-05-041-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 Lattner2007-05-041-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 theirChris Lattner2007-05-041-11/+12
| | | | | | total length llvm-svn: 36752
* stub out creation of BLOCKINFO_BLOCKChris Lattner2007-05-041-0/+25
| | | | llvm-svn: 36749
* fix encoding of invoke instructions. kc++ now round tripsChris Lattner2007-05-041-1/+0
| | | | llvm-svn: 36737
* encode and read param attrs along with function type. WE can now roundtrip ↵Chris Lattner2007-05-041-2/+2
| | | | | | Olden/voronoi loslessly llvm-svn: 36735
* fix a bug encoding param attrsChris Lattner2007-05-041-1/+1
| | | | llvm-svn: 36730
* add writer support for param attrsChris Lattner2007-05-041-1/+15
| | | | llvm-svn: 36724
* trivial scaffolding for param attrsChris Lattner2007-05-041-0/+12
| | | | llvm-svn: 36720
* Encoding calling conv info in call/invoke instrs, tree add now round trips ↵Chris Lattner2007-05-031-2/+3
| | | | | | completely llvm-svn: 36707
* don't bother encoding # varargsChris Lattner2007-05-031-1/+0
| | | | llvm-svn: 36705
* fix encoding of BB names in the symtabChris Lattner2007-05-031-4/+10
| | | | llvm-svn: 36704
* add reader logic for terminator instrs.Chris Lattner2007-05-021-2/+0
| | | | llvm-svn: 36642
* use the correct code for binop instrsChris Lattner2007-05-021-1/+1
| | | | llvm-svn: 36639
* fix build with non-buggy compilersChris Lattner2007-05-011-10/+11
| | | | llvm-svn: 36621
* write the symbol table for function bodiesChris Lattner2007-05-011-30/+33
| | | | llvm-svn: 36610
* encode all of the instructions.Chris Lattner2007-05-011-3/+166
| | | | llvm-svn: 36609
* Implement visibility checking during linking. Also implement protectedAnton Korobeynikov2007-04-291-2/+3
| | | | | | visibility support for bitcode. llvm-svn: 36577
* Fix this to use the right block IDChris Lattner2007-04-291-3/+1
| | | | llvm-svn: 36550
* moved Writer.cpp -> BitcodeWriter.cpp to make it more unique in the tree.Chris Lattner2007-04-291-1/+1
| | | | llvm-svn: 36549
* start code for writing out instructions. Separate BB#s from normal valueChris Lattner2007-04-261-1/+66
| | | | | | #'s. llvm-svn: 36472
* add support for incorporating and purging functions to the value enumeratorChris Lattner2007-04-261-1/+3
| | | | llvm-svn: 36465
* improve a commentChris Lattner2007-04-261-3/+5
| | | | llvm-svn: 36464
* move some code around, fix a bug in the reader reading globalinits (whichChris Lattner2007-04-261-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 supportChris Lattner2007-04-261-0/+12
| | | | llvm-svn: 36461
* implement reading and writing of constant exprs.Chris Lattner2007-04-241-9/+97
| | | | llvm-svn: 36394
* fix off-by-one computing size for section abbrevsChris Lattner2007-04-241-1/+1
| | | | llvm-svn: 36388
* Emit module-level constants.Chris Lattner2007-04-241-4/+111
| | | | llvm-svn: 36384
* write out the symtab for globals.Chris Lattner2007-04-231-33/+70
| | | | llvm-svn: 36374
* implement reading of abbrevs, and writing of abbreviated global varrs.Chris Lattner2007-04-231-3/+7
| | | | llvm-svn: 36367
* first part of implementation of abbrevs. The writer isn't fully there yet ↵Chris Lattner2007-04-231-6/+39
| | | | | | | | and the reader doesn't handle them at all yet. llvm-svn: 36363
* promote LLVMBitCodes to be a public headerChris Lattner2007-04-231-1/+1
| | | | llvm-svn: 36358
* Initial support for writing bitcode files. This currently only writes types,Chris Lattner2007-04-221-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
OpenPOWER on IntegriCloud