aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/iMemory.h
Commit message (Collapse)AuthorAgeFilesLines
* Rename Instruction::hasSideEffects() -> mayWriteToMemory()Chris Lattner2003-02-241-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5620 91177308-0d34-0410-b5e6-96231b3b80d8
* Add routines to update or erase operands (and to do so without externalVikram S. Adve2002-09-161-1/+6
| | | | | | | assumptions about which operand number stores what operand). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3750 91177308-0d34-0410-b5e6-96231b3b80d8
* Change the MallocInst & AllocaInst ctors to take the allocated type, not theChris Lattner2002-09-131-4/+8
| | | | | | | pointer type returned. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3711 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement support for inserting an instruction into a basic block right when itChris Lattner2002-09-101-9/+12
| | | | | | | is created. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3651 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminated the MemAccessInst class, folding contents into GEP class.Chris Lattner2002-08-221-67/+36
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3487 91177308-0d34-0410-b5e6-96231b3b80d8
* Load and Store now no longer derive from MemAccessInst. Indexing a load orChris Lattner2002-08-221-18/+16
| | | | | | | store is not possible anymore. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3482 91177308-0d34-0410-b5e6-96231b3b80d8
* Add MemAccessInst::getNumIndices().Vikram S. Adve2002-08-031-1/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3234 91177308-0d34-0410-b5e6-96231b3b80d8
* Create a static version of Instruction::getOpcodeName(opCode) thatVikram S. Adve2002-07-141-10/+0
| | | | | | | | can be invoked with only an opcode (i.e., without an instruction). Move all opCode->opCodeName translations there. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2892 91177308-0d34-0410-b5e6-96231b3b80d8
* Change to allow iMemory.h to avoid including DerivedTypes.hChris Lattner2002-04-291-19/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2403 91177308-0d34-0410-b5e6-96231b3b80d8
* * StoreInst's shouldn't take names (they are _always_ void type)Chris Lattner2002-04-181-6/+2
| | | | | | | * Remove two methods that are not used git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2281 91177308-0d34-0410-b5e6-96231b3b80d8
* * Make AllocationInst ctor protectedChris Lattner2002-03-211-23/+10
| | | | | | | | * Move AllocationInst ctor to iMemory.cpp * AllocationInst's always have one operand, even if it is a uint 1 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1938 91177308-0d34-0410-b5e6-96231b3b80d8
* Add isa,cast,dyncast support for AllocationInst.Chris Lattner2002-03-181-0/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1915 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix isArrayAllocation() to be correctChris Lattner2002-02-191-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1779 91177308-0d34-0410-b5e6-96231b3b80d8
* Changes to build successfully with GCC 3.02Chris Lattner2002-01-201-14/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1503 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate function getIndicesBROKEN().Vikram S. Adve2001-12-151-3/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1486 91177308-0d34-0410-b5e6-96231b3b80d8
* * Remove support for unsized arrays.Chris Lattner2001-12-141-11/+11
| | | | | | | | * Free instruction does not accept a name * MemAccessInst can now be used with cast/isa/dyn_cast/... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1455 91177308-0d34-0410-b5e6-96231b3b80d8
* Renamed inst_const_iterator -> const_inst_iteratorChris Lattner2001-12-041-7/+7
| | | | | | | | Renamed op_const_iterator -> const_op_iterator Renamed PointerType::getValueType() -> PointerType::getElementType() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1408 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename ConstPoolVal -> ConstantChris Lattner2001-12-031-1/+1
| | | | | | | | Rename ConstPool* -> Constant* Rename ConstPoolVals.h -> ConstantVals.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1407 91177308-0d34-0410-b5e6-96231b3b80d8
* * Remove the indexVec stuff which gets out of sync with the operands of theChris Lattner2001-11-261-19/+27
| | | | | | | | | | instruction. * Change the indices to take a vector of Value's instead of ConstPoolVal's for array indexing * Add new idx_ iterator support for iterating over indices git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1331 91177308-0d34-0410-b5e6-96231b3b80d8
* Bug fix for Chris.Vikram S. Adve2001-11-151-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1316 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove much cruft from the MemAccessInst instructionChris Lattner2001-11-141-13/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1298 91177308-0d34-0410-b5e6-96231b3b80d8
* Provide const version of function with the name the other will be eventually ↵Chris Lattner2001-11-101-0/+3
| | | | | | renamed to git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1241 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor method renameChris Lattner2001-11-041-12/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1119 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix the linker. This bug was not fun to track down. grrChris Lattner2001-11-031-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1090 91177308-0d34-0410-b5e6-96231b3b80d8
* Add simpler to use ctors. Add getType() overload to specialize ↵Chris Lattner2001-11-011-0/+10
| | | | | | getelementptr's type git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1077 91177308-0d34-0410-b5e6-96231b3b80d8
* Add some useful accessorsChris Lattner2001-11-011-0/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1069 91177308-0d34-0410-b5e6-96231b3b80d8
* Add some casts to make GCC 2.96 happy.Chris Lattner2001-10-131-2/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@741 91177308-0d34-0410-b5e6-96231b3b80d8
* Commit more code over to new cast styleChris Lattner2001-10-021-4/+59
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@697 91177308-0d34-0410-b5e6-96231b3b80d8
* Add assertion to check forChris Lattner2001-09-071-0/+5
| | | | | | | | alloca [int] for example git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@429 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove target specific method.Chris Lattner2001-08-271-4/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@378 91177308-0d34-0410-b5e6-96231b3b80d8
* Provide uniform access to the pointer operand and to the indexVikram S. Adve2001-07-201-9/+33
| | | | | | | operands (if any) for different types of MemAccessInst's. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221 91177308-0d34-0410-b5e6-96231b3b80d8
* Made the following changes:Chris Lattner2001-07-141-0/+3
| | | | | | | | | | | | | | | | * ValueHolder became a 3 argument template. This allows for BasicBlock to use the value holder arg as a typesafe parent pointer. * SymTabValue no longer inherits from Value * Method does not inherit from only SymTabValue. Now it inherits from both STV & Value. * Module does not inherit from only SymTabValue. Now it inherits from both STV & Value. * Updated the SymTabValue.h file to reference SymTabValue instead of STDef in several places * Added isArraySelector & isStructSelector to GetElementPtr instruction git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177 91177308-0d34-0410-b5e6-96231b3b80d8
* hasSideEffects should be marked virtualChris Lattner2001-07-091-0/+4
| | | | | | | stores and free's have sideeffects git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170 91177308-0d34-0410-b5e6-96231b3b80d8
* Implementation of Store & GetElementPtrChris Lattner2001-07-081-10/+85
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164 91177308-0d34-0410-b5e6-96231b3b80d8
* Implemented shl, shl, & load instructionsChris Lattner2001-07-081-7/+30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161 91177308-0d34-0410-b5e6-96231b3b80d8
* Broad superficial changes:Chris Lattner2001-07-071-3/+3
| | | | | | | | | | * Renamed getOpcode to getOpcodeName * Changed getOpcodeName to return a const char * instead of string * Added a getOpcode method to replace getInstType * Changed code to use getOpcode instead of getInstType git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152 91177308-0d34-0410-b5e6-96231b3b80d8
* Changed the fundemental architecture of Operands for Instructions. NowChris Lattner2001-07-071-83/+24
| | | | | | | | | | | | 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! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial revisionChris Lattner2001-06-061-0/+140
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2 91177308-0d34-0410-b5e6-96231b3b80d8