Chris Lattner [Thu, 19 Sep 2002 21:33:10 +0000 (21:33 +0000)]
Native CC compiler has the same problem as CXX compiler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3836
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Sep 2002 21:32:44 +0000 (21:32 +0000)]
Don't run llc tests on linux, they won't work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3835
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Sep 2002 20:49:25 +0000 (20:49 +0000)]
Workaround for bug in GCC 3.1.1 iostreams library on sparc. It apprarently
isn't flushing an ostream when it is deleted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3834
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Sep 2002 20:48:48 +0000 (20:48 +0000)]
Minor non-functionality changing changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3833
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Sep 2002 19:59:42 +0000 (19:59 +0000)]
Reorder options to be sorted basically by how important they are.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3832
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Sep 2002 19:56:53 +0000 (19:56 +0000)]
* Burg is no longer configured in Makefile.config
* CXX now is configured in Makefile.config (optionally)
* The GCC command is now no longer bin/gcc, it's bin/llvm-gcc
* Minor cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3831
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Sep 2002 19:44:28 +0000 (19:44 +0000)]
Platform specific makefiles specify where to find the GCC frontend for their
architecture. The location of the GCC frontend may be overridden by the
Makefile.config file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3830
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Sep 2002 19:43:29 +0000 (19:43 +0000)]
* Move the burg option into Makefile.common, since it is no longer configurable
* Makefile.config now should only specify the location of the gcc frontend if it
is not in the place specified by the platform makefile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3829
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Sep 2002 19:42:24 +0000 (19:42 +0000)]
Move the burg option out of Makefile.config into Makefile.common since
it no longer needs to be configured.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3828
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Sep 2002 19:22:30 +0000 (19:22 +0000)]
Point gccld to the correct library directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3827
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Sep 2002 19:22:11 +0000 (19:22 +0000)]
Add an optimization to support the most common access pattern for the
library. This speeds debug builds up significantly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3826
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Sep 2002 19:21:18 +0000 (19:21 +0000)]
Switch over to using the x86 version of the C frontend, by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3825
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Sep 2002 19:06:05 +0000 (19:06 +0000)]
It turns out that the cannonical name for the llvm-gcc compiler is, well
llvm-gcc, not gcc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3824
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Thu, 19 Sep 2002 18:45:11 +0000 (18:45 +0000)]
Avoid Solaris-specific defines.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3823
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Sep 2002 16:54:57 +0000 (16:54 +0000)]
New testcase that breaks the CFE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3821
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Sep 2002 16:12:19 +0000 (16:12 +0000)]
Make sure that we abort if an error happens as early as neccesary. Before
it was possible for the passmanager to continue running passes after the
verifier even if the module was not well formed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3820
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Sep 2002 16:06:28 +0000 (16:06 +0000)]
Indent a comment right, add a new one
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3819
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Thu, 19 Sep 2002 14:54:53 +0000 (14:54 +0000)]
Add support for passing in arbitrary flags to gmake (except -n and -h
which are interpreted by this script).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3818
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Sep 2002 04:23:59 +0000 (04:23 +0000)]
New testcase for a bug fixed in the GCC SSA construction algorithm:
http://gcc.gnu.org/ml/gcc/2002-09/msg00760.html
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3817
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Sep 2002 23:30:05 +0000 (23:30 +0000)]
Avoid deleting the ostream more than once.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3816
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Wed, 18 Sep 2002 23:22:27 +0000 (23:22 +0000)]
Fix to work in new location (utils/) and to use gmake instead of gnumake
since gnumake doesn't exist on our new spiffy Linux machines.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3815
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Sep 2002 19:32:17 +0000 (19:32 +0000)]
Change Makefile.config to support building on the group's linux machines
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3814
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Wed, 18 Sep 2002 11:55:44 +0000 (11:55 +0000)]
KEEP_SYMBOLS by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3813
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Wed, 18 Sep 2002 11:55:13 +0000 (11:55 +0000)]
Strip tools/Debug/ executables by default. Define KEEP_SYMBOLS to
turn off stripping for any executable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3812
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Sep 2002 05:14:25 +0000 (05:14 +0000)]
Clean up tags, link to the right .h file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3811
91177308-0d34-0410-b5e6-
96231b3b80d8
Anand Shukla [Wed, 18 Sep 2002 04:29:30 +0000 (04:29 +0000)]
corrected small bug, to handle when DIRS is not defined.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3810
91177308-0d34-0410-b5e6-
96231b3b80d8
Anand Shukla [Wed, 18 Sep 2002 03:55:26 +0000 (03:55 +0000)]
split retracing into a separate file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3809
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Sep 2002 03:25:58 +0000 (03:25 +0000)]
Compile sub-directories in parallel, because they don't have interdependencies
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3808
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Sep 2002 03:22:27 +0000 (03:22 +0000)]
Add support for the new PARALLEL_DIRS option
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3807
91177308-0d34-0410-b5e6-
96231b3b80d8
Joel Stanley [Wed, 18 Sep 2002 03:17:23 +0000 (03:17 +0000)]
Finished instruction replacement section, etc. Need better example for replaceAllUsesWith().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3806
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Wed, 18 Sep 2002 02:35:14 +0000 (02:35 +0000)]
Fixed grammar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3805
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Wed, 18 Sep 2002 02:21:57 +0000 (02:21 +0000)]
Fixed grammar (User's -> Users).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3804
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Wed, 18 Sep 2002 02:20:58 +0000 (02:20 +0000)]
gcc3.1.1 seems much more selective about what it loads from archives, and
does not link in many passes that are loaded by gcc2.95.3. So use object
files instead of archives in many more cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3803
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Wed, 18 Sep 2002 02:07:57 +0000 (02:07 +0000)]
Removed unnecessary #includes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3802
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Wed, 18 Sep 2002 00:42:45 +0000 (00:42 +0000)]
Fixed typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3801
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 23:56:50 +0000 (23:56 +0000)]
Fix ambiguity problem due to builtin log2(double) function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3800
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 23:50:32 +0000 (23:50 +0000)]
Don't put default parameter values into .cpp files, it breaks 3.x compilers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3799
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 23:48:02 +0000 (23:48 +0000)]
Fix namespace correctness bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3798
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 23:46:33 +0000 (23:46 +0000)]
There is a #define in some header that conflicts with INFINITY, rename it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3797
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 23:45:34 +0000 (23:45 +0000)]
Allow the VERBOSE=1 option to turn on output of recursive make behavior
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3796
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 23:38:38 +0000 (23:38 +0000)]
Add support for gcc 3.2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3795
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 23:35:02 +0000 (23:35 +0000)]
Fix parallel recursive make to build directories in order
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3794
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 23:24:57 +0000 (23:24 +0000)]
Use locally built burg
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3793
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 23:23:52 +0000 (23:23 +0000)]
Build burg tree
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3792
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 23:22:31 +0000 (23:22 +0000)]
TEst commit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3791
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 23:20:47 +0000 (23:20 +0000)]
Test commit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3790
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 23:19:46 +0000 (23:19 +0000)]
Test change
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3789
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 23:19:14 +0000 (23:19 +0000)]
We need an 'all' target to build burg, add it back
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3788
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 23:04:24 +0000 (23:04 +0000)]
Don't run tests by default
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3787
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 23:03:35 +0000 (23:03 +0000)]
Initial checkin of burg documetnation files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3786
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 23:03:30 +0000 (23:03 +0000)]
Initial checkin of burg files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3785
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 22:43:00 +0000 (22:43 +0000)]
Avoid using two i's in the same statements
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3784
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 21:05:42 +0000 (21:05 +0000)]
Fix bug: test/Regression/Transforms/InstCombine/2002-09-17-GetElementPtrCrash.ll
Thanks to Casey for finding it!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3783
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 21:02:24 +0000 (21:02 +0000)]
New regression test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3782
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 20:47:46 +0000 (20:47 +0000)]
Convert to use long indexes instead of uint
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3781
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 20:40:24 +0000 (20:40 +0000)]
Enable correct support for dynamic loading on Linux
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3780
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 20:40:22 +0000 (20:40 +0000)]
Enable correct support for dynamic loading on Linux
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3779
91177308-0d34-0410-b5e6-
96231b3b80d8
Anand Shukla [Tue, 17 Sep 2002 20:24:46 +0000 (20:24 +0000)]
Removed debug info printing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3778
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 17:23:09 +0000 (17:23 +0000)]
Add support for GCC 2.96
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3777
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 17:18:12 +0000 (17:18 +0000)]
Remove extra #include
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3776
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 16:47:06 +0000 (16:47 +0000)]
Fix typeo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3775
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Tue, 17 Sep 2002 11:50:38 +0000 (11:50 +0000)]
Don't print global variable definitions twice! Sun's pathetic compiler
never complained about this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3774
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Tue, 17 Sep 2002 11:09:59 +0000 (11:09 +0000)]
Fix typo in comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3773
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Tue, 17 Sep 2002 01:17:57 +0000 (01:17 +0000)]
Remove specification of argument default from cpp file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3772
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 16 Sep 2002 22:37:56 +0000 (22:37 +0000)]
Remove warning that is no longer applicable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3771
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 16 Sep 2002 22:36:42 +0000 (22:36 +0000)]
Comment line of the makefile
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3770
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 16 Sep 2002 22:34:56 +0000 (22:34 +0000)]
Handle whitespace in LIBRARYNAME gracefully
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3769
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 16 Sep 2002 22:30:20 +0000 (22:30 +0000)]
Fix FunctionInlining pass assertion failure:
ilist:104: failed assertion `Traits::getNext(NodePtr) != 0 && "Dereferencing end()!"'
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3768
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 16 Sep 2002 22:08:07 +0000 (22:08 +0000)]
Fix typeo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3767
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 16 Sep 2002 20:44:19 +0000 (20:44 +0000)]
Fix compile problem on linux. Noone should ever #include <inttypes.h>
directly. Instead, include Support/DataTypes.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3766
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 16 Sep 2002 19:09:11 +0000 (19:09 +0000)]
Run the cee pass tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3765
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 16 Sep 2002 19:08:36 +0000 (19:08 +0000)]
Checking testcases for cee pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3764
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 16 Sep 2002 18:32:33 +0000 (18:32 +0000)]
Fix: test/Regression/LLC/badidx.c problem
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3763
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 18:28:27 +0000 (18:28 +0000)]
Remove duplicate sparc entry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3762
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 18:13:12 +0000 (18:13 +0000)]
Use .o files instead of .a files for several cases (that don't actually
need them) until other Makefiles can be updated to build archives.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3761
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 16 Sep 2002 18:09:42 +0000 (18:09 +0000)]
Print information about files that were removed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3760
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 18:08:17 +0000 (18:08 +0000)]
New preselection pass that specializes LLVM code for a target machine,
while remaining in legal portable LLVM form and preserving type
information and type safety.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3759
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Hildenbrandt [Mon, 16 Sep 2002 17:56:48 +0000 (17:56 +0000)]
Moved these files to the utils directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3758
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 16:46:17 +0000 (16:46 +0000)]
Add ilist_iterator constructor from a node reference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3756
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 16:40:07 +0000 (16:40 +0000)]
Extract most of the transformation into an externally accessible
function -- DecomposeArrayRef(GetElementPtrInst* GEP) -- that can
be invoked on a single instruction at a time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3755
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 16:36:13 +0000 (16:36 +0000)]
Change several entries to use the .o instead of .a to expose pass options.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3754
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 16:35:34 +0000 (16:35 +0000)]
Make all registered optimization passes available to llc.
Eliminate duplicate tracing options and use those defined by the trace passes.
Making the tracing step a module pass that runs before any llc-specific
passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3753
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 16:09:43 +0000 (16:09 +0000)]
Add support for optimization passes that use a TargetMachine object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3752
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 16:07:19 +0000 (16:07 +0000)]
Allow transformation DecomposeArrayRef(GetElementPtrInst* GEP) to
be invoked on a single instruction at a time, for use in other passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3751
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 16:06:12 +0000 (16:06 +0000)]
Add routines to update or erase operands (and to do so without external
assumptions about which operand number stores what operand).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3750
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 16:01:41 +0000 (16:01 +0000)]
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3749
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 16:01:39 +0000 (16:01 +0000)]
Add support for passes that use a TargetMachine object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3748
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:58:54 +0000 (15:58 +0000)]
Add method MachineOperand::hasAllocatedReg().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3747
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:58:34 +0000 (15:58 +0000)]
Add a version of ChooseRegOrImmed to handle numerical constants
introduced by InstrSelection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3746
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:57:43 +0000 (15:57 +0000)]
Add method adjustAlignment so that stack slot alignments can be computed
in a target-dependent manner (because of the dang OFFSET in Sparc v9).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3745
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:56:45 +0000 (15:56 +0000)]
Use ulong instead of uint for size expressions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3744
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:56:01 +0000 (15:56 +0000)]
Add methods to query about the representation of LLVM quantities (e.g.,
constants). Useful for target-dependent LLVM transformations like
Preselection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3743
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:54:02 +0000 (15:54 +0000)]
Don't print out global names unnecesssarily. Also, expose pass
constructors so passes can be inserted by TargetMachine.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3742
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:39:35 +0000 (15:39 +0000)]
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3741
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:39:26 +0000 (15:39 +0000)]
Move all the code that creates code generation passes from Sparc.cpp to
TargetMachine.cpp, since it is entirely machine-independent.
Also, add options to disable optional back-end passes (preselection and
instr. scheduling).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3740
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:32:07 +0000 (15:32 +0000)]
Add subdirectory PreSelection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3739
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:31:13 +0000 (15:31 +0000)]
New preselection pass that specializes LLVM code for a target machine,
while remaining in legal portable LLVM form and preserving type
information and type safety.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3738
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:18:53 +0000 (15:18 +0000)]
Dump routine now writes out allocated register numbers if available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3737
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:18:16 +0000 (15:18 +0000)]
Improve and fix error in allocating stack slots: adjust alignment after adding
base address of the relevant region (instead of assuming that each region
is maximally aligned).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3736
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:15:57 +0000 (15:15 +0000)]
Add a version of ChooseRegOrImmed to handle numerical constants
introduced by InstrSelection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3735
91177308-0d34-0410-b5e6-
96231b3b80d8