Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Suggestions made by Chris: | Misha Brukman | 2003-09-23 | 1 | -10/+14 | |
| | | | | | | | | | * Instead of a #define, use inline function * Fix the name on the #define, errr... now inline function to be more logical: it doesn't CHECK the alignment, it PERFORMS the alignment * To get string name of a Type*, use getDescription(), not getName() llvm-svn: 8683 | |||||
* | * Cleaned up code: | Misha Brukman | 2003-09-22 | 1 | -262/+161 | |
| | | | | | | | | | - no more passing around a string pointer to set errors - no more returning booleans and checking for errors, we use C++ exceptions * Broke functionality into 2 new classes, one reads from file, one from a stream * Implemented lazy function streaming - the parser can read in a function at-a-time llvm-svn: 8671 | |||||
* | Fixed spelling and grammar. | Misha Brukman | 2003-09-11 | 1 | -1/+1 | |
| | | | | llvm-svn: 8489 | |||||
* | Remove a gross hack that was there to support bytecode files that are over a ↵ | Chris Lattner | 2003-09-08 | 1 | -1/+1 | |
| | | | | | | | | year old. If you still have these suckers laying around, you have GOT to rebuild them. geeze. llvm-svn: 8395 | |||||
* | Allow modules to have 'any' pointer size and endianness. Luckily, we had | Chris Lattner | 2003-08-24 | 1 | -11/+20 | |
| | | | | | | some space for extra flags, so we don't need to bump the revision number. llvm-svn: 8118 | |||||
* | Spell `necessary' correctly. | Misha Brukman | 2003-08-18 | 1 | -1/+1 | |
| | | | | llvm-svn: 7944 | |||||
* | Merged in autoconf branch. This provides configuration via the autoconf | John Criswell | 2003-06-30 | 1 | -5/+5 | |
| | | | | | | system. llvm-svn: 7014 | |||||
* | Do not assert fail or crash when a bytecode parse fails! | Chris Lattner | 2003-05-22 | 1 | -0/+1 | |
| | | | | llvm-svn: 6284 | |||||
* | Eliminate the uchar typedef, use unsigned char explicitly | Chris Lattner | 2003-05-22 | 1 | -11/+19 | |
| | | | | llvm-svn: 6283 | |||||
* | Add support for reading and writing pointersize/endianness to and from bytecode | Chris Lattner | 2003-04-22 | 1 | -0/+5 | |
| | | | | llvm-svn: 5839 | |||||
* | Preserve module source information in the ModuleID | Chris Lattner | 2003-04-22 | 1 | -6/+7 | |
| | | | | llvm-svn: 5836 | |||||
* | Add support for reading unaligned bytecode buffers | Chris Lattner | 2003-04-19 | 1 | -0/+11 | |
| | | | | llvm-svn: 5819 | |||||
* | Fix a big bad bug I checked in yesterday :( | Chris Lattner | 2003-04-18 | 1 | -1/+1 | |
| | | | | llvm-svn: 5807 | |||||
* | Add support to the bytecode reader/writer for the new linkage types | Chris Lattner | 2003-04-16 | 1 | -14/+41 | |
| | | | | llvm-svn: 5790 | |||||
* | Add new linkage types to support a real frontend | Chris Lattner | 2003-04-16 | 1 | -3/+10 | |
| | | | | llvm-svn: 5786 | |||||
* | * Bug fixes: | Chris Lattner | 2003-03-19 | 1 | -139/+133 | |
| | | | | | | | | | | | | | | | | | | | | | - Fix problems where the constant table would not get updated when resolving constants causes other constants to change. Changes to the V2 bytecode format - Null values are implicitly encoded instead of explicitly, this makes things more compact! - More compactly represent ConstantPointerRefs - Bytecode files are represented as: Header|GlobalTypes|GlobalVars/Function Protos|Constants|Functions|SymTab instead of Header|GlobalTypes|Constants|GlobalVars/Function Protos|Functions|SymTab which makes a lot of things simpler. Changes to the reader: - Function loading code is much simpler. We now no longer make function PlaceHolderHelper objects to be replaced with real functions. llvm-svn: 5748 | |||||
* | Infrastructure for more compact bytecode files and REAL support for versioning | Chris Lattner | 2003-03-06 | 1 | -6/+40 | |
| | | | | llvm-svn: 5716 | |||||
* | s/Method/Function in variable and method names | Chris Lattner | 2003-03-06 | 1 | -11/+11 | |
| | | | | llvm-svn: 5715 | |||||
* | Continue simplifying error handling, s/method/function | Chris Lattner | 2003-03-06 | 1 | -57/+45 | |
| | | | | llvm-svn: 5714 | |||||
* | Cleanup error handling constructs | Chris Lattner | 2003-03-06 | 1 | -37/+47 | |
| | | | | llvm-svn: 5713 | |||||
* | Pull common code out | Chris Lattner | 2003-03-06 | 1 | -16/+14 | |
| | | | | llvm-svn: 5712 | |||||
* | Use the std namespace explicitly | Chris Lattner | 2003-03-06 | 1 | -12/+10 | |
| | | | | llvm-svn: 5708 | |||||
* | - Eliminated the deferred symbol table stuff in Module & Function, it really | Chris Lattner | 2002-11-20 | 1 | -2/+2 | |
| | | | | | | wasn't an optimization and it was causing lots of bugs. llvm-svn: 4779 | |||||
* | - Fix a really nasty bug in the bytecode reader that caused it to fail | Chris Lattner | 2002-10-23 | 1 | -10/+11 | |
| | | | | | | | | reading bytecode files with > 255 types in them, but only when optimization is enabled. This was caused by GCC shrinking an enum to a single byte instead of a whole word. llvm-svn: 4266 | |||||
* | Wow, for some reason, when reading bytecode from stdin, we were only reading | Chris Lattner | 2002-10-22 | 1 | -1/+1 | |
| | | | | | | 4 bytes at a time. Change this to read blocks of 4k llvm-svn: 4265 | |||||
* | There is no way to guarantee that constants are not forward referenced. | Chris Lattner | 2002-10-14 | 1 | -0/+28 | |
| | | | | | | | | Handle forward referenced constants in a general way. This fixes bug: Assembler/2002-10-13-ConstantEncodingProblem.llx and allows the SPEC 197.parser benchmark to be built llvm-svn: 4161 | |||||
* | - Change Function's so that their argument list is populated when they are | Chris Lattner | 2002-10-13 | 1 | -8/+3 | |
| | | | | | | | constructed. Before, external functions would have an empty argument list, now a Function ALWAYS has a populated argument list. llvm-svn: 4149 | |||||
* | Changed uchar to unsigned char in function ParseBytecodeBuffer, because ↵ | Anand Shukla | 2002-09-20 | 1 | -1/+1 | |
| | | | | | | seemingly it affects opt in uncertain ways :) llvm-svn: 3866 | |||||
* | Emit an obnoxious warning message for bytecode that includes load/store | Chris Lattner | 2002-08-21 | 1 | -1/+2 | |
| | | | | | | | instructions that use indexing. Convert them transparently into a pair of instructions. llvm-svn: 3431 | |||||
* | Turn off a debugging optimization that just slows bytecode reading down | Chris Lattner | 2002-08-18 | 1 | -1/+1 | |
| | | | | llvm-svn: 3377 | |||||
* | - Finally nailed: test/Regression/Assembler/2002-08-16-ConstExprInlined.llx | Chris Lattner | 2002-08-17 | 1 | -194/+111 | |
| | | | | | | | | | | | | | | - ParseConstantPool was resolving reference to value using the function slot # instead of the global slot #. - Bytecode reader changes: - Remove the failure<> template from Bytecode Reader - Remove extraneous #includes - s/method/function/ a bit - Eliminate the fwdRefs class that just added abstraction where it was not needed, making things more complex. - Use a vector instead of a list for function signatures. llvm-svn: 3366 | |||||
* | added std:: to pair | Anand Shukla | 2002-07-16 | 1 | -0/+1 | |
| | | | | llvm-svn: 2917 | |||||
* | Add support for reading ConstantExpr nodes. | Vikram S. Adve | 2002-07-14 | 1 | -32/+111 | |
| | | | | | | | Add class ConstantFwdRefs to resolve forward references to constants and to globals (unified old code for globals into this). llvm-svn: 2895 | |||||
* | MEGAPATCH checkin. | Chris Lattner | 2002-06-25 | 1 | -3/+2 | |
| | | | | | | For details, See: docs/2002-06-25-MegaPatchInfo.txt llvm-svn: 2778 | |||||
* | Replace all usages of Type::isPointerType with isa<PointerType> | Chris Lattner | 2002-05-06 | 1 | -1/+1 | |
| | | | | llvm-svn: 2486 | |||||
* | Eliminate duplicate or unneccesary #include's | Chris Lattner | 2002-04-29 | 1 | -1/+0 | |
| | | | | llvm-svn: 2397 | |||||
* | Split ConstantVals.h into Constant.h and Constants.h | Chris Lattner | 2002-04-28 | 1 | -1/+1 | |
| | | | | llvm-svn: 2378 | |||||
* | Move FunctionArgument out of iOther.h into Argument.h and rename class to | Chris Lattner | 2002-04-09 | 1 | -1/+2 | |
| | | | | | | be 'Argument' instead of FunctionArgument. llvm-svn: 2216 | |||||
* | s/Method/Function | Chris Lattner | 2002-03-29 | 1 | -16/+16 | |
| | | | | llvm-svn: 2035 | |||||
* | Change references from Method to Function | Chris Lattner | 2002-03-26 | 1 | -4/+4 | |
| | | | | | | change references from MethodARgument to FunctionArgument llvm-svn: 1991 | |||||
* | Chuck fixed the GCC problems so this hack is now unneccesary | Chris Lattner | 2002-01-21 | 1 | -1/+0 | |
| | | | | llvm-svn: 1519 | |||||
* | Changes to build successfully with GCC 3.02 | Chris Lattner | 2002-01-20 | 1 | -14/+18 | |
| | | | | llvm-svn: 1503 | |||||
* | Renamed inst_const_iterator -> const_inst_iterator | Chris Lattner | 2001-12-04 | 1 | -4/+4 | |
| | | | | | | | Renamed op_const_iterator -> const_op_iterator Renamed PointerType::getValueType() -> PointerType::getElementType() llvm-svn: 1408 | |||||
* | Rename ConstPoolVal -> Constant | Chris Lattner | 2001-12-03 | 1 | -7/+7 | |
| | | | | | | | Rename ConstPool* -> Constant* Rename ConstPoolVals.h -> ConstantVals.h llvm-svn: 1407 | |||||
* | Split the PHINode class out from the iOther.h file into the iPHINode.h file | Chris Lattner | 2001-12-03 | 1 | -2/+2 | |
| | | | | llvm-svn: 1405 | |||||
* | Implement internal method support | Chris Lattner | 2001-11-26 | 1 | -4/+9 | |
| | | | | llvm-svn: 1374 | |||||
* | I don't know what I was thinking | Chris Lattner | 2001-11-12 | 1 | -1/+1 | |
| | | | | llvm-svn: 1275 | |||||
* | Changes to get some meaningful feedback from the bytecode reader. At some ↵ | Chris Lattner | 2001-10-24 | 1 | -17/+51 | |
| | | | | | | point this stuff should all be exception driven, but for now it is not. llvm-svn: 970 | |||||
* | Rename ConstPoolPointerReference to ConstPoolPointerRef - My fingers get ↵ | Chris Lattner | 2001-10-15 | 1 | -4/+4 | |
| | | | | | | tired typing that much llvm-svn: 822 | |||||
* | External methods shouldn't have argument lists | Chris Lattner | 2001-10-14 | 1 | -0/+4 | |
| | | | | llvm-svn: 807 |