1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 23:42:52 +01:00
Commit Graph

3688 Commits

Author SHA1 Message Date
Anand Shukla
b959e8559e Added checking threshold
llvm-svn: 3864
2002-09-20 16:44:35 +00:00
Vikram S. Adve
43881f46b0 Peephole optimization pass on final machine code.
llvm-svn: 3863
2002-09-20 16:33:03 +00:00
Vikram S. Adve
2b35b84a5d Fix link error for profile version. Also, build Burg differently
for different architectures.

llvm-svn: 3862
2002-09-20 16:15:57 +00:00
Vikram S. Adve
be45b2caf9 Build burg separately for different architectures.
llvm-svn: 3861
2002-09-20 16:14:47 +00:00
Chris Lattner
0752044e03 Fix output of typedefs to avoid syntax errors.
* We now can correctly Cify the Olden-power benchmark

llvm-svn: 3860
2002-09-20 15:20:24 +00:00
Chris Lattner
1c1de51dfe * Add a couple of comments to the output c code
* _FIX_ infinite recursion problem, due to typedefs of a structure being
  printed before the structure.

llvm-svn: 3859
2002-09-20 15:18:30 +00:00
Chris Lattner
af6a9e8fc4 Another change that doesn't affect functionality. Since we are only looking
at types in the symbol table, only traverse the type plane, saving a loop nest.

llvm-svn: 3858
2002-09-20 15:12:13 +00:00
Chris Lattner
a66eef584f Make the StructPrinted set only take memory when it's being used.
rename parseStruct to printContainedStructs

llvm-svn: 3857
2002-09-20 15:05:40 +00:00
Chris Lattner
4f385b19bb No functionality changes, primarily just changing tab indentation to space
indentation

llvm-svn: 3856
2002-09-20 14:56:54 +00:00
Chris Lattner
26e44e3d21 Checkin old testcase
llvm-svn: 3855
2002-09-20 14:37:46 +00:00
Vikram S. Adve
39c311f716 The ENABLE_PROFILING flag now builds the profiled libraries and executables
into a Profile/ directory to keep them separate from the Debug/ and
Release/ versions.  Also, it turns on ENABLE_OPTIMIZED automatically.

llvm-svn: 3854
2002-09-20 14:03:13 +00:00
Vikram S. Adve
81809d1dc0 Let CC invoke gcc and not cc. The latter doesn't work with either our
source or some of our tests.

llvm-svn: 3853
2002-09-20 14:01:14 +00:00
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