summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader/InstructionReader.cpp
Commit message (Collapse)AuthorAgeFilesLines
* - 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
* 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-211-8/+30
| | | | | | | instructions that use indexing. Convert them transparently into a pair of instructions. llvm-svn: 3431
* - Finally nailed: test/Regression/Assembler/2002-08-16-ConstExprInlined.llxChris Lattner2002-08-171-59/+58
| | | | | | | | | | | | | | - 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-7/+2
| | | | | | have to support the cast instruction, so the function is renamed to getCast. llvm-svn: 3328
* Fix constness problems now that the cast operators preserve the constnessChris Lattner2002-06-051-4/+4
| | | | | | of their argument llvm-svn: 2758
* Replace all usages of Type::isPointerType with isa<PointerType>Chris Lattner2002-05-061-1/+1
| | | | llvm-svn: 2486
* s/MethodType/FunctionTypeChris Lattner2002-04-041-6/+6
| | | | llvm-svn: 2115
* Changes to build successfully with GCC 3.02Chris Lattner2002-01-201-2/+5
| | | | llvm-svn: 1503
* Add pointer indexing supportChris Lattner2001-12-141-9/+12
| | | | llvm-svn: 1460
* 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-1/+1
| | | | | | | 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-3/+3
| | | | llvm-svn: 1405
* Implement array indexingChris Lattner2001-11-261-26/+47
| | | | llvm-svn: 1337
* Remove debug info :(Chris Lattner2001-11-121-3/+1
| | | | llvm-svn: 1280
* Fix bug in new assertionChris Lattner2001-11-121-4/+7
| | | | llvm-svn: 1279
* Add an assertion checkChris Lattner2001-11-121-0/+2
| | | | llvm-svn: 1276
* Fixed a LONG standing, SCARY problem with bytecode encoding. It turns out ↵Chris Lattner2001-10-231-12/+36
| | | | | | to be an endian problem that only shows up with type 0 instructions in LARGE programs. llvm-svn: 961
* Fix problem with a cast instruction that must be expanded to type 0Chris Lattner2001-10-211-3/+7
| | | | llvm-svn: 929
* * Add real support for global variable addresses initializing constantsChris Lattner2001-10-131-12/+71
| | | | | | | | | * 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-2/+2
| | | | | | | | * 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-11/+11
| | | | llvm-svn: 697
* Convert more code to use new style castsChris Lattner2001-10-011-14/+14
| | | | | | Eliminate old style casts from value.h llvm-svn: 696
* getMethodType is now just getTypeChris Lattner2001-09-101-2/+2
| | | | llvm-svn: 538
* * Remove support for internal constant poolChris Lattner2001-09-071-1/+1
| | | | | | | | | | * 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-38/+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-18/+36
| | | | llvm-svn: 297
* Implementation of Store & GetElementPtrChris Lattner2001-07-081-2/+35
| | | | llvm-svn: 164
* Implemented shl, shl, & load instructionsChris Lattner2001-07-081-16/+71
| | | | llvm-svn: 161
* Moved Cast from being a Unary instruction to being an "Other" instructionChris Lattner2001-07-081-2/+1
| | | | llvm-svn: 160
* Neg instruction removed. Cast instruction implemented.Chris Lattner2001-07-081-0/+4
| | | | llvm-svn: 156
* Convert BinaryOperand and UnaryOperator to only take instruction types ofChris Lattner2001-07-071-3/+5
| | | | | | the appropriate enum llvm-svn: 153
* Changed the fundemental architecture of Operands for Instructions. NowChris Lattner2001-07-071-7/+11
| | | | | | | | | | | Operands are maintained as a vector<Use> in the User class, and operator iterators are provided as before. Getting an operand no longer requires a virtual function call. WARNING: getOperand(x) where x >= getNumOperands() will now assert instead of returning null! llvm-svn: 149
* Renamed get.*Operator to create seeing that it would have to be qualifiedChris Lattner2001-06-251-4/+3
| | | | | | with the classname anyways. llvm-svn: 74
* Updates to supportChris Lattner2001-06-111-13/+18
| | | | | | * Changes in PHI node structure llvm-svn: 25
* Moved getBinaryOperator to the BinaryOperator class and the getUnaryOperatorChris Lattner2001-06-081-3/+4
| | | | | | to the UnaryOperator class (from the Instruction class). llvm-svn: 21
* Initial revisionChris Lattner2001-06-061-0/+213
llvm-svn: 2
OpenPOWER on IntegriCloud