summaryrefslogtreecommitdiff
path: root/lib/Transforms
Commit message (Collapse)AuthorAge
...
* Implement the first batch of transformations to the methods. So far it:Chris Lattner2002-03-29
| | | | | | | | | | | | * 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2052 91177308-0d34-0410-b5e6-96231b3b80d8
* Correctly clone the function with the extra argument types. Now we needChris Lattner2002-03-29
| | | | | | | | | | to modify the function next. This also properly recycles functions so that we don't get exponential code blowup in the common case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2049 91177308-0d34-0410-b5e6-96231b3b80d8
* s/Method/FunctionChris Lattner2002-03-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2048 91177308-0d34-0410-b5e6-96231b3b80d8
* New clone function routineChris Lattner2002-03-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2045 91177308-0d34-0410-b5e6-96231b3b80d8
* Find out which calls in the function we need to transform and how.Chris Lattner2002-03-29
| | | | | | | Next step is to start hacking functions up. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2044 91177308-0d34-0410-b5e6-96231b3b80d8
* s/Method/FunctionChris Lattner2002-03-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2043 91177308-0d34-0410-b5e6-96231b3b80d8
* Modularize code a bitChris Lattner2002-03-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2040 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement the first step of pool allocation - Creating, initialization, andChris Lattner2002-03-29
| | | | | | | destruction of the pools. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2039 91177308-0d34-0410-b5e6-96231b3b80d8
* s/Method/FunctionChris Lattner2002-03-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2034 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify code a bit by using Module::getOrInsertFunctionChris Lattner2002-03-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2032 91177308-0d34-0410-b5e6-96231b3b80d8
* Flesh out a bunch more code, print allocations that are poolable.Chris Lattner2002-03-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2031 91177308-0d34-0410-b5e6-96231b3b80d8
* s/method/functionChris Lattner2002-03-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2030 91177308-0d34-0410-b5e6-96231b3b80d8
* s/Method/Function/gChris Lattner2002-03-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2029 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify code a lot by using the Module::getFunction & getOrInsertFunctionChris Lattner2002-03-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2028 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial checkin of Noop pass that will be the pool allocatorChris Lattner2002-03-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2014 91177308-0d34-0410-b5e6-96231b3b80d8
* * Move classes aroundCameron Buschardt2002-03-27
| | | | | | | | * rename constructor function * Move stuff into anonymous namespaces git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2007 91177308-0d34-0410-b5e6-96231b3b80d8
* Implemented promote mem->reg pass.Cameron Buschardt2002-03-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2005 91177308-0d34-0410-b5e6-96231b3b80d8
* Change references from Method to FunctionChris Lattner2002-03-26
| | | | | | | change references from MethodARgument to FunctionArgument git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1991 91177308-0d34-0410-b5e6-96231b3b80d8
* Moved to directory Scalar/ and renamed.Vikram S. Adve2002-03-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1977 91177308-0d34-0410-b5e6-96231b3b80d8
* Major overhaul to support arbitrary mixed array and structure indices.Vikram S. Adve2002-03-24
| | | | | | | Also moved to the Scalar/ directory and renamed to "MultiDim". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1961 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename Method to FunctionChris Lattner2002-03-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1957 91177308-0d34-0410-b5e6-96231b3b80d8
* New pass to decompose multi-dimensional array references intoVikram S. Adve2002-03-23
| | | | | | | a sequence of 1-D references, using a sequence of getElementPtrs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1948 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug test/Regression/Transforms/LevelRaise/2002-03-21-MissedRaise3.llChris Lattner2002-03-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1943 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix test/Regression/Transforms/LevelRaise/2002-03-21-MissedRaise2.llChris Lattner2002-03-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1941 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix test/Regression/Other/2002-03-21-LevelRaiseMiss.llChris Lattner2002-03-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1933 91177308-0d34-0410-b5e6-96231b3b80d8
* Make ConvertableToGEP handle cases where the user is indexing into theChris Lattner2002-03-21
| | | | | | | | | | | | 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1931 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement the new InsertInstBeforeInst functionChris Lattner2002-03-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1930 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix the: test/Regression/Other/2002-03-20-LevelRaiseCrash.ll bug. It turnedChris Lattner2002-03-21
| | | | | | | | 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1929 91177308-0d34-0410-b5e6-96231b3b80d8
* Declare the new InsertInstBeforeInst functionChris Lattner2002-03-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1927 91177308-0d34-0410-b5e6-96231b3b80d8
* 1. Fix bug test/Regression/Other/2002-03-20-LevelRaiseBadCodegen.llChris Lattner2002-03-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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1922 91177308-0d34-0410-b5e6-96231b3b80d8
* Namespace qualify debugging codeChris Lattner2002-03-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1921 91177308-0d34-0410-b5e6-96231b3b80d8
* Just a comment.Vikram S. Adve2002-03-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1908 91177308-0d34-0410-b5e6-96231b3b80d8
* New pass to decompose multi-dimensional array references intoVikram S. Adve2002-03-18
| | | | | | | a sequence of 1-D references, using a sequence of getElementPtrs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1907 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove code designed to compensate for a bug in GCC. The bug has sinceChris Lattner2002-03-15
| | | | | | | been fixed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1881 91177308-0d34-0410-b5e6-96231b3b80d8
* Cleanup error message output a bitChris Lattner2002-03-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1879 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: test/Regression/Other/2002-03-14-LevelRaiseHang.llChris Lattner2002-03-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1869 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: test/Regression/Other/2002-03-11-InstCombineHang.llChris Lattner2002-03-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1864 91177308-0d34-0410-b5e6-96231b3b80d8
* update commentsChris Lattner2002-03-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1862 91177308-0d34-0410-b5e6-96231b3b80d8
* * Fix bug: test/Regression/Other/2002-03-11-LevelRaiseIterInvalidate.llChris Lattner2002-03-11
| | | | | | | | * Use more concise form of ReplaceInstWithInst to make code simpler * Output nicer message for dead code eliminated when debugging git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1861 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: test/Regression/Other/2002-03-11-ConstPropCrash.llChris Lattner2002-03-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1858 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: test/Regression/Other/2002-03-11-LevelRaiseCalls.llChris Lattner2002-03-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1844 91177308-0d34-0410-b5e6-96231b3b80d8
* We were not correctly burrowing down multiple levels to get to a leaf. Fix ↵Chris Lattner2002-03-07
| | | | | | this now git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1833 91177308-0d34-0410-b5e6-96231b3b80d8
* Support changing the pointer type of a store for the case where we areChris Lattner2002-03-07
| | | | | | | storing into the first element of the structure type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1832 91177308-0d34-0410-b5e6-96231b3b80d8
* Take CallGraph out of the CFG namespace. It has nothing to do with CFGsChris Lattner2002-03-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1820 91177308-0d34-0410-b5e6-96231b3b80d8
* Change over to use new style pass mechanism, now passes only expose smallChris Lattner2002-02-26
| | | | | | | creation functions in their public header file, unless they can help it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1816 91177308-0d34-0410-b5e6-96231b3b80d8
* Move ProfilePaths class into ProfilePaths library, only expose a creation ↵Chris Lattner2002-02-26
| | | | | | function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1812 91177308-0d34-0410-b5e6-96231b3b80d8
* Pass stuff by reference instead of by copy. Copying entire graphs seems likeChris Lattner2002-02-26
| | | | | | | a bad idea git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1810 91177308-0d34-0410-b5e6-96231b3b80d8
* Move processGraph down lower in the file so all of the forward declarationsChris Lattner2002-02-26
| | | | | | | can be eliminated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1809 91177308-0d34-0410-b5e6-96231b3b80d8
* * Changes to compile successfully with GCC 3.0Chris Lattner2002-02-26
| | | | | | | | * Eliminated memory leak in processGraph * Pass vectors by const reference to moveDummyCode instead of by copy git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1808 91177308-0d34-0410-b5e6-96231b3b80d8
* Makefile for profile-pathsAnand Shukla2002-02-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1807 91177308-0d34-0410-b5e6-96231b3b80d8