Vikram S. Adve
8feab97474
Include our config and system-specific Makefiles to get the
...
right compilers and paths.
llvm-svn: 3852
2002-09-20 13:56:32 +00:00
Vikram S. Adve
6e77f5dc3f
Fix data types header file and declarations to work on Linux.
...
llvm-svn: 3851
2002-09-20 01:05:16 +00:00
Vikram S. Adve
430772db49
Fix to avoid addition on pointers, which is no longer legal.
...
llvm-svn: 3850
2002-09-20 00:57:37 +00:00
Vikram S. Adve
248e623726
Add erase() method for a single element.
...
llvm-svn: 3849
2002-09-20 00:55:57 +00:00
Vikram S. Adve
07a33b5553
Add method IGNode::getCombinedDegree to count the sum of the degrees
...
of two nodes, excluding duplicates.
llvm-svn: 3848
2002-09-20 00:55:04 +00:00
Vikram S. Adve
1d139cf8de
Add PostOpts/ and rename PreSelection/ to PreOpts/.
...
llvm-svn: 3847
2002-09-20 00:53:53 +00:00
Vikram S. Adve
bcab1ae6c9
Add peephole optimization pass at the end of code generation.
...
llvm-svn: 3846
2002-09-20 00:52:43 +00:00
Vikram S. Adve
ed466a713a
Added class MachineOptInfo as interface to target-specific
...
routines supporting machine code optimization.
Also added method MachineInstrInfo::getNOPOpCode().
llvm-svn: 3845
2002-09-20 00:52:09 +00:00
Vikram S. Adve
8d0bcb9568
Interface to target-specific routines that support machine code optimization.
...
llvm-svn: 3844
2002-09-20 00:49:21 +00:00
Vikram S. Adve
47303cde2d
Add method MachineInstr::replace to rewrite a machine instruction in place.
...
llvm-svn: 3843
2002-09-20 00:47:49 +00:00
Vikram S. Adve
ccb33335a3
Allow copy coalescing in more cases: if sum of node degrees is more than
...
than #available regs, compute the sum excluding duplicates and if that
is less than #regs, go ahead and coalesce.
Add method IGNode::getCombinedDegree to count excluding duplicates.
llvm-svn: 3842
2002-09-20 00:45:47 +00:00
Vikram S. Adve
40f70117b4
Renamed library preselect to preopts.
...
llvm-svn: 3841
2002-09-20 00:43:20 +00:00
Vikram S. Adve
82b15d7253
Peephole optimization pass on final machine code.
...
llvm-svn: 3840
2002-09-20 00:42:11 +00:00
Vikram S. Adve
8dc14ec198
Files moved to CodeGen/PreOpts.
...
llvm-svn: 3839
2002-09-20 00:30:46 +00:00
Vikram S. Adve
6f0ad9998b
Moving these files from Code/PreSelection to here.
...
Original logs for PreSelection.cpp:
revision 1.2
date: 2002/09/17 23:50:32; author: lattner; state: Exp; lines: +1 -3
Don't put default parameter values into .cpp files, it breaks 3.x compilers
revision 1.1
date: 2002/09/16 15:31:13; author: vadve; state: Exp;
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.
llvm-svn: 3838
2002-09-20 00:29:28 +00:00
Chris Lattner
a506baf8bd
Reenable these options because they break testing on sparc without them.
...
Conditionalizing them on DISABLE_LLC means they aren't enabled under linux.
llvm-svn: 3837
2002-09-19 21:46:03 +00:00
Chris Lattner
500e9bec66
Native CC compiler has the same problem as CXX compiler.
...
llvm-svn: 3836
2002-09-19 21:33:10 +00:00
Chris Lattner
c96398ee3f
Don't run llc tests on linux, they won't work.
...
llvm-svn: 3835
2002-09-19 21:32:44 +00:00
Chris Lattner
31516613bd
Workaround for bug in GCC 3.1.1 iostreams library on sparc. It apprarently
...
isn't flushing an ostream when it is deleted.
llvm-svn: 3834
2002-09-19 20:49:25 +00:00
Chris Lattner
2d1235521b
Minor non-functionality changing changes.
...
llvm-svn: 3833
2002-09-19 20:48:48 +00:00
Chris Lattner
05dbc0d287
Reorder options to be sorted basically by how important they are.
...
llvm-svn: 3832
2002-09-19 19:59:42 +00:00
Chris Lattner
9d91447de2
* 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
llvm-svn: 3831
2002-09-19 19:56:53 +00:00
Chris Lattner
ffe9bf6ca8
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.
llvm-svn: 3830
2002-09-19 19:44:28 +00:00
Chris Lattner
3aadb0d2f5
* 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.
llvm-svn: 3829
2002-09-19 19:43:29 +00:00
Chris Lattner
3dd63759ab
Move the burg option out of Makefile.config into Makefile.common since
...
it no longer needs to be configured.
llvm-svn: 3828
2002-09-19 19:42:24 +00:00
Chris Lattner
b282a1de36
Point gccld to the correct library directory.
...
llvm-svn: 3827
2002-09-19 19:22:30 +00:00
Chris Lattner
39614ed129
Add an optimization to support the most common access pattern for the
...
library. This speeds debug builds up significantly.
llvm-svn: 3826
2002-09-19 19:22:11 +00:00
Chris Lattner
d47c947c82
Switch over to using the x86 version of the C frontend, by default.
...
llvm-svn: 3825
2002-09-19 19:21:18 +00:00
Chris Lattner
220855bab6
It turns out that the cannonical name for the llvm-gcc compiler is, well
...
llvm-gcc, not gcc.
llvm-svn: 3824
2002-09-19 19:06:05 +00:00
Vikram S. Adve
c1c18368c1
Avoid Solaris-specific defines.
...
llvm-svn: 3823
2002-09-19 18:45:11 +00:00
Chris Lattner
0cd19bd988
New testcase that breaks the CFE.
...
llvm-svn: 3821
2002-09-19 16:54:57 +00:00
Chris Lattner
c86c7ecdb5
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.
llvm-svn: 3820
2002-09-19 16:12:19 +00:00
Chris Lattner
1740f763c0
Indent a comment right, add a new one
...
llvm-svn: 3819
2002-09-19 16:06:28 +00:00
Vikram S. Adve
5771a8b11d
Add support for passing in arbitrary flags to gmake (except -n and -h
...
which are interpreted by this script).
llvm-svn: 3818
2002-09-19 14:54:53 +00:00
Chris Lattner
552b6c0834
New testcase for a bug fixed in the GCC SSA construction algorithm:
...
http://gcc.gnu.org/ml/gcc/2002-09/msg00760.html
llvm-svn: 3817
2002-09-19 04:23:59 +00:00
Chris Lattner
3bedbd7335
Avoid deleting the ostream more than once.
...
llvm-svn: 3816
2002-09-18 23:30:05 +00:00
Vikram S. Adve
4de8721e87
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.
llvm-svn: 3815
2002-09-18 23:22:27 +00:00
Chris Lattner
bf7e522511
Change Makefile.config to support building on the group's linux machines
...
llvm-svn: 3814
2002-09-18 19:32:17 +00:00
Vikram S. Adve
9fb62d3829
KEEP_SYMBOLS by default.
...
llvm-svn: 3813
2002-09-18 11:55:44 +00:00
Vikram S. Adve
6dcdeb5309
Strip tools/Debug/ executables by default. Define KEEP_SYMBOLS to
...
turn off stripping for any executable.
llvm-svn: 3812
2002-09-18 11:55:13 +00:00
Chris Lattner
178bf8d312
Clean up tags, link to the right .h file
...
llvm-svn: 3811
2002-09-18 05:14:25 +00:00
Anand Shukla
274e7347ac
corrected small bug, to handle when DIRS is not defined.
...
llvm-svn: 3810
2002-09-18 04:29:30 +00:00
Anand Shukla
cf6e76fbff
split retracing into a separate file
...
llvm-svn: 3809
2002-09-18 03:55:26 +00:00
Chris Lattner
ee9b6ce5c7
Compile sub-directories in parallel, because they don't have interdependencies
...
llvm-svn: 3808
2002-09-18 03:25:58 +00:00
Chris Lattner
911be737fa
Add support for the new PARALLEL_DIRS option
...
llvm-svn: 3807
2002-09-18 03:22:27 +00:00
Joel Stanley
6886e25925
Finished instruction replacement section, etc. Need better example for replaceAllUsesWith().
...
llvm-svn: 3806
2002-09-18 03:17:23 +00:00
Misha Brukman
0dca417cb1
Fixed grammar.
...
llvm-svn: 3805
2002-09-18 02:35:14 +00:00
Misha Brukman
5c099502ff
Fixed grammar (User's -> Users).
...
llvm-svn: 3804
2002-09-18 02:21:57 +00:00
Vikram S. Adve
c3d678fff5
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.
llvm-svn: 3803
2002-09-18 02:20:58 +00:00
Misha Brukman
e093f5cb9b
Removed unnecessary #includes.
...
llvm-svn: 3802
2002-09-18 02:07:57 +00:00