aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove DynamicConstantMerge pass, because it did not fit in with the PassChris Lattner2002-06-251-64/+27
| | | | | | | system correctly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2772 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove "fixers" for problems in GCC generated code that cannot be generatedChris Lattner2002-06-251-187/+11
| | | | | | | anymore. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2771 91177308-0d34-0410-b5e6-96231b3b80d8
* Relocating Graph.hAnand Shukla2002-06-251-0/+465
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2770 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix constnessChris Lattner2002-06-051-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2762 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix Constness problemsChris Lattner2002-06-051-13/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2761 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix constness problemChris Lattner2002-06-051-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2759 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix constness problems now that the cast operators preserve the constnessChris Lattner2002-06-052-5/+5
| | | | | | | of their argument git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2758 91177308-0d34-0410-b5e6-96231b3b80d8
* * Be more typesafe: cast<x> now no longer discards constnessChris Lattner2002-06-041-61/+61
| | | | | | | | * The newly installed version of Bison now really likes there to be ;'s after productions. Add them to avoid tons of warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2757 91177308-0d34-0410-b5e6-96231b3b80d8
* Disable debugging outputChris Lattner2002-06-041-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2756 91177308-0d34-0410-b5e6-96231b3b80d8
* *** empty log message ***Chris Lattner2002-06-031-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2755 91177308-0d34-0410-b5e6-96231b3b80d8
* Avoid deleting individual instructions until AFTER dead blocks have droppedChris Lattner2002-05-281-17/+20
| | | | | | | | their references. This fixes bug: test/Regression/Transforms/ADCE/2002-05-28-Crash*.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2753 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify the interface to local DCE and Constant propChris Lattner2002-05-264-9/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2749 91177308-0d34-0410-b5e6-96231b3b80d8
* Support opaque type printing a little bit at leastChris Lattner2002-05-261-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2748 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not remove type names that contain a .Chris Lattner2002-05-261-4/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2747 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix "unimplemented features":Chris Lattner2002-05-241-6/+37
| | | | | | | | | | test/Regression/Transforms/FunctionResolve/retmismatch[12].ll This makes it much more useful for running benchmarks that are missing prototypes for some functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2745 91177308-0d34-0410-b5e6-96231b3b80d8
* Split the FunctionResolution pass out of CleanGCCOutput.cpp.Chris Lattner2002-05-242-218/+226
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2742 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix comments to reflect realityChris Lattner2002-05-241-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2741 91177308-0d34-0410-b5e6-96231b3b80d8
* Support programs that do not #include <malloc.h> or give a full prototypeChris Lattner2002-05-241-3/+42
| | | | | | | | | | | for malloc and free. Lots of crufty benchmarks are using stuff like: char *malloc(); void free(); to forward declare malloc and free. Now we recognize and raise these forms git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2740 91177308-0d34-0410-b5e6-96231b3b80d8
* Fold add X, 0 for floating point types as wellChris Lattner2002-05-231-2/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2734 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: test/Regression/Transforms/ADCE/2002-05-23-ZeroArgPHITest.llChris Lattner2002-05-231-1/+4
| | | | | | | Which contains a description of why this is neccesary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2733 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert RegClass::IsColorUsedArr from a dynamically allocated array toChris Lattner2002-05-238-95/+79
| | | | | | | a vector. This makes asserting on array bounds easier. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2731 91177308-0d34-0410-b5e6-96231b3b80d8
* Avoid creating the symbol table if we don't need it.Chris Lattner2002-05-221-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2728 91177308-0d34-0410-b5e6-96231b3b80d8
* Support function declarations with either %XXX or "XXX" style for nowChris Lattner2002-05-221-2/+4
| | | | | | | | "XXX" style should be considered deprecated, and will hopefully be removed in the future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2727 91177308-0d34-0410-b5e6-96231b3b80d8
* Print out function name with % style instead of "" styleChris Lattner2002-05-221-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2726 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert code to use the DEBUG macro so that debug code can simply beChris Lattner2002-05-225-197/+147
| | | | | | | enabled with the -debug command line option. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2721 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix and implement ADCE to finally work!Chris Lattner2002-05-221-136/+159
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2720 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert transforms over to standardize debugging output on -debug optionChris Lattner2002-05-223-76/+26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2714 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the new DEBUG(x) macro to allow debugging code to be enabled on the ↵Chris Lattner2002-05-224-62/+36
| | | | | | commandline git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2713 91177308-0d34-0410-b5e6-96231b3b80d8
* Move debug options out of header files so that the header does not haveChris Lattner2002-05-228-20/+28
| | | | | | | to #include CommandLine.h. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2712 91177308-0d34-0410-b5e6-96231b3b80d8
* Move the DEBUG_LV option out of the public header file into a private header.Chris Lattner2002-05-222-0/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2711 91177308-0d34-0410-b5e6-96231b3b80d8
* Avoid #including CommandLine.hChris Lattner2002-05-222-8/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2710 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement a new command line option, -debug, which is meant to unify all ofChris Lattner2002-05-221-0/+3
| | | | | | | | | the random debugging macros scattered throughout llvm. The new DEBUG(x) macro should be used instead of special purpose debug macros. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2709 91177308-0d34-0410-b5e6-96231b3b80d8
* Add ability to update existing variables with values read from the command lineChris Lattner2002-05-221-1/+1
| | | | | | | | | | to certain classes. This is nice because it means that in header files we can just declare a value, and still have that value be set based on a command-line argument. The difference is now that the #include of CommandLine.h does not need to go into the header file as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2708 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: test/Regression/Transforms/SCCP/2002-05-21-InvalidSimplify.llChris Lattner2002-05-221-12/+12
| | | | | | | Improperly handling edges... by not marking them alive properly git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2707 91177308-0d34-0410-b5e6-96231b3b80d8
* * Fix typeoChris Lattner2002-05-212-2/+4
| | | | | | | | * Provide a #include of <malloc.h> so that the sun C compiler does not miscompile malloc function calls git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2702 91177308-0d34-0410-b5e6-96231b3b80d8
* Add implementation of SimplifyCFGChris Lattner2002-05-211-0/+198
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2701 91177308-0d34-0410-b5e6-96231b3b80d8
* New CFG Simplification pass: removed from the old DCE passChris Lattner2002-05-211-0/+100
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2700 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify interface to ConstantFoldTerminatorChris Lattner2002-05-211-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2697 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: test/Regression/Transforms/CFGSimplify/2002-05-21-PHIElimination.llChris Lattner2002-05-211-4/+21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2694 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: test/Regression/CBackend/2002-05-21-MissingReturn.llChris Lattner2002-05-212-2/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2690 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed the makefile to not die when compiling a new, empty, source directoryMehwish Nagda2002-05-211-0/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2688 91177308-0d34-0410-b5e6-96231b3b80d8
* * Change commandline options a bit to be nicerChris Lattner2002-05-201-42/+47
| | | | | | | | * Insert accurate prototypes for functions * Insert casts to use accurate prototypes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2677 91177308-0d34-0410-b5e6-96231b3b80d8
* Hide debugging optionsChris Lattner2002-05-208-8/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2676 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove explicit support for tracing code. It should be linked into theChris Lattner2002-05-201-43/+10
| | | | | | | executable just like everything else. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2674 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove tracing code hackChris Lattner2002-05-201-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2673 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: test/Regression/Transforms/SCCP/2002-05-20-MissedIncomingValue.llChris Lattner2002-05-201-1/+11
| | | | | | | That was causing a miscompilation of strtol/atoi plus others git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2669 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't lose namespace qualifications on previous patch.Chris Lattner2002-05-202-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2664 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename IsPowerOf2 to isPowerOf2Chris Lattner2002-05-191-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2663 91177308-0d34-0410-b5e6-96231b3b80d8
* Link with test/Libraries/libinstr32.a for runtime routinesVikram S. Adve2002-05-191-1/+1
| | | | | | | supporting tracing. That should be moved to a "runtime" directory. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2660 91177308-0d34-0410-b5e6-96231b3b80d8
* Added external functions for hashing pointers to sequence numbers.Vikram S. Adve2002-05-191-0/+44
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2659 91177308-0d34-0410-b5e6-96231b3b80d8