[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-11 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.52 - 1.53 --- Log message: allow partially materialized modules to be written out, which just strips out the functions which haven't been read. --- Diffs of the changes: (+1 -0) BitcodeWriter.cpp |1 + 1 files

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-07 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.51 - 1.52 --- Log message: Make a preemptive bitcode format change to support PR1146: http://llvm.org/PR1146 . This lets us do pr1146: http://llvm.org/PR1146 in llvm 2.1 without ugly code to emulate old behavior.

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-06 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.50 - 1.51 --- Log message: Flush the file after writing bitcode so that clients who don't close their ofstreams will be ok. --- Diffs of the changes: (+3 -0) BitcodeWriter.cpp |3 +++ 1 files changed, 3

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-05 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.38 - 1.39 --- Log message: Add abbreviations to the TYPE_BLOCK for pointers, functions, structs and arrays. This shrinks the type_block of kc++ from 139901 bits to 99389 bits (0.55% to 0.39% of the file), a 40%

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-05 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.39 - 1.40 --- Log message: add abbrevs for the constants tables. This shrinks it from 4.49755e6 bits to 3.85972e6 bits in kc++ --- Diffs of the changes: (+123 -61) BitcodeWriter.cpp | 184

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-05 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.40 - 1.41 --- Log message: add an abbrev for loads. This shrinks the function block about 50K, from: Block ID #12 (FUNCTION_BLOCK): Num Instances: 2344 Total Size: 8.8434e+06b/1.10542e+06B/276356W

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-05 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.41 - 1.42 --- Log message: stop encoding type/value pairs when the type is implied by the value. This shrinks the function block of kc++ from 1055K to 906K --- Diffs of the changes: (+48 -35) BitcodeWriter.cpp |

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-05 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.42 - 1.43 --- Log message: further reduce the redundancy of types in the instruction encoding. This shrinks function bodies in kc++ from 891913B to 884073B --- Diffs of the changes: (+12 -20) BitcodeWriter.cpp |

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp ValueEnumerator.cpp

2007-05-05 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.43 - 1.44 ValueEnumerator.cpp updated: 1.11 - 1.12 --- Log message: implement the 'string constant' optimization. This shrinks kc.bit from 2878544 to 2815788 --- Diffs of the changes: (+11 -4) BitcodeWriter.cpp

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-05 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.44 - 1.45 --- Log message: add an abbreviation for the string constants opzn, shrinking the constnats block from: Block ID #11 (CONSTANTS_BLOCK): Num Instances: 1722 Total Size:

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-05 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.45 - 1.46 --- Log message: add a denser encoding for null terminated strings, add a 6-bit abbrev as well. This shrinks kc++ from 2724088 to 2717360 bytes. --- Diffs of the changes: (+36 -8) BitcodeWriter.cpp |

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-05 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.46 - 1.47 --- Log message: add some abbrevs for ret and unreachable, shrinking kc++ from 2717360-2705388 --- Diffs of the changes: (+31 -3) BitcodeWriter.cpp | 34 +++--- 1 files

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-05 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.47 - 1.48 --- Log message: implement reading/writing of inlineasm objects --- Diffs of the changes: (+16 -6) BitcodeWriter.cpp | 22 -- 1 files changed, 16 insertions(+), 6 deletions(-)

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-05 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.48 - 1.49 --- Log message: add abbrevs for binops and casts. This shrinks a testcase from 725132-682500 bytes. --- Diffs of the changes: (+29 -3) BitcodeWriter.cpp | 32 +--- 1 files

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-05 Thread Jeff Cohen
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.49 - 1.50 --- Log message: Unbreak VC++. --- Diffs of the changes: (+1 -1) BitcodeWriter.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp diff -u

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-04 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.29 - 1.30 --- Log message: stub out creation of BLOCKINFO_BLOCK --- Diffs of the changes: (+25 -0) BitcodeWriter.cpp | 25 + 1 files changed, 25 insertions(+) Index:

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-04 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.30 - 1.31 --- Log message: eliminate internal length fields from record. Records already know their total length --- Diffs of the changes: (+12 -11) BitcodeWriter.cpp | 23 --- 1 files

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-04 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.31 - 1.32 --- Log message: Encode all value symtab strings as arrays of 8-bit fixed width integers, instead of the default inefficient encoding. This shrinks kc++ from 4134K to 3629K --- Diffs of the changes: (+15

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-04 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.32 - 1.33 --- Log message: where possible, encode symtab names with 7 bits per char instead of 8. This shaves 110K off kc++ to 3514K. Before: Block ID #14 (VALUE_SYMTAB): Num Instances: 2345 Total

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-04 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.33 - 1.34 --- Log message: shave another 150K off of kc++, by using a 7-bit encoding for BB names where we can. This shrinks kc++'s down to 3368K, with a VST record of: Block ID #14 (VALUE_SYMTAB): Num

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-04 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.34 - 1.35 --- Log message: allow the 8-bit abbrev to be used for either bb or other values --- Diffs of the changes: (+6 -6) BitcodeWriter.cpp | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-)

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-04 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.35 - 1.36 --- Log message: Implement support for globally associating abbrevs with block IDs, which relieves us from having to emit the abbrevs into each instance of the block. This shrinks kc.bit from 3368K to K,

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-04 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.36 - 1.37 --- Log message: add an abbreviation for the type symtab, this shrinks the TST from 175197 bits to 103165 bits: Old: Block ID #13 (TYPE_SYMTAB): Num Instances: 1 Total Size:

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-03 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.22 - 1.23 --- Log message: don't bother encoding # varargs --- Diffs of the changes: (+0 -1) BitcodeWriter.cpp |1 - 1 files changed, 1 deletion(-) Index: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp diff -u

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp ValueEnumerator.cpp

2007-05-03 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.21 - 1.22 ValueEnumerator.cpp updated: 1.7 - 1.8 --- Log message: fix encoding of BB names in the symtab --- Diffs of the changes: (+11 -5) BitcodeWriter.cpp | 14 ++ ValueEnumerator.cpp |2 +-

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-03 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.24 - 1.25 --- Log message: trivial scaffolding for param attrs --- Diffs of the changes: (+12 -0) BitcodeWriter.cpp | 12 1 files changed, 12 insertions(+) Index:

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-03 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.25 - 1.26 --- Log message: add writer support for param attrs --- Diffs of the changes: (+15 -1) BitcodeWriter.cpp | 16 +++- 1 files changed, 15 insertions(+), 1 deletion(-) Index:

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-03 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.26 - 1.27 --- Log message: fix a bug encoding param attrs --- Diffs of the changes: (+1 -1) BitcodeWriter.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index:

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-03 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.27 - 1.28 --- Log message: encode and read param attrs along with function type. WE can now roundtrip Olden/voronoi loslessly --- Diffs of the changes: (+2 -2) BitcodeWriter.cpp |4 ++-- 1 files changed, 2

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-03 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.28 - 1.29 --- Log message: fix encoding of invoke instructions. kc++ now round trips --- Diffs of the changes: (+0 -1) BitcodeWriter.cpp |1 - 1 files changed, 1 deletion(-) Index:

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-01 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.18 - 1.19 --- Log message: fix build with non-buggy compilers --- Diffs of the changes: (+11 -10) BitcodeWriter.cpp | 21 +++-- 1 files changed, 11 insertions(+), 10 deletions(-) Index:

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-01 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.19 - 1.20 --- Log message: use the correct code for binop instrs --- Diffs of the changes: (+1 -1) BitcodeWriter.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index:

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-05-01 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.20 - 1.21 --- Log message: add reader logic for terminator instrs. --- Diffs of the changes: (+0 -2) BitcodeWriter.cpp |2 -- 1 files changed, 2 deletions(-) Index: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-04-30 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.16 - 1.17 --- Log message: encode all of the instructions. --- Diffs of the changes: (+166 -3) BitcodeWriter.cpp | 169 +- 1 files changed, 166 insertions(+), 3

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-04-30 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.17 - 1.18 --- Log message: write the symbol table for function bodies --- Diffs of the changes: (+33 -30) BitcodeWriter.cpp | 63 -- 1 files changed, 33

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-04-29 Thread Anton Korobeynikov
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.15 - 1.16 --- Log message: Implement visibility checking during linking. Also implement protected visibility support for bitcode. --- Diffs of the changes: (+3 -2) BitcodeWriter.cpp |5 +++-- 1 files changed,

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-04-28 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.13 - 1.14 --- Log message: moved Writer.cpp - BitcodeWriter.cpp to make it more unique in the tree. --- Diffs of the changes: (+1 -1) BitcodeWriter.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-)

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-04-28 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: BitcodeWriter.cpp updated: 1.14 - 1.15 --- Log message: Fix this to use the right block ID --- Diffs of the changes: (+1 -3) BitcodeWriter.cpp |4 +--- 1 files changed, 1 insertion(+), 3 deletions(-) Index: