summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode
Commit message (Collapse)AuthorAgeFilesLines
...
* Wow, for some reason, when reading bytecode from stdin, we were only readingChris Lattner2002-10-221-1/+1
| | | | | | 4 bytes at a time. Change this to read blocks of 4k llvm-svn: 4265
* Clean up code a bit, no functionality changes.Chris Lattner2002-10-141-10/+10
| | | | llvm-svn: 4162
* There is no way to guarantee that constants are not forward referenced.Chris Lattner2002-10-143-29/+37
| | | | | | | | 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 areChris Lattner2002-10-131-8/+3
| | | | | | | constructed. Before, external functions would have an empty argument list, now a Function ALWAYS has a populated argument list. llvm-svn: 4149
* - Rename Instruction::First*Op to *OpsBegin, and Num*Ops to *OpsEnd toChris Lattner2002-10-131-2/+2
| | | | | | reflect the fact that it's a range being defined. llvm-svn: 4147
* Updates to work with recent Statistic's changes:Chris Lattner2002-10-012-5/+5
| | | | | | | | | | | | * Renamed StatisticReporter.h/cpp to Statistic.h/cpp * Broke constructor to take two const char * arguments instead of one, so that indendation can be taken care of automatically. * Sort the list by pass name when printing * Make sure to print all statistics as a group, instead of randomly when the statistics dtors are called. * Updated ProgrammersManual with new semantics. llvm-svn: 4002
* Changed uchar to unsigned char in function ParseBytecodeBuffer, because ↵Anand Shukla2002-09-201-1/+1
| | | | | | seemingly it affects opt in uncertain ways :) llvm-svn: 3866
* On the quest of eliminating unnecessary includes.Misha Brukman2002-09-141-2/+0
| | | | llvm-svn: 3715
* Change the MallocInst & AllocaInst ctors to take the allocated type, not theChris Lattner2002-09-131-2/+8
| | | | | | pointer type returned. llvm-svn: 3711
* Eliminated the MemAccessInst class, folding contents into GEP class.Chris Lattner2002-08-221-4/+4
| | | | llvm-svn: 3487
* Load & StoreInst no longer derive from MemAccessInst, so we don't haveChris Lattner2002-08-221-1/+1
| | | | | | to handle indexing anymore llvm-svn: 3485
* Emit an obnoxious warning message for bytecode that includes load/storeChris Lattner2002-08-213-10/+34
| | | | | | | instructions that use indexing. Convert them transparently into a pair of instructions. llvm-svn: 3431
* Fix bug: test/Regression/Assembler/2002-08-19-BytecodeReader.llxChris Lattner2002-08-191-1/+2
| | | | llvm-svn: 3384
* Turn off a debugging optimization that just slows bytecode reading downChris Lattner2002-08-181-1/+1
| | | | llvm-svn: 3377
* Fix stupid oversight of missing #include.Chris Lattner2002-08-171-0/+1
| | | | llvm-svn: 3367
* - Finally nailed: test/Regression/Assembler/2002-08-16-ConstExprInlined.llxChris Lattner2002-08-174-378/+292
| | | | | | | | | | | | | | - 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
* Remove support for Not ConstantExpr. This simplifies the unary case to onlyChris Lattner2002-08-142-8/+4
| | | | | | have to support the cast instruction, so the function is renamed to getCast. llvm-svn: 3328
* Cleanup ConstantExpr handling:Chris Lattner2002-07-301-3/+4
| | | | | | | | | | | | | | * Correctly delete TypeHandles in AsmParser. In addition to not leaking memory, this prevents a bug that could have occurred when a type got resolved that the constexpr was using * Check for errors in the AsmParser instead of hitting assertion failures deep in the code * Simplify the interface to the ConstantExpr class, removing unneccesary parameters to the ::get* methods. * Rename the 'getelementptr' version of ConstantExpr::get to ConstantExpr::getGetElementPtr llvm-svn: 3161
* Cleanup ConstantExpr handling:Chris Lattner2002-07-301-22/+22
| | | | | | | | | | | | | | * Correctly delete TypeHandles in AsmParser. In addition to not leaking memory, this prevents a bug that could have occurred when a type got resolved that the constexpr was using * Check for errors in the AsmParser instead of hitting assertion failures deep in the code * Simplify the interface to the ConstantExpr class, removing unneccesary parameters to the ::get* methods. * Rename the 'getelementptr' version of ConstantExpr::get to ConstantExpr::getGetElementPtr llvm-svn: 3160
* *** empty log message ***Chris Lattner2002-07-262-0/+17
| | | | llvm-svn: 3105
* Break line to fit 80 columnsChris Lattner2002-07-251-1/+2
| | | | llvm-svn: 3083
* Register the WriteBytecodePassChris Lattner2002-07-231-0/+5
| | | | llvm-svn: 3033
* *** empty log message ***Chris Lattner2002-07-232-5/+0
| | | | llvm-svn: 3002
* ConstExpr::getelementptr now takes a vector of Constants not ValuesChris Lattner2002-07-181-2/+2
| | | | llvm-svn: 2948
* added std:: to pairAnand Shukla2002-07-161-0/+1
| | | | llvm-svn: 2917
* added std:: to vectorAnand Shukla2002-07-161-2/+2
| | | | llvm-svn: 2916
* Add support for writing ConstantExpr nodes.Vikram S. Adve2002-07-141-1/+23
| | | | llvm-svn: 2899
* Write out the plane for types first, since values of primitive typesVikram S. Adve2002-07-141-35/+57
| | | | | | | | | may be constructed by expressions of other types (and so the contents of the primitive type planes must come after all types). Use a helper function outputConstantsInPlane in outputConstants to do this. llvm-svn: 2898
* Use a helper function outputConstantsInPlane in outputConstants.Vikram S. Adve2002-07-141-0/+2
| | | | llvm-svn: 2897
* Add support for reading ConstantExpr nodes.Vikram S. Adve2002-07-142-38/+112
| | | | | | | Add class ConstantFwdRefs to resolve forward references to constants and to globals. (Hmm... this class could be renamed I guess.) llvm-svn: 2896
* Add support for reading ConstantExpr nodes.Vikram S. Adve2002-07-141-32/+111
| | | | | | | Add class ConstantFwdRefs to resolve forward references to constants and to globals (unified old code for globals into this). llvm-svn: 2895
* Convert tabs to spacesChris Lattner2002-06-301-4/+4
| | | | llvm-svn: 2805
* changes to make it compatible with 64bit gccAnand Shukla2002-06-253-10/+12
| | | | llvm-svn: 2790
* MEGAPATCH checkin.Chris Lattner2002-06-254-45/+40
| | | | | | For details, See: docs/2002-06-25-MegaPatchInfo.txt llvm-svn: 2778
* Fix constness problemChris Lattner2002-06-051-2/+2
| | | | llvm-svn: 2759
* Fix constness problems now that the cast operators preserve the constnessChris Lattner2002-06-052-5/+5
| | | | | | of their argument llvm-svn: 2758
* Replace all usages of Type::isPointerType with isa<PointerType>Chris Lattner2002-05-063-3/+3
| | | | llvm-svn: 2486
* Eliminate duplicate or unneccesary #include'sChris Lattner2002-04-294-4/+0
| | | | llvm-svn: 2397
* Split ConstantVals.h into Constant.h and Constants.hChris Lattner2002-04-284-7/+6
| | | | llvm-svn: 2378
* Remove unneccesary #includeChris Lattner2002-04-281-1/+0
| | | | llvm-svn: 2352
* Make debugging code not use getStrValueChris Lattner2002-04-181-2/+1
| | | | llvm-svn: 2295
* Move FunctionArgument out of iOther.h into Argument.h and rename class toChris Lattner2002-04-092-2/+3
| | | | | | be 'Argument' instead of FunctionArgument. llvm-svn: 2216
* s/method/functionChris Lattner2002-04-081-1/+1
| | | | llvm-svn: 2177
* llvm/Assembly/Writer.h is unneccesary except for extreme outputChris Lattner2002-04-081-2/+1
| | | | | | isLabelType is obsolete llvm-svn: 2176
* * Move include/llvm/Analysis/SlotCalculator.h to include/llvm/SlotCalculator.hChris Lattner2002-04-072-14/+11
| | | | | | | because the slot calculator is already part of the VMCore library. * Rename incorporateMethod and purgeMethod to *Function llvm-svn: 2154
* Change references to the Method class to be references to the FunctionChris Lattner2002-04-071-4/+4
| | | | | | | class. The Method class is obsolete (renamed) and all references to it are being converted over to Function. llvm-svn: 2144
* Enable better debug output. When debugging the type system, print out theChris Lattner2002-04-071-1/+3
| | | | | | type tables after reading a bytecode file to make sure they are ok llvm-svn: 2126
* s/MethodType/FunctionTypeChris Lattner2002-04-042-8/+8
| | | | llvm-svn: 2115
* Add debug supportChris Lattner2002-04-041-0/+4
| | | | llvm-svn: 2105
* s/Method/FunctionChris Lattner2002-03-295-28/+28
| | | | llvm-svn: 2035
OpenPOWER on IntegriCloud