| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | This patch substantially simplifies and cleans up handling of basic blocks | Chris Lattner | 2003-10-08 | 3 | -60/+84 | |
| | | | | | | | | | | | | | | in the bytecode parser. Before we tried to shoehorn basic blocks into the "getValue" code path with other types of values. For a variety of reasons this was a bad idea, so this patch separates it out into its own data structure. This simplifies the code, makes it fit in 80 columns, and is also much faster. In a testcase provided by Bill, which has lots of PHI nodes, this patch speeds up bytecode parsing from taking 6.9s to taking 2.32s. More speedups to follow later. llvm-svn: 8977 | |||||
| * | Inline the postResolveValues method. It was poorly named anyway | Chris Lattner | 2003-10-08 | 2 | -34/+26 | |
| | | | | | llvm-svn: 8976 | |||||
| * | Various cleanups and simplifications. This speeds up reading a bytecode file | Chris Lattner | 2003-10-08 | 3 | -61/+57 | |
| | | | | | | | Bill gave me from 8.69s to 6.90s. llvm-svn: 8971 | |||||
| * | Destroy allocated resources on exception. | Misha Brukman | 2003-10-08 | 1 | -3/+13 | |
| | | | | | llvm-svn: 8969 | |||||
| * | All of our supported operating systems (so far) and FreeBSD technically | Brian Gaeke | 2003-10-06 | 1 | -0/+1 | |
| | | | | | | | want you to include <sys/stat.h> for fstat(), struct stat, and friends. llvm-svn: 8887 | |||||
| * | Rename AbstractModuleProvider -> ModuleProvider, to match the header file name, | Chris Lattner | 2003-10-04 | 2 | -7/+5 | |
| | | | | | | | | and because, while the class used by the interface is abstract, the actual concept is not. llvm-svn: 8850 | |||||
| * | Transform two methods to return pointers directly instead of returning them | Chris Lattner | 2003-10-04 | 3 | -66/+42 | |
| | | | | | | | as 'by reference' arguments. llvm-svn: 8849 | |||||
| * | Use V for values, not D. | Chris Lattner | 2003-10-04 | 1 | -16/+15 | |
| | | | | | llvm-svn: 8848 | |||||
| * | Do not leak the ModuleProvider if releaseModule() throws. | Chris Lattner | 2003-10-04 | 1 | -11/+6 | |
| | | | | | llvm-svn: 8847 | |||||
| * | There is no need for BytecodeParser to be an AbstractTypeUser. Instead, it | Chris Lattner | 2003-10-02 | 2 | -28/+3 | |
| | | | | | | | can just use PATypeHolders llvm-svn: 8832 | |||||
| * | Just rethrow previous exception instead of making a new one | Chris Lattner | 2003-09-26 | 1 | -1/+1 | |
| | | | | | llvm-svn: 8718 | |||||
| * | Define the instance variable Buffer, not the automatic variable Buffer. | Chris Lattner | 2003-09-25 | 1 | -3/+2 | |
| | | | | | | | This was causing us to munmap random stuff, which is obviously bad. llvm-svn: 8709 | |||||
| * | Fix alignment problem | Chris Lattner | 2003-09-24 | 1 | -1/+1 | |
| | | | | | llvm-svn: 8707 | |||||
| * | Actually assign the string correctly through the std::string pointer. | Misha Brukman | 2003-09-24 | 1 | -2/+2 | |
| | | | | | llvm-svn: 8704 | |||||
| * | * Eliminate BytecodeBufferReader::Length member variable | Misha Brukman | 2003-09-24 | 1 | -26/+7 | |
| | | | | | | | | * Kill unused ALIN_PTRS #define * Set the error string if user passed it in to be compatible with former API llvm-svn: 8701 | |||||
| * | Added code that ensures that we pass the beginning of the data buffer to | John Criswell | 2003-09-23 | 1 | -1/+1 | |
| | | | | | | | the parsing routines regardless of whether the buffer is re-aligned or not. llvm-svn: 8693 | |||||
| * | Stop returning bool and pass Instruction by reference; | Misha Brukman | 2003-09-23 | 2 | -135/+146 | |
| | | | | | | | return std::auto_ptr and use exceptions llvm-svn: 8684 | |||||
| * | 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 | |||||
| * | * Group class definitions & implementations together | Misha Brukman | 2003-09-23 | 1 | -58/+110 | |
| | | | | | | | | | * Make sure we align the buffer we're given * Do not let exceptions propagate when the caller asks for a Module* * Add doxygenified comments to wrapper functions llvm-svn: 8682 | |||||
| * | * Constantify arguments to copy function | Misha Brukman | 2003-09-23 | 1 | -8/+4 | |
| | | | | | | | * Stop using a #define, make it an inline if statement llvm-svn: 8678 | |||||
| * | Removed no longer used member variable. | Misha Brukman | 2003-09-22 | 1 | -4/+1 | |
| | | | | | llvm-svn: 8677 | |||||
| * | Added file header comment. | Misha Brukman | 2003-09-22 | 1 | -0/+7 | |
| | | | | | llvm-svn: 8675 | |||||
| * | Update file header for renamed file | Chris Lattner | 2003-09-22 | 1 | -1/+1 | |
| | | | | | llvm-svn: 8673 | |||||
| * | * Cleaned up code: | Misha Brukman | 2003-09-22 | 4 | -340/+443 | |
| | | | | | | | | | | - 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 | |||||
| * | Fix a spello Misha made while fixing one of my appostrifications | Chris Lattner | 2003-09-15 | 1 | -1/+1 | |
| | | | | | llvm-svn: 8510 | |||||
| * | Fixed spelling and grammar. | Misha Brukman | 2003-09-11 | 6 | -11/+11 | |
| | | | | | llvm-svn: 8489 | |||||
| * | Fix bug | Chris Lattner | 2003-09-08 | 1 | -1/+2 | |
| | | | | | llvm-svn: 8410 | |||||
| * | Add support for the unwind instruction | Chris Lattner | 2003-09-08 | 1 | -0/+3 | |
| | | | | | llvm-svn: 8408 | |||||
| * | Read volatile loads/stores | Chris Lattner | 2003-09-08 | 1 | -2/+4 | |
| | | | | | llvm-svn: 8401 | |||||
| * | Remove a gross hack that was there to support bytecode files that are over a ↵ | Chris Lattner | 2003-09-08 | 3 | -65/+12 | |
| | | | | | | | | | year old. If you still have these suckers laying around, you have GOT to rebuild them. geeze. llvm-svn: 8395 | |||||
| * | Add support for writing volatile load/stores | Chris Lattner | 2003-09-08 | 1 | -22/+22 | |
| | | | | | llvm-svn: 8394 | |||||
| * | Fix reading of invoke instrs | Chris Lattner | 2003-09-05 | 1 | -22/+23 | |
| | | | | | llvm-svn: 8365 | |||||
| * | Whoa, we were misreading invoke instructions "normal" destinations quite badly. | Chris Lattner | 2003-09-05 | 1 | -2/+2 | |
| | | | | | llvm-svn: 8363 | |||||
| * | Non-functional change | Chris Lattner | 2003-09-04 | 1 | -1/+1 | |
| | | | | | llvm-svn: 8352 | |||||
| * | Avoid printing meaningless numbers | Chris Lattner | 2003-09-03 | 1 | -4/+1 | |
| | | | | | llvm-svn: 8342 | |||||
| * | Follow the pattern of all other atu's | Chris Lattner | 2003-09-03 | 1 | -6/+2 | |
| | | | | | llvm-svn: 8340 | |||||
| * | Allow modules to have 'any' pointer size and endianness. Luckily, we had | Chris Lattner | 2003-08-24 | 3 | -15/+26 | |
| | | | | | | | some space for extra flags, so we don't need to bump the revision number. llvm-svn: 8118 | |||||
| * | Rename SwitchInst::dest_push_back -> addCase | Chris Lattner | 2003-08-23 | 1 | -2/+2 | |
| | | | | | llvm-svn: 8089 | |||||
| * | Spell `necessary' correctly. | Misha Brukman | 2003-08-18 | 1 | -1/+1 | |
| | | | | | llvm-svn: 7944 | |||||
| * | Remove redundant const qualifiers from cast<> expressions | Chris Lattner | 2003-07-23 | 1 | -2/+2 | |
| | | | | | llvm-svn: 7253 | |||||
| * | Remove explicit const qualifiers | Chris Lattner | 2003-07-23 | 1 | -10/+10 | |
| | | | | | llvm-svn: 7245 | |||||
| * | The word `separate' only has one `e'. | Misha Brukman | 2003-07-14 | 1 | -1/+1 | |
| | | | | | llvm-svn: 7173 | |||||
| * | Merged in autoconf branch. This provides configuration via the autoconf | John Criswell | 2003-06-30 | 3 | -9/+9 | |
| | | | | | | | system. llvm-svn: 7014 | |||||
| * | Detemplatize the PATypeHandle class, which was only really instantiated on ↵ | Chris Lattner | 2003-06-18 | 2 | -2/+2 | |
| | | | | | | | 'Type'. llvm-svn: 6774 | |||||
| * | Fix bug: Assembler/2003-06-17-InvokeDisassemble.llx | Chris Lattner | 2003-06-17 | 1 | -10/+14 | |
| | | | | | | | "yes, invoke instructions can have just three arguments" llvm-svn: 6736 | |||||
| * | Fix bug: Assembler/2003-05-03-BytecodeReaderProblem.llx | Chris Lattner | 2003-05-22 | 1 | -16/+25 | |
| | | | | | | | | by emitting the type planes before any constants (which could be constant expressions involving undefined types!) llvm-svn: 6285 | |||||
| * | Do not assert fail or crash when a bytecode parse fails! | Chris Lattner | 2003-05-22 | 2 | -0/+4 | |
| | | | | | llvm-svn: 6284 | |||||
| * | Eliminate the uchar typedef, use unsigned char explicitly | Chris Lattner | 2003-05-22 | 4 | -38/+56 | |
| | | | | | llvm-svn: 6283 | |||||
| * | Fix Bug: Assembler/2003-05-12-MinIntProblem.llx | Chris Lattner | 2003-05-12 | 1 | -9/+3 | |
| | | | | | llvm-svn: 6123 | |||||
| * | Add support for the new va_arg instruction | Chris Lattner | 2003-05-08 | 2 | -5/+9 | |
| | | | | | llvm-svn: 6029 | |||||

