aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate several include/llvm/Transforms/IPO/*.h files, moving their ↵Chris Lattner2002-07-244-4/+4
| | | | | | contents into IPO.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3043 91177308-0d34-0410-b5e6-96231b3b80d8
* Merge ChangeAllocations into scalar.hChris Lattner2002-07-232-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3038 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename headerChris Lattner2002-07-231-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3037 91177308-0d34-0410-b5e6-96231b3b80d8
* Cleanup and simplify codeChris Lattner2002-07-231-59/+22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3036 91177308-0d34-0410-b5e6-96231b3b80d8
* Incorporate ConstantMerge.h into IPO.hChris Lattner2002-07-231-3/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3035 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename LevelChange.h to RaisePointerReferences.hChris Lattner2002-07-231-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3034 91177308-0d34-0410-b5e6-96231b3b80d8
* *** empty log message ***Chris Lattner2002-07-2320-55/+48
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3016 91177308-0d34-0410-b5e6-96231b3b80d8
* * Remove getPassName implementationChris Lattner2002-07-235-12/+12
| | | | | | | * Register all Passes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3015 91177308-0d34-0410-b5e6-96231b3b80d8
* * Cleanup the pass a bit more, making it more object oriented.Chris Lattner2002-07-231-65/+48
| | | | | | | | * Split the two behaviors of the InsertTraceCode class into two subclasses * Register Passes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3014 91177308-0d34-0410-b5e6-96231b3b80d8
* * Break the two different behaviors of SimpleStructMutation into two subclassesChris Lattner2002-07-231-26/+42
| | | | | | | * Register the passes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3013 91177308-0d34-0410-b5e6-96231b3b80d8
* * Make the ctor take a TargetData even though it's not using it yetChris Lattner2002-07-231-4/+7
| | | | | | | * Register the pass git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3012 91177308-0d34-0410-b5e6-96231b3b80d8
* * Remove lots of dead stuffChris Lattner2002-07-231-10/+1
| | | | | | | * Register Pass git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3011 91177308-0d34-0410-b5e6-96231b3b80d8
* *** empty log message ***Chris Lattner2002-07-236-7/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3002 91177308-0d34-0410-b5e6-96231b3b80d8
* Hide extra argumentChris Lattner2002-07-221-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2986 91177308-0d34-0410-b5e6-96231b3b80d8
* *** empty log message ***Chris Lattner2002-07-223-22/+34
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2985 91177308-0d34-0410-b5e6-96231b3b80d8
* comeented out debug printingAnand Shukla2002-07-211-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2980 91177308-0d34-0410-b5e6-96231b3b80d8
* minor correctionsAnand Shukla2002-07-186-139/+187
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2971 91177308-0d34-0410-b5e6-96231b3b80d8
* Seperate stats for DCE'd functions and varsChris Lattner2002-07-181-3/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2961 91177308-0d34-0410-b5e6-96231b3b80d8
* *** empty log message ***Chris Lattner2002-07-181-2/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2959 91177308-0d34-0410-b5e6-96231b3b80d8
* Only functions with external linkage can be resolved to function declarations.Chris Lattner2002-07-181-2/+6
| | | | | | | | This change fixes programs that have multiple functions named the same thing, where are least one of them is static/internal. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2954 91177308-0d34-0410-b5e6-96231b3b80d8
* * Rewrite loop to be slightly more efficient (arguably)Chris Lattner2002-07-181-2/+2
| | | | | | | * Fix a MAJOR thinko that was causing bad links to happen on Spec git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2953 91177308-0d34-0410-b5e6-96231b3b80d8
* * Correctly get prototype for void*malloc(size_t)Chris Lattner2002-07-181-2/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2951 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement linking of ConstExprsChris Lattner2002-07-181-9/+43
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2946 91177308-0d34-0410-b5e6-96231b3b80d8
* Anand forgot to check in the makefile corresponding to his previous changeChris Lattner2002-07-171-1/+1
| | | | | | | which eliminated the EmitFunctions directory git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2937 91177308-0d34-0410-b5e6-96231b3b80d8
* * Remove dead code from ExprTypeConvert.cppChris Lattner2002-07-173-66/+83
| | | | | | | | | | | | | - I->use_empty() can never be true because of the IHolder's * Fix bug: test/Regression/Transforms/LevelRaise/2002-07-16-SourceAndDestCrash.ll - Add a new NewCasts member to VMC to keep track of casts that have been created and to ensure there is always a reference to the cast. - Extend ValueHandle a bit so it can be used in an STL container - Make sure we destroy the ValueMapCache before verifying the function in LevelRaise.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2936 91177308-0d34-0410-b5e6-96231b3b80d8
* * Add a bunch of debugging features to LevelRaiseChris Lattner2002-07-161-4/+37
| | | | | | | | - Verify the function every time it is exprconverted if DEBUG is on - Provide a way to start exprconversion AT a specific instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2934 91177308-0d34-0410-b5e6-96231b3b80d8
* Avoid !sized assertion failure if Ty is not a sized typeChris Lattner2002-07-161-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2933 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: test/Regression/Transforms/LevelRaise/2002-07-16-RaiseCrash2.llChris Lattner2002-07-161-1/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2932 91177308-0d34-0410-b5e6-96231b3b80d8
* Moved over EmitFunctions to this libraryAnand Shukla2002-07-161-0/+45
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2928 91177308-0d34-0410-b5e6-96231b3b80d8
* removed this directoryAnand Shukla2002-07-161-5/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2927 91177308-0d34-0410-b5e6-96231b3b80d8
* Moved EmitFunctions.cpp up to instrumentation directoryAnand Shukla2002-07-161-45/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2926 91177308-0d34-0410-b5e6-96231b3b80d8
* Bugfix to previous checkinChris Lattner2002-07-161-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2924 91177308-0d34-0410-b5e6-96231b3b80d8
* * Cleanup passChris Lattner2002-07-161-17/+10
| | | | | | | | | * The global variable cannot be internal or else we cannot use it! * Always add a function to the table, even if it only has a single basic block. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2921 91177308-0d34-0410-b5e6-96231b3b80d8
* * Add assertion to ExprTypeConvert to detect error earlier than without itChris Lattner2002-07-162-0/+2
| | | | | | | | * Fix bug in LevelRaise.cpp, correcting this problem: test/Regression/Transforms/LevelRaise/2002-07-16-RaiseCrash.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2920 91177308-0d34-0410-b5e6-96231b3b80d8
* Added EmitFunctions directoryAnand Shukla2002-07-121-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2883 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial makefileAnand Shukla2002-07-121-0/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2882 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial version: adds a function table to output codeAnand Shukla2002-07-121-0/+52
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2881 91177308-0d34-0410-b5e6-96231b3b80d8
* Disable folding g-e-p instructions into loads and stores.Chris Lattner2002-07-101-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2870 91177308-0d34-0410-b5e6-96231b3b80d8
* Disable pool allocation stuff until data structure analysis is sorted back outChris Lattner2002-07-101-2/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2869 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix iteration and InsertPos bugs introduced when Chris changed over to ilist.Vikram S. Adve2002-07-081-21/+35
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2840 91177308-0d34-0410-b5e6-96231b3b80d8
* changes BBsorting and orederingAnand Shukla2002-07-082-720/+90
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2817 91177308-0d34-0410-b5e6-96231b3b80d8
* small correctionsAnand Shukla2002-07-081-23/+22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2816 91177308-0d34-0410-b5e6-96231b3b80d8
* changed function numberingAnand Shukla2002-07-081-102/+95
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2815 91177308-0d34-0410-b5e6-96231b3b80d8
* *** empty log message ***Chris Lattner2002-06-303-3/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2813 91177308-0d34-0410-b5e6-96231b3b80d8
* Clean up anands patchChris Lattner2002-06-301-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2812 91177308-0d34-0410-b5e6-96231b3b80d8
* changes to make it compatible with 64bit gccAnand Shukla2002-06-251-2/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2795 91177308-0d34-0410-b5e6-96231b3b80d8
* additions and bug fixesAnand Shukla2002-06-255-445/+1395
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2794 91177308-0d34-0410-b5e6-96231b3b80d8
* added include<iostream> for cerrAnand Shukla2002-06-251-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2793 91177308-0d34-0410-b5e6-96231b3b80d8
* changes to make it compatible with 64bit gccAnand Shukla2002-06-257-14/+34
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2792 91177308-0d34-0410-b5e6-96231b3b80d8
* changes to make it compatible with 64bit gccAnand Shukla2002-06-251-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2791 91177308-0d34-0410-b5e6-96231b3b80d8