summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
Commit message (Collapse)AuthorAgeFilesLines
* s/Method/FunctionChris Lattner2002-04-0814-36/+23
| | | | | | Remove extraneous #includes of llvm/Assembly/Writer llvm-svn: 2178
* ConstantHandling moved into VMCore libraryChris Lattner2002-04-085-5/+5
| | | | llvm-svn: 2165
* Eliminate explicit use of Writer library, using debug dump output instead.Chris Lattner2002-04-071-6/+8
| | | | llvm-svn: 2147
* Change references to the Method class to be references to the FunctionChris Lattner2002-04-0714-159/+152
| | | | | | | class. The Method class is obsolete (renamed) and all references to it are being converted over to Function. llvm-svn: 2144
* s/MethodType/FunctionTypeChris Lattner2002-04-042-7/+7
| | | | llvm-svn: 2115
* PATypeHolder is now not a templateChris Lattner2002-04-041-4/+5
| | | | llvm-svn: 2106
* Allow scalars that point to multiple nodes when building the scalar map.Chris Lattner2002-04-011-5/+0
| | | | llvm-svn: 2087
* Add extra case here to avoid getting spurious outputChris Lattner2002-04-011-0/+4
| | | | llvm-svn: 2086
* Add debug outputChris Lattner2002-03-311-11/+19
| | | | llvm-svn: 2066
* * Catch and ignore (for now) return instructions in tranformed functionsChris Lattner2002-03-301-31/+58
| | | | | | | | | | | * Add more debugging output * Fix problems refering to wrong versions of various graphs * Build the pool descriptor map! * Clear the nodemapping map after building pool descriptor to avoid assert * Transform the NEw function body, not the old one... * Matrix.ll now works! llvm-svn: 2058
* * Clean up data structures [AllocDSNode -> DSNode]Chris Lattner2002-03-301-74/+232
| | | | | | | | | | | | | * TransformFunctionInfo now has call field form field mapping. May be removed in the future. * Moved the computation of "Scalars" into transformFunctionBody so transformFunction didn't have to recompute it. * Implement the node mapping calculation in preparation to calculate PoolDescriptors to pass to transformFunctionBody * Print out the node mapping [it looks right!] * Other minor changes llvm-svn: 2056
* Maintain enough information so that the pools for all of the nodes ofChris Lattner2002-03-301-44/+66
| | | | | | the graph can be passed around. llvm-svn: 2053
* Implement the first batch of transformations to the methods. So far it:Chris Lattner2002-03-291-2/+172
| | | | | | | | | | | * Converts malloc instructions to poolalloc * Converts free instructions to poolfree * Convert calls to call the new cloned hacked up versions Note that this does not modify hacked up stuff yet, just the top level function llvm-svn: 2052
* Correctly clone the function with the extra argument types. Now we needChris Lattner2002-03-291-6/+74
| | | | | | | | | to modify the function next. This also properly recycles functions so that we don't get exponential code blowup in the common case. llvm-svn: 2049
* s/Method/FunctionChris Lattner2002-03-291-6/+6
| | | | llvm-svn: 2048
* New clone function routineChris Lattner2002-03-291-0/+90
| | | | llvm-svn: 2045
* Find out which calls in the function we need to transform and how.Chris Lattner2002-03-291-15/+189
| | | | | | Next step is to start hacking functions up. llvm-svn: 2044
* s/Method/FunctionChris Lattner2002-03-291-3/+3
| | | | llvm-svn: 2043
* Modularize code a bitChris Lattner2002-03-291-2/+25
| | | | llvm-svn: 2040
* Implement the first step of pool allocation - Creating, initialization, andChris Lattner2002-03-291-8/+82
| | | | | | destruction of the pools. llvm-svn: 2039
* s/Method/FunctionChris Lattner2002-03-291-2/+3
| | | | llvm-svn: 2034
* Simplify code a bit by using Module::getOrInsertFunctionChris Lattner2002-03-291-11/+2
| | | | llvm-svn: 2032
* Flesh out a bunch more code, print allocations that are poolable.Chris Lattner2002-03-291-10/+149
| | | | llvm-svn: 2031
* s/method/functionChris Lattner2002-03-291-30/+26
| | | | llvm-svn: 2030
* s/Method/Function/gChris Lattner2002-03-291-66/+65
| | | | llvm-svn: 2029
* Simplify code a lot by using the Module::getFunction & getOrInsertFunctionChris Lattner2002-03-291-46/+24
| | | | llvm-svn: 2028
* Initial checkin of Noop pass that will be the pool allocatorChris Lattner2002-03-281-0/+33
| | | | llvm-svn: 2014
* * Move classes aroundCameron Buschardt2002-03-271-29/+36
| | | | | | | * rename constructor function * Move stuff into anonymous namespaces llvm-svn: 2007
* Implemented promote mem->reg pass.Cameron Buschardt2002-03-271-64/+286
| | | | llvm-svn: 2005
* Change references from Method to FunctionChris Lattner2002-03-268-141/+143
| | | | | | change references from MethodARgument to FunctionArgument llvm-svn: 1991
* Moved to directory Scalar/ and renamed.Vikram S. Adve2002-03-241-148/+0
| | | | llvm-svn: 1977
* Major overhaul to support arbitrary mixed array and structure indices.Vikram S. Adve2002-03-241-63/+94
| | | | | | Also moved to the Scalar/ directory and renamed to "MultiDim". llvm-svn: 1961
* Rename Method to FunctionChris Lattner2002-03-231-1/+0
| | | | llvm-svn: 1957
* New pass to decompose multi-dimensional array references intoVikram S. Adve2002-03-231-0/+148
| | | | | | a sequence of 1-D references, using a sequence of getElementPtrs. llvm-svn: 1948
* Fix bug test/Regression/Transforms/LevelRaise/2002-03-21-MissedRaise3.llChris Lattner2002-03-211-1/+1
| | | | llvm-svn: 1943
* Fix test/Regression/Transforms/LevelRaise/2002-03-21-MissedRaise2.llChris Lattner2002-03-211-2/+1
| | | | llvm-svn: 1941
* Fix test/Regression/Other/2002-03-21-LevelRaiseMiss.llChris Lattner2002-03-211-0/+36
| | | | llvm-svn: 1933
* Make ConvertableToGEP handle cases where the user is indexing into theChris Lattner2002-03-211-23/+29
| | | | | | | | | | | first element of a structure type. Before this would not be handled because getStructOffset would either stop immediately (because StopEarly was true and Offset = 0), or blast past the level we wanted. Now ConvertableToGEP steps down through the type one level at a time, checking the Offset and Scale conditions at each step llvm-svn: 1931
* Implement the new InsertInstBeforeInst functionChris Lattner2002-03-211-0/+14
| | | | llvm-svn: 1930
* Fix the: test/Regression/Other/2002-03-20-LevelRaiseCrash.ll bug. It turnedChris Lattner2002-03-211-5/+24
| | | | | | | out that almost always the result of the add was the same as the GEP that would be generated. In this case, however, it wasn't, so bad things happened. llvm-svn: 1929
* Declare the new InsertInstBeforeInst functionChris Lattner2002-03-211-0/+7
| | | | llvm-svn: 1927
* 1. Fix bug test/Regression/Other/2002-03-20-LevelRaiseBadCodegen.llChris Lattner2002-03-211-15/+21
| | | | | | | | | | | | 2. Allow negative scales in ConvertableToGEP, so that this loop from alloc_tree in the Olden health benchmark is correctly raised: for (i = 3; i >= 0; i--) fval[i] = alloc_tree(level - 1, label*4 + i + 1, new); Stepping through the array backwards caused a negative scale. llvm-svn: 1922
* Namespace qualify debugging codeChris Lattner2002-03-211-1/+1
| | | | llvm-svn: 1921
* Just a comment.Vikram S. Adve2002-03-181-0/+3
| | | | llvm-svn: 1908
* New pass to decompose multi-dimensional array references intoVikram S. Adve2002-03-181-0/+148
| | | | | | a sequence of 1-D references, using a sequence of getElementPtrs. llvm-svn: 1907
* Remove code designed to compensate for a bug in GCC. The bug has sinceChris Lattner2002-03-151-57/+5
| | | | | | been fixed. llvm-svn: 1881
* Cleanup error message output a bitChris Lattner2002-03-151-1/+1
| | | | llvm-svn: 1879
* Fix bug: test/Regression/Other/2002-03-14-LevelRaiseHang.llChris Lattner2002-03-141-1/+1
| | | | llvm-svn: 1869
* Fix bug: test/Regression/Other/2002-03-11-InstCombineHang.llChris Lattner2002-03-111-2/+2
| | | | llvm-svn: 1864
* update commentsChris Lattner2002-03-111-3/+2
| | | | llvm-svn: 1862
OpenPOWER on IntegriCloud