oota-llvm.git
21 years agoFix to work in new location (utils/) and to use gmake instead of gnumake
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

21 years agoChange Makefile.config to support building on the group's linux machines
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

21 years agoKEEP_SYMBOLS by default.
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

21 years agoStrip tools/Debug/ executables by default. Define KEEP_SYMBOLS to
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

21 years agoClean up tags, link to the right .h file
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

21 years agocorrected small bug, to handle when DIRS is not defined.
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

21 years agosplit retracing into a separate file
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

21 years agoCompile sub-directories in parallel, because they don't have interdependencies
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

21 years agoAdd support for the new PARALLEL_DIRS option
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

21 years agoFinished instruction replacement section, etc. Need better example for replaceAllUse...
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

21 years agoFixed grammar.
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

21 years agoFixed grammar (User's -> Users).
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

21 years agogcc3.1.1 seems much more selective about what it loads from archives, and
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

21 years agoRemoved unnecessary #includes.
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

21 years agoFixed typo.
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

21 years agoFix ambiguity problem due to builtin log2(double) function
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

21 years agoDon't put default parameter values into .cpp files, it breaks 3.x compilers
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

21 years agoFix namespace correctness bug
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

21 years agoThere is a #define in some header that conflicts with INFINITY, rename it.
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

21 years agoAllow the VERBOSE=1 option to turn on output of recursive make behavior
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

21 years agoAdd support for gcc 3.2
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

21 years agoFix parallel recursive make to build directories in order
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

21 years agoUse locally built burg
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

21 years agoBuild burg tree
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

21 years agoTEst commit
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

21 years agoTest commit
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

21 years agoTest change
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

21 years agoWe need an 'all' target to build burg, add it back
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

21 years agoDon't run tests by default
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

21 years agoInitial checkin of burg documetnation files
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

21 years agoInitial checkin of burg files
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

21 years agoAvoid using two i's in the same statements
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

21 years agoFix bug: test/Regression/Transforms/InstCombine/2002-09-17-GetElementPtrCrash.ll
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

21 years agoNew regression test
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

21 years agoConvert to use long indexes instead of uint
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

21 years agoEnable correct support for dynamic loading on Linux
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

21 years agoEnable correct support for dynamic loading on Linux
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

21 years agoRemoved debug info printing
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

21 years agoAdd support for GCC 2.96
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

21 years agoRemove extra #include
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

21 years agoFix typeo
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

21 years agoDon't print global variable definitions twice! Sun's pathetic compiler
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

21 years agoFix typo in comment.
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

21 years agoRemove specification of argument default from cpp file.
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

21 years agoRemove warning that is no longer applicable
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

21 years agoComment line of the makefile
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

21 years agoHandle whitespace in LIBRARYNAME gracefully
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

21 years agoFix FunctionInlining pass assertion failure:
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

21 years agoFix typeo
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

21 years agoFix compile problem on linux. Noone should ever #include <inttypes.h>
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

21 years agoRun the cee pass tests
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

21 years agoChecking testcases for cee pass
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

21 years agoFix: test/Regression/LLC/badidx.c problem
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

21 years agoRemove duplicate sparc entry.
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

21 years agoUse .o files instead of .a files for several cases (that don't actually
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

21 years agoPrint information about files that were removed
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

21 years agoNew preselection pass that specializes LLVM code for a target machine,
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

21 years agoMoved these files to the utils directory.
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

21 years agoAdd ilist_iterator constructor from a node reference.
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

21 years agoExtract most of the transformation into an externally accessible
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

21 years agoChange several entries to use the .o instead of .a to expose pass options.
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

21 years agoMake all registered optimization passes available to llc.
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

21 years agoAdd support for optimization passes that use a TargetMachine object.
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

21 years agoAllow transformation DecomposeArrayRef(GetElementPtrInst* GEP) to
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

21 years agoAdd routines to update or erase operands (and to do so without external
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

21 years ago*** empty log message ***
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

21 years agoAdd support for passes that use a TargetMachine object.
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

21 years agoAdd method MachineOperand::hasAllocatedReg().
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

21 years agoAdd a version of ChooseRegOrImmed to handle numerical constants
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

21 years agoAdd method adjustAlignment so that stack slot alignments can be computed
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

21 years agoUse ulong instead of uint for size expressions.
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

21 years agoAdd methods to query about the representation of LLVM quantities (e.g.,
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

21 years agoDon't print out global names unnecesssarily. Also, expose pass
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

21 years ago*** empty log message ***
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

21 years agoMove all the code that creates code generation passes from Sparc.cpp to
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

21 years agoAdd subdirectory PreSelection.
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

21 years agoNew preselection pass that specializes LLVM code for a target machine,
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

21 years agoDump routine now writes out allocated register numbers if available.
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

21 years agoImprove and fix error in allocating stack slots: adjust alignment after adding
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

21 years agoAdd a version of ChooseRegOrImmed to handle numerical constants
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

21 years agoAdd an assertion.
Vikram S. Adve [Mon, 16 Sep 2002 15:13:59 +0000 (15:13 +0000)]
Add an assertion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3734 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoIncorporated changes in alloca and getElementPointer instruction
Anand Shukla [Mon, 16 Sep 2002 05:26:51 +0000 (05:26 +0000)]
Incorporated changes in alloca and getElementPointer instruction

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3733 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoIncorporated changes in alloca instruction
Anand Shukla [Mon, 16 Sep 2002 05:24:49 +0000 (05:24 +0000)]
Incorporated changes in alloca instruction

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3732 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoNo longer need to sign-extend array indices to 64 bits since they
Vikram S. Adve [Sun, 15 Sep 2002 21:51:04 +0000 (21:51 +0000)]
No longer need to sign-extend array indices to 64 bits since they
are now longs and not unsigned ints.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3731 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoSimplify significantly (and fix syntax error).
Vikram S. Adve [Sun, 15 Sep 2002 18:22:47 +0000 (18:22 +0000)]
Simplify significantly (and fix syntax error).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3730 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoUse much better method to find the llvmbase directory.
Vikram S. Adve [Sun, 15 Sep 2002 16:58:30 +0000 (16:58 +0000)]
Use much better method to find the llvmbase directory.
Also, add -h option to print usage information.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3729 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoCheck error condition after cvs returns. Also remove -c option.
Vikram S. Adve [Sun, 15 Sep 2002 16:45:10 +0000 (16:45 +0000)]
Check error condition after cvs returns.  Also remove -c option.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3728 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoShell-script to build current directory and then link one tool (default: opt)
Vikram S. Adve [Sun, 15 Sep 2002 16:33:32 +0000 (16:33 +0000)]
Shell-script to build current directory and then link one tool (default: opt)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3727 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix typos in previous checkin.
Vikram S. Adve [Sun, 15 Sep 2002 15:33:48 +0000 (15:33 +0000)]
Fix typos in previous checkin.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3726 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoRegAllocCommon no longer includes CommandLine.h so we have to include it
Chris Lattner [Sun, 15 Sep 2002 07:07:55 +0000 (07:07 +0000)]
RegAllocCommon no longer includes CommandLine.h so we have to include it
here.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3725 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoBreak RA_DEBUG option into several levels to get better control over
Vikram S. Adve [Sat, 14 Sep 2002 23:05:33 +0000 (23:05 +0000)]
Break RA_DEBUG option into several levels to get better control over
debug output.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3724 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoRemove unnecessary include.
Vikram S. Adve [Sat, 14 Sep 2002 23:04:52 +0000 (23:04 +0000)]
Remove unnecessary include.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3723 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoBreak RA_DEBUG option into several levels to get better output.
Vikram S. Adve [Sat, 14 Sep 2002 22:18:37 +0000 (22:18 +0000)]
Break RA_DEBUG option into several levels to get better output.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3722 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFixed problem with printing struct definitions in the correct order.
Nick Hildenbrandt [Sat, 14 Sep 2002 21:36:24 +0000 (21:36 +0000)]
Fixed problem with printing struct definitions in the correct order.
This allows for the Regression/Transforms/ScalarReplacement/scalarize.c to run correctly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3721 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix to work correctly under linux
Chris Lattner [Sat, 14 Sep 2002 19:52:49 +0000 (19:52 +0000)]
Fix to work correctly under linux

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3720 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix bug I introduced
Chris Lattner [Sat, 14 Sep 2002 19:33:16 +0000 (19:33 +0000)]
Fix bug I introduced

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3719 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoMoving to lib/CodeGen/RegAlloc.
Vikram S. Adve [Sat, 14 Sep 2002 11:57:17 +0000 (11:57 +0000)]
Moving to lib/CodeGen/RegAlloc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3718 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd support for MacOS and (hopefully) other BSD derivatives.
Vikram S. Adve [Sat, 14 Sep 2002 10:42:59 +0000 (10:42 +0000)]
Add support for MacOS and (hopefully) other BSD derivatives.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3717 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFunction.h is unnecessary when Module.h is included.
Misha Brukman [Sat, 14 Sep 2002 03:04:02 +0000 (03:04 +0000)]
Function.h is unnecessary when Module.h is included.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3716 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoOn the quest of eliminating unnecessary includes.
Misha Brukman [Sat, 14 Sep 2002 02:18:57 +0000 (02:18 +0000)]
On the quest of eliminating unnecessary includes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3715 91177308-0d34-0410-b5e6-96231b3b80d8