Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | eliminate internal length fields from record. Records already know their | Chris Lattner | 2007-05-04 | 2 | -48/+48 | |
| | | | | | | total length llvm-svn: 36752 | |||||
* | stub out creation of BLOCKINFO_BLOCK | Chris Lattner | 2007-05-04 | 1 | -0/+25 | |
| | | | | llvm-svn: 36749 | |||||
* | optimize constant layout. This fixes encoding of 181.mcf (by ensuring | Chris Lattner | 2007-05-04 | 2 | -5/+48 | |
| | | | | | | | integer structure idx's are emitted before constant expr geps) and shrinks files slightly. For example kc++ shrinks from 4326188 to 4240128 bytes. llvm-svn: 36742 | |||||
* | simple optimization for the type table | Chris Lattner | 2007-05-04 | 1 | -5/+29 | |
| | | | | llvm-svn: 36741 | |||||
* | storeinst ctor takes isvolatile before alignment. With this, 176.gcc roundtrips | Chris Lattner | 2007-05-04 | 1 | -1/+1 | |
| | | | | llvm-svn: 36738 | |||||
* | fix encoding of invoke instructions. kc++ now round trips | Chris Lattner | 2007-05-04 | 1 | -1/+0 | |
| | | | | llvm-svn: 36737 | |||||
* | fix a misplaced error | Chris Lattner | 2007-05-04 | 1 | -1/+1 | |
| | | | | llvm-svn: 36736 | |||||
* | encode and read param attrs along with function type. WE can now roundtrip ↵ | Chris Lattner | 2007-05-04 | 2 | -9/+8 | |
| | | | | | | Olden/voronoi loslessly llvm-svn: 36735 | |||||
* | add support for reading the param attrs block | Chris Lattner | 2007-05-04 | 2 | -0/+82 | |
| | | | | llvm-svn: 36731 | |||||
* | fix a bug encoding param attrs | Chris Lattner | 2007-05-04 | 1 | -1/+1 | |
| | | | | llvm-svn: 36730 | |||||
* | remove dead code | Chris Lattner | 2007-05-04 | 1 | -6/+0 | |
| | | | | llvm-svn: 36728 | |||||
* | add writer support for param attrs | Chris Lattner | 2007-05-04 | 1 | -1/+15 | |
| | | | | llvm-svn: 36724 | |||||
* | Allow this to compile with gcc 4.0.X | Reid Spencer | 2007-05-04 | 1 | -2/+4 | |
| | | | | llvm-svn: 36723 | |||||
* | pass by reference, not by value | Chris Lattner | 2007-05-04 | 1 | -1/+1 | |
| | | | | llvm-svn: 36721 | |||||
* | trivial scaffolding for param attrs | Chris Lattner | 2007-05-04 | 1 | -0/+12 | |
| | | | | llvm-svn: 36720 | |||||
* | enumerate parameter attr lists. | Chris Lattner | 2007-05-03 | 2 | -0/+33 | |
| | | | | llvm-svn: 36709 | |||||
* | Encoding calling conv info in call/invoke instrs, tree add now round trips ↵ | Chris Lattner | 2007-05-03 | 2 | -18/+24 | |
| | | | | | | completely llvm-svn: 36707 | |||||
* | the type field for a store is the type of the pointer, not the value. | Chris Lattner | 2007-05-03 | 1 | -3/+4 | |
| | | | | | | With this fix I can round trip treeaadd, only losing calling conv info. llvm-svn: 36706 | |||||
* | 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 | 3 | -5/+21 | |
| | | | | llvm-svn: 36704 | |||||
* | bug fixes | Chris Lattner | 2007-05-03 | 1 | -3/+3 | |
| | | | | llvm-svn: 36701 | |||||
* | implement the rest of the instructions | Chris Lattner | 2007-05-03 | 1 | -10/+68 | |
| | | | | llvm-svn: 36699 | |||||
* | add a few more instructions, getting close | Chris Lattner | 2007-05-03 | 1 | -10/+53 | |
| | | | | llvm-svn: 36688 | |||||
* | add reader logic for terminator instrs. | Chris Lattner | 2007-05-02 | 3 | -10/+93 | |
| | | | | llvm-svn: 36642 | |||||
* | add reader support for a bunch of new instructions | Chris Lattner | 2007-05-02 | 1 | -14/+90 | |
| | | | | llvm-svn: 36641 | |||||
* | read a few instructions, fix some bugs. This is enough to be able to round | Chris Lattner | 2007-05-02 | 1 | -15/+38 | |
| | | | | | | | | | | | | | | trip function bodies like this: define <2 x i64> @foo(<2 x i64> %x, <2 x i64> %y) { %tmp4 = bitcast <2 x i64> %y to <8 x i16> ; <<8 x i16>> [#uses=1] %tmp5 = bitcast <2 x i64> %x to <8 x i16> ; <<8 x i16>> [#uses=1] %tmp = add <8 x i16> %tmp5, %tmp4 ; <<8 x i16>> [#uses=1] %tmp6 = bitcast <8 x i16> %tmp to <2 x i64> ; <<2 x i64>> [#uses=1] ret <2 x i64> %tmp6 } llvm-svn: 36640 | |||||
* | 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 | |||||
* | handle function-level forward references, read binops. | Chris Lattner | 2007-05-01 | 2 | -20/+145 | |
| | | | | llvm-svn: 36620 | |||||
* | implement materializeModule, force deallocation of vector memory when we | Chris Lattner | 2007-05-01 | 2 | -15/+107 | |
| | | | | | | are done with them, start implementing ParseFunctionBody llvm-svn: 36617 | |||||
* | The stream to read from is now an ivar | Chris Lattner | 2007-05-01 | 2 | -20/+18 | |
| | | | | llvm-svn: 36615 | |||||
* | implement scafolding for lazy deserialization of function bodies | Chris Lattner | 2007-05-01 | 2 | -7/+85 | |
| | | | | llvm-svn: 36614 | |||||
* | 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 | 2 | -2/+4 | |
| | | | | | | visibility support for bitcode. llvm-svn: 36577 | |||||
* | Switch the bitcode reader interface to take a MemoryBuffer instead of knowing | Chris Lattner | 2007-04-29 | 3 | -108/+62 | |
| | | | | | | | | | | | | | | anything about disk I/O itself. This greatly simplifies its interface - eliminating the need for the ReaderWrappers.cpp file. This adds a new option to llvm-dis (-bitcode) which instructs it to read the input file as bitcode. Until/unless the bytecode reader is taught to read from MemoryBuffer, there is no way to handle stdin reading without it. I don't plan to switch the bytecode reader over, I'd rather delete it :), so the option will stay around temporarily. llvm-svn: 36554 | |||||
* | 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 | |||||
* | This is not "FIXME" anymore | Anton Korobeynikov | 2007-04-28 | 1 | -3/+1 | |
| | | | | llvm-svn: 36541 | |||||
* | start code for writing out instructions. Separate BB#s from normal value | Chris Lattner | 2007-04-26 | 3 | -5/+83 | |
| | | | | | | #'s. llvm-svn: 36472 | |||||
* | enumerate BB's separately from other function values. | Chris Lattner | 2007-04-26 | 2 | -4/+16 | |
| | | | | llvm-svn: 36467 | |||||
* | add support for incorporating and purging functions to the value enumerator | Chris Lattner | 2007-04-26 | 3 | -98/+38 | |
| | | | | 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 | 5 | -69/+123 | |
| | | | | | | | 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 | 4 | -17/+81 | |
| | | | | llvm-svn: 36461 | |||||
* | ensure that every error return sets a message (and goes through Error, for | Chris Lattner | 2007-04-24 | 3 | -19/+37 | |
| | | | | | | | | | easy breakpointing). Fix bugs reading constantexpr geps. We now can disassemble kc++ global initializers. llvm-svn: 36398 | |||||
* | fix memory leak | Chris Lattner | 2007-04-24 | 1 | -3/+4 | |
| | | | | llvm-svn: 36397 | |||||
* | implement reading and writing of constant exprs. | Chris Lattner | 2007-04-24 | 2 | -15/+230 | |
| | | | | llvm-svn: 36394 | |||||
* | implement support for reading aggregate constants, including handling forward | Chris Lattner | 2007-04-24 | 2 | -5/+108 | |
| | | | | | | constant references, etc. llvm-svn: 36391 | |||||
* | add supprot for FP constants, wide integers, and fix the encoding of MININT | Chris Lattner | 2007-04-24 | 1 | -8/+40 | |
| | | | | llvm-svn: 36390 |