Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | s/Method/Function | Chris Lattner | 2002-04-08 | 14 | -36/+23 |
| | | | | | | Remove extraneous #includes of llvm/Assembly/Writer llvm-svn: 2178 | ||||
* | ConstantHandling moved into VMCore library | Chris Lattner | 2002-04-08 | 5 | -5/+5 |
| | | | | llvm-svn: 2165 | ||||
* | Eliminate explicit use of Writer library, using debug dump output instead. | Chris Lattner | 2002-04-07 | 1 | -6/+8 |
| | | | | llvm-svn: 2147 | ||||
* | Change references to the Method class to be references to the Function | Chris Lattner | 2002-04-07 | 14 | -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/FunctionType | Chris Lattner | 2002-04-04 | 2 | -7/+7 |
| | | | | llvm-svn: 2115 | ||||
* | PATypeHolder is now not a template | Chris Lattner | 2002-04-04 | 1 | -4/+5 |
| | | | | llvm-svn: 2106 | ||||
* | Allow scalars that point to multiple nodes when building the scalar map. | Chris Lattner | 2002-04-01 | 1 | -5/+0 |
| | | | | llvm-svn: 2087 | ||||
* | Add extra case here to avoid getting spurious output | Chris Lattner | 2002-04-01 | 1 | -0/+4 |
| | | | | llvm-svn: 2086 | ||||
* | Add debug output | Chris Lattner | 2002-03-31 | 1 | -11/+19 |
| | | | | llvm-svn: 2066 | ||||
* | * Catch and ignore (for now) return instructions in tranformed functions | Chris Lattner | 2002-03-30 | 1 | -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 Lattner | 2002-03-30 | 1 | -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 of | Chris Lattner | 2002-03-30 | 1 | -44/+66 |
| | | | | | | the graph can be passed around. llvm-svn: 2053 | ||||
* | Implement the first batch of transformations to the methods. So far it: | Chris Lattner | 2002-03-29 | 1 | -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 need | Chris Lattner | 2002-03-29 | 1 | -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/Function | Chris Lattner | 2002-03-29 | 1 | -6/+6 |
| | | | | llvm-svn: 2048 | ||||
* | New clone function routine | Chris Lattner | 2002-03-29 | 1 | -0/+90 |
| | | | | llvm-svn: 2045 | ||||
* | Find out which calls in the function we need to transform and how. | Chris Lattner | 2002-03-29 | 1 | -15/+189 |
| | | | | | | Next step is to start hacking functions up. llvm-svn: 2044 | ||||
* | s/Method/Function | Chris Lattner | 2002-03-29 | 1 | -3/+3 |
| | | | | llvm-svn: 2043 | ||||
* | Modularize code a bit | Chris Lattner | 2002-03-29 | 1 | -2/+25 |
| | | | | llvm-svn: 2040 | ||||
* | Implement the first step of pool allocation - Creating, initialization, and | Chris Lattner | 2002-03-29 | 1 | -8/+82 |
| | | | | | | destruction of the pools. llvm-svn: 2039 | ||||
* | s/Method/Function | Chris Lattner | 2002-03-29 | 1 | -2/+3 |
| | | | | llvm-svn: 2034 | ||||
* | Simplify code a bit by using Module::getOrInsertFunction | Chris Lattner | 2002-03-29 | 1 | -11/+2 |
| | | | | llvm-svn: 2032 | ||||
* | Flesh out a bunch more code, print allocations that are poolable. | Chris Lattner | 2002-03-29 | 1 | -10/+149 |
| | | | | llvm-svn: 2031 | ||||
* | s/method/function | Chris Lattner | 2002-03-29 | 1 | -30/+26 |
| | | | | llvm-svn: 2030 | ||||
* | s/Method/Function/g | Chris Lattner | 2002-03-29 | 1 | -66/+65 |
| | | | | llvm-svn: 2029 | ||||
* | Simplify code a lot by using the Module::getFunction & getOrInsertFunction | Chris Lattner | 2002-03-29 | 1 | -46/+24 |
| | | | | llvm-svn: 2028 | ||||
* | Initial checkin of Noop pass that will be the pool allocator | Chris Lattner | 2002-03-28 | 1 | -0/+33 |
| | | | | llvm-svn: 2014 | ||||
* | * Move classes around | Cameron Buschardt | 2002-03-27 | 1 | -29/+36 |
| | | | | | | | * rename constructor function * Move stuff into anonymous namespaces llvm-svn: 2007 | ||||
* | Implemented promote mem->reg pass. | Cameron Buschardt | 2002-03-27 | 1 | -64/+286 |
| | | | | llvm-svn: 2005 | ||||
* | Change references from Method to Function | Chris Lattner | 2002-03-26 | 8 | -141/+143 |
| | | | | | | change references from MethodARgument to FunctionArgument llvm-svn: 1991 | ||||
* | Moved to directory Scalar/ and renamed. | Vikram S. Adve | 2002-03-24 | 1 | -148/+0 |
| | | | | llvm-svn: 1977 | ||||
* | Major overhaul to support arbitrary mixed array and structure indices. | Vikram S. Adve | 2002-03-24 | 1 | -63/+94 |
| | | | | | | Also moved to the Scalar/ directory and renamed to "MultiDim". llvm-svn: 1961 | ||||
* | Rename Method to Function | Chris Lattner | 2002-03-23 | 1 | -1/+0 |
| | | | | llvm-svn: 1957 | ||||
* | New pass to decompose multi-dimensional array references into | Vikram S. Adve | 2002-03-23 | 1 | -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.ll | Chris Lattner | 2002-03-21 | 1 | -1/+1 |
| | | | | llvm-svn: 1943 | ||||
* | Fix test/Regression/Transforms/LevelRaise/2002-03-21-MissedRaise2.ll | Chris Lattner | 2002-03-21 | 1 | -2/+1 |
| | | | | llvm-svn: 1941 | ||||
* | Fix test/Regression/Other/2002-03-21-LevelRaiseMiss.ll | Chris Lattner | 2002-03-21 | 1 | -0/+36 |
| | | | | llvm-svn: 1933 | ||||
* | Make ConvertableToGEP handle cases where the user is indexing into the | Chris Lattner | 2002-03-21 | 1 | -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 function | Chris Lattner | 2002-03-21 | 1 | -0/+14 |
| | | | | llvm-svn: 1930 | ||||
* | Fix the: test/Regression/Other/2002-03-20-LevelRaiseCrash.ll bug. It turned | Chris Lattner | 2002-03-21 | 1 | -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 function | Chris Lattner | 2002-03-21 | 1 | -0/+7 |
| | | | | llvm-svn: 1927 | ||||
* | 1. Fix bug test/Regression/Other/2002-03-20-LevelRaiseBadCodegen.ll | Chris Lattner | 2002-03-21 | 1 | -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 code | Chris Lattner | 2002-03-21 | 1 | -1/+1 |
| | | | | llvm-svn: 1921 | ||||
* | Just a comment. | Vikram S. Adve | 2002-03-18 | 1 | -0/+3 |
| | | | | llvm-svn: 1908 | ||||
* | New pass to decompose multi-dimensional array references into | Vikram S. Adve | 2002-03-18 | 1 | -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 since | Chris Lattner | 2002-03-15 | 1 | -57/+5 |
| | | | | | | been fixed. llvm-svn: 1881 | ||||
* | Cleanup error message output a bit | Chris Lattner | 2002-03-15 | 1 | -1/+1 |
| | | | | llvm-svn: 1879 | ||||
* | Fix bug: test/Regression/Other/2002-03-14-LevelRaiseHang.ll | Chris Lattner | 2002-03-14 | 1 | -1/+1 |
| | | | | llvm-svn: 1869 | ||||
* | Fix bug: test/Regression/Other/2002-03-11-InstCombineHang.ll | Chris Lattner | 2002-03-11 | 1 | -2/+2 |
| | | | | llvm-svn: 1864 | ||||
* | update comments | Chris Lattner | 2002-03-11 | 1 | -3/+2 |
| | | | | llvm-svn: 1862 |