aboutsummaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate all uses of memInst->getIndicesBROKEN().Vikram S. Adve2001-12-151-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1485 91177308-0d34-0410-b5e6-96231b3b80d8
* getIndexedOffset() shd take vector of Values, not of Constants!Vikram S. Adve2001-12-151-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1484 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial checkin of instcombineChris Lattner2001-12-141-0/+27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1479 91177308-0d34-0410-b5e6-96231b3b80d8
* Refactor trace values to work as a proper pass. Before it used to addChris Lattner2001-12-141-4/+9
| | | | | | | | methods while the pass was running which was a no no. Now it adds the printf method at pass initialization git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1456 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
* PointerType and ArrayType now subclass Sequential type, which contains ↵Chris Lattner2001-12-141-70/+86
| | | | | | addressability logic for indexing. Unsized arrays have been removed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1454 91177308-0d34-0410-b5e6-96231b3b80d8
* Swap operands now preserves the semantics of the binary operator by changingChris Lattner2001-12-131-4/+8
| | | | | | | the opcode of the instruction if possible. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1444 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement some nice functions useful for looking at typesChris Lattner2001-12-131-1/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1442 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement proper iterator tagsChris Lattner2001-12-131-1/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1441 91177308-0d34-0410-b5e6-96231b3b80d8
* Subclasses can change the opcode of an instructionChris Lattner2001-12-131-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1440 91177308-0d34-0410-b5e6-96231b3b80d8
* Constants KNOW they are of a derived typeChris Lattner2001-12-131-0/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1439 91177308-0d34-0410-b5e6-96231b3b80d8
* Added comments are more documentation infoRuchira Sasanka2001-12-082-12/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1434 91177308-0d34-0410-b5e6-96231b3b80d8
* Renamed inst_const_iterator -> const_inst_iteratorChris Lattner2001-12-046-18/+18
| | | | | | | | 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-0323-230/+228
| | | | | | | | 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
* Simplify induction variables passChris Lattner2001-12-031-0/+19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1406 91177308-0d34-0410-b5e6-96231b3b80d8
* Split the PHINode class out from the iOther.h file into the iPHINode.h fileChris Lattner2001-12-032-68/+80
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1405 91177308-0d34-0410-b5e6-96231b3b80d8
* Induction variables must be phi nodesChris Lattner2001-12-031-4/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1402 91177308-0d34-0410-b5e6-96231b3b80d8
* Create a new #include "Support/..." directory structure to move thingsChris Lattner2001-11-2730-43/+1613
| | | | | | | | | from "llvm/Support/..." that are not llvm dependant. Move files and fix #includes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1400 91177308-0d34-0410-b5e6-96231b3b80d8
* Move DataTypes.h from llvm/Support to just SupportChris Lattner2001-11-268-7/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1399 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove unused methodChris Lattner2001-11-261-9/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1368 91177308-0d34-0410-b5e6-96231b3b80d8
* Expose constant prop of an instructionChris Lattner2001-11-261-0/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1367 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix field initialization order problemChris Lattner2001-11-261-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1366 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow output of manipulators for GCC 2.96 compatibilityChris Lattner2001-11-261-6/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1365 91177308-0d34-0410-b5e6-96231b3b80d8
* Add writer support for call graph nodes and loops and induction variablesChris Lattner2001-11-261-2/+24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1364 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement an entry node for the call graphChris Lattner2001-11-261-9/+76
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1363 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement "internal vs external linkage" which corresponds to the C notion ↵Chris Lattner2001-11-263-5/+12
| | | | | | of static git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1362 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement DCE of global valuesChris Lattner2001-11-261-0/+21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1360 91177308-0d34-0410-b5e6-96231b3b80d8
* * Implement dominator based loop identificationChris Lattner2001-11-262-0/+160
| | | | | | | * Implement cleaner induction variable identification git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1359 91177308-0d34-0410-b5e6-96231b3b80d8
* Rearrange codeChris Lattner2001-11-261-18/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1334 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow array indexingChris Lattner2001-11-261-2/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1333 91177308-0d34-0410-b5e6-96231b3b80d8
* Be more const correctChris Lattner2001-11-261-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1332 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
* New Method isLosslesslyConvertableToChris Lattner2001-11-261-0/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1330 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new CompositeType shared baseclass of ArrayType and StructTypeChris Lattner2001-11-261-2/+61
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1329 91177308-0d34-0410-b5e6-96231b3b80d8
* Add castsChris Lattner2001-11-261-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1328 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix protection probsChris Lattner2001-11-151-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1321 91177308-0d34-0410-b5e6-96231b3b80d8
* Modify method AllocateLocalVar to take size argument.Vikram S. Adve2001-11-151-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1320 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
* -cleangcc pass now remove type names that are never referenced and type ↵Chris Lattner2001-11-151-1/+5
| | | | | | names for pointers to primitive types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1312 91177308-0d34-0410-b5e6-96231b3b80d8
* Add function returning which operand holds immediate constantVikram S. Adve2001-11-142-0/+14
| | | | | | | for a given opcode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1307 91177308-0d34-0410-b5e6-96231b3b80d8
* added isPseudoInstr()Ruchira Sasanka2001-11-142-0/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1302 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
* Changed for adding Phi Elimination codeRuchira Sasanka2001-11-122-0/+22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1266 91177308-0d34-0410-b5e6-96231b3b80d8
* Made isPhi constRuchira Sasanka2001-11-102-2/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1251 91177308-0d34-0410-b5e6-96231b3b80d8
* Initail checking of structure swapperChris Lattner2001-11-101-0/+35
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1248 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial checkin of Structure mutatorChris Lattner2001-11-101-0/+87
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1245 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
* Refactor some functionality to expose more useful stuffChris Lattner2001-11-101-7/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1240 91177308-0d34-0410-b5e6-96231b3b80d8
* New pass to figure out what types are in use by a programChris Lattner2001-11-091-0/+58
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1231 91177308-0d34-0410-b5e6-96231b3b80d8
* Cache parameters for target machine.Vikram S. Adve2001-11-091-0/+67
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1222 91177308-0d34-0410-b5e6-96231b3b80d8