summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader/ConstantReader.cpp
Commit message (Collapse)AuthorAgeFilesLines
* There is no way to guarantee that constants are not forward referenced.Chris Lattner2002-10-141-29/+8
| | | | | | | | 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
* Fix bug: test/Regression/Assembler/2002-08-19-BytecodeReader.llxChris Lattner2002-08-191-1/+2
| | | | llvm-svn: 3384
* 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-171-55/+90
| | | | | | | | | | | | | | - 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-141-1/+2
| | | | | | have to support the cast instruction, so the function is renamed to getCast. llvm-svn: 3328
* 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
* Break line to fit 80 columnsChris Lattner2002-07-251-1/+2
| | | | llvm-svn: 3083
* ConstExpr::getelementptr now takes a vector of Constants not ValuesChris Lattner2002-07-181-2/+2
| | | | llvm-svn: 2948
* added std:: to vectorAnand Shukla2002-07-161-2/+2
| | | | llvm-svn: 2916
* Add support for reading ConstantExpr nodes.Vikram S. Adve2002-07-141-25/+59
| | | | | | | Add class ConstantFwdRefs to resolve forward references to constants and to globals. (Hmm... this class could be renamed I guess.) llvm-svn: 2896
* Convert tabs to spacesChris Lattner2002-06-301-4/+4
| | | | llvm-svn: 2805
* changes to make it compatible with 64bit gccAnand Shukla2002-06-251-6/+7
| | | | llvm-svn: 2790
* Fix constness problems now that the cast operators preserve the constnessChris Lattner2002-06-051-1/+1
| | | | | | of their argument llvm-svn: 2758
* 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
* 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/Method/FunctionChris Lattner2002-03-291-2/+2
| | | | llvm-svn: 2035
* Changes to build successfully with GCC 3.02Chris Lattner2002-01-201-8/+9
| | | | llvm-svn: 1503
* Remove unsized array supportChris Lattner2001-12-141-6/+3
| | | | llvm-svn: 1461
* Renamed inst_const_iterator -> const_inst_iteratorChris Lattner2001-12-041-1/+1
| | | | | | | Renamed op_const_iterator -> const_op_iterator Renamed PointerType::getValueType() -> PointerType::getElementType() llvm-svn: 1408
* Rename ConstPoolVal -> ConstantChris Lattner2001-12-031-29/+28
| | | | | | | 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/+1
| | | | llvm-svn: 1405
* Implement internal method supportChris Lattner2001-11-261-1/+2
| | | | llvm-svn: 1374
* Fix major bugs in type resolutionChris Lattner2001-11-031-2/+8
| | | | llvm-svn: 1092
* Frivolous cleanupsChris Lattner2001-10-241-18/+16
| | | | llvm-svn: 973
* Fix another annoying bug that took forever to track down. This one involves ↵Chris Lattner2001-10-231-0/+5
| | | | | | abstract type resolution at a bad time that broke symbol tables. llvm-svn: 958
* Rename ConstPoolPointerReference to ConstPoolPointerRef - My fingers get ↵Chris Lattner2001-10-151-2/+2
| | | | | | tired typing that much llvm-svn: 822
* * Add real support for global variable addresses initializing constantsChris Lattner2001-10-131-15/+55
| | | | | | | | | * 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
* Rename getNullPointer to getNullChris Lattner2001-10-031-1/+1
| | | | llvm-svn: 708
* * Both Method & GlobalVariable now subclass GlobalValueChris Lattner2001-10-031-1/+1
| | | | | | | | * 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-3/+3
| | | | llvm-svn: 697
* Convert more code to use new style castsChris Lattner2001-10-011-4/+4
| | | | | | Eliminate old style casts from value.h llvm-svn: 696
* Add more support for new style castsChris Lattner2001-10-011-3/+2
| | | | | | Convert more code to use them llvm-svn: 695
* Implement constant pointers, and null specifically in the parser, bytecode ↵Chris Lattner2001-09-301-1/+12
| | | | | | | | writer, and bytecode reader. llvm-svn: 668
* * Remove support for internal constant poolChris Lattner2001-09-071-51/+125
| | | | | | | | | | * 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-37/+37
| | | | | | | why bytecode parsing is failing. Just put a breakpoint in the failure templates. llvm-svn: 323
* Add support for extern varargs methods & varargs method callsChris Lattner2001-07-251-5/+5
| | | | llvm-svn: 297
* Add support to the bytecode reader to recognize floating point constantsChris Lattner2001-07-151-0/+14
| | | | llvm-svn: 189
* Miscellaneous cleanups:Chris Lattner2001-06-271-2/+2
| | | | | | | | | | | * 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/+218
llvm-svn: 2
OpenPOWER on IntegriCloud