summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader/Reader.cpp
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
* There is no way to guarantee that constants are not forward referenced.Chris Lattner2002-10-141-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 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
* 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
* Emit an obnoxious warning message for bytecode that includes load/storeChris Lattner2002-08-211-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 downChris Lattner2002-08-181-1/+1
| | | | llvm-svn: 3377
* - Finally nailed: test/Regression/Assembler/2002-08-16-ConstExprInlined.llxChris Lattner2002-08-171-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 pairAnand Shukla2002-07-161-0/+1
| | | | llvm-svn: 2917
* 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
* MEGAPATCH checkin.Chris Lattner2002-06-251-3/+2
| | | | | | For details, See: docs/2002-06-25-MegaPatchInfo.txt llvm-svn: 2778
* Replace all usages of Type::isPointerType with isa<PointerType>Chris Lattner2002-05-061-1/+1
| | | | llvm-svn: 2486
* Eliminate duplicate or unneccesary #include'sChris Lattner2002-04-291-1/+0
| | | | llvm-svn: 2397
* Split ConstantVals.h into Constant.h and Constants.hChris Lattner2002-04-281-1/+1
| | | | llvm-svn: 2378
* Move FunctionArgument out of iOther.h into Argument.h and rename class toChris Lattner2002-04-091-1/+2
| | | | | | be 'Argument' instead of FunctionArgument. llvm-svn: 2216
* s/Method/FunctionChris Lattner2002-03-291-16/+16
| | | | llvm-svn: 2035
* Change references from Method to FunctionChris Lattner2002-03-261-4/+4
| | | | | | change references from MethodARgument to FunctionArgument llvm-svn: 1991
* Chuck fixed the GCC problems so this hack is now unneccesaryChris Lattner2002-01-211-1/+0
| | | | llvm-svn: 1519
* Changes to build successfully with GCC 3.02Chris Lattner2002-01-201-14/+18
| | | | llvm-svn: 1503
* Renamed inst_const_iterator -> const_inst_iteratorChris Lattner2001-12-041-4/+4
| | | | | | | Renamed op_const_iterator -> const_op_iterator Renamed PointerType::getValueType() -> PointerType::getElementType() llvm-svn: 1408
* Rename ConstPoolVal -> ConstantChris Lattner2001-12-031-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 fileChris Lattner2001-12-031-2/+2
| | | | llvm-svn: 1405
* Implement internal method supportChris Lattner2001-11-261-4/+9
| | | | llvm-svn: 1374
* I don't know what I was thinkingChris Lattner2001-11-121-1/+1
| | | | llvm-svn: 1275
* Changes to get some meaningful feedback from the bytecode reader. At some ↵Chris Lattner2001-10-241-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 Lattner2001-10-151-4/+4
| | | | | | tired typing that much llvm-svn: 822
* External methods shouldn't have argument listsChris Lattner2001-10-141-0/+4
| | | | llvm-svn: 807
* * Add real support for global variable addresses initializing constantsChris Lattner2001-10-131-21/+64
| | | | | | | | | * Add minor optimization to BytecodeParser::refineAbstractType * MethodType::get now take an explicit isVarArg parameter * Fix encoding/decoding of VarArgs calls * Support the Invoke instruction llvm-svn: 760
* * Both Method & GlobalVariable now subclass GlobalValueChris Lattner2001-10-031-12/+22
| | | | | | | | * ConstPoolPointerReference now represents a pointer to a GlobalValue * Methods name references are now explicit pointers to methods * Rename Value::GlobalVal to Value::GlobalVariableVal to avoid confusion llvm-svn: 703
* Commit more code over to new cast styleChris Lattner2001-10-021-2/+2
| | | | llvm-svn: 697
* Convert more code to use new style castsChris Lattner2001-10-011-3/+3
| | | | | | Eliminate old style casts from value.h llvm-svn: 696
* Add more support for new style castsChris Lattner2001-10-011-2/+2
| | | | | | Convert more code to use them llvm-svn: 695
* Add support for global constants, and for initializers for constantsChris Lattner2001-09-181-2/+17
| | | | llvm-svn: 598
* Fix a bug with not removing method level types after compilationChris Lattner2001-09-141-0/+3
| | | | llvm-svn: 582
* Implement global variable supportChris Lattner2001-09-101-2/+20
| | | | llvm-svn: 530
* * Remove support for internal constant poolChris Lattner2001-09-071-51/+83
| | | | | | | | | | * Support globally unique constants * Support recursive and forward referenced types * Support abstract types * Add new BCR_TRACE macro to enable debugging of why the bytecode reader occasionally refuses to read something llvm-svn: 448
* * Add calls to failure template so that it is actually possible to debugChris Lattner2001-07-281-49/+51
| | | | | | | why bytecode parsing is failing. Just put a breakpoint in the failure templates. llvm-svn: 323
* Doh! Wrong accessor. Caused 'can not read bytecode' errors. :(Chris Lattner2001-07-231-1/+1
| | | | llvm-svn: 282
* Miscellaneous cleanups:Chris Lattner2001-06-271-10/+7
| | | | | | | | | | | * Convert post to pre-increment for for loops * Use generic programming more * Use new Value::cast* instructions * Use new Module, Method, & BasicBlock forwarding methods * Use new facilities in STLExtras.h * Use new Instruction::isPHINode() method llvm-svn: 96
* Initial revisionChris Lattner2001-06-061-0/+478
llvm-svn: 2
OpenPOWER on IntegriCloud