oota-llvm.git
21 years agoRemoved completely duplicated function comment (an identical one appears later).
Misha Brukman [Wed, 22 Oct 2003 04:55:09 +0000 (04:55 +0000)]
Removed completely duplicated function comment (an identical one appears later).

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

21 years agoNo, really, order the #includes correctly.
Misha Brukman [Wed, 22 Oct 2003 04:51:36 +0000 (04:51 +0000)]
No, really, order the #includes correctly.

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

21 years agoUpdate the 'used' flag correctly
Chris Lattner [Wed, 22 Oct 2003 04:43:18 +0000 (04:43 +0000)]
Update the 'used' flag correctly

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

21 years agoLoop over the module, not the symbol table. This makes the code handle
Chris Lattner [Wed, 22 Oct 2003 04:42:20 +0000 (04:42 +0000)]
Loop over the module, not the symbol table.  This makes the code handle
unused external functions again

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

21 years agoNew library needed
Chris Lattner [Wed, 22 Oct 2003 03:40:33 +0000 (03:40 +0000)]
New library needed

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

21 years agoImplement FunctionResolve/2003-10-21-GlobalResolveHack.ll
Chris Lattner [Wed, 22 Oct 2003 03:35:34 +0000 (03:35 +0000)]
Implement FunctionResolve/2003-10-21-GlobalResolveHack.ll

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

21 years agoNew testcase for fun hack that is absolutely necessary for the C++ stdlib.
Chris Lattner [Wed, 22 Oct 2003 03:35:18 +0000 (03:35 +0000)]
New testcase for fun hack that is absolutely necessary for the C++ stdlib.

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

21 years ago* Fix order of #includes to follow style guide
Misha Brukman [Wed, 22 Oct 2003 03:27:45 +0000 (03:27 +0000)]
* Fix order of #includes to follow style guide
* It's no longer a BasicBlock pass: update comment on run() method
* Fix placement of braces to be consistent
* Delete extraneous whitespace

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

21 years agoConverted tabs to spaces.
Misha Brukman [Wed, 22 Oct 2003 03:10:26 +0000 (03:10 +0000)]
Converted tabs to spaces.

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

21 years agoFix bug: FunctionResolve/2003-10-21-GlobalTypeDifference.ll
Chris Lattner [Tue, 21 Oct 2003 23:17:56 +0000 (23:17 +0000)]
Fix bug: FunctionResolve/2003-10-21-GlobalTypeDifference.ll

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

21 years agoNew testcase: globals should be linked if they are the wrong type. We should
Chris Lattner [Tue, 21 Oct 2003 23:17:45 +0000 (23:17 +0000)]
New testcase: globals should be linked if they are the wrong type.  We should
just moan loudly.

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

21 years agoFix bug: Linker/2003-10-21-ConflictingTypesTolerance.ll
Chris Lattner [Tue, 21 Oct 2003 22:46:38 +0000 (22:46 +0000)]
Fix bug: Linker/2003-10-21-ConflictingTypesTolerance.ll

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

21 years agoNew testcase. The linker should not consider it an error if two types
Chris Lattner [Tue, 21 Oct 2003 22:46:22 +0000 (22:46 +0000)]
New testcase.  The linker should not consider it an error if two types
disagree.  It should grumble, then go ahead and do it.

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

21 years agoAdd C/C++ build instructions, first draft.
Brian Gaeke [Tue, 21 Oct 2003 21:58:38 +0000 (21:58 +0000)]
Add C/C++ build instructions, first draft.

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

21 years agoFix message to make more sense and confuse Chris less
Chris Lattner [Tue, 21 Oct 2003 21:52:20 +0000 (21:52 +0000)]
Fix message to make more sense and confuse Chris less

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

21 years agoNew testcase, fixed in the C++ frontend
Chris Lattner [Tue, 21 Oct 2003 21:33:18 +0000 (21:33 +0000)]
New testcase, fixed in the C++ frontend

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

21 years agoAdded the name of the public CVS repository.
John Criswell [Tue, 21 Oct 2003 21:24:38 +0000 (21:24 +0000)]
Added the name of the public CVS repository.
Removed the use of CVSROOTDIR as it is no longer used.
Fixed some word wrapping.

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

21 years agoFix off-by-one error in processing of libraries named on command line.
Brian Gaeke [Tue, 21 Oct 2003 21:07:12 +0000 (21:07 +0000)]
Fix off-by-one error in processing of libraries named on command line.

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

21 years agoAdding information on what testing support is provided by the LLVM build
John Criswell [Tue, 21 Oct 2003 19:35:06 +0000 (19:35 +0000)]
Adding information on what testing support is provided by the LLVM build
system.  Currently, it is not much.

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

21 years agoAdd dummy content for libgdbm.
Misha Brukman [Tue, 21 Oct 2003 18:26:07 +0000 (18:26 +0000)]
Add dummy content for libgdbm.

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

21 years agoFix libm's name to be `libm'
Misha Brukman [Tue, 21 Oct 2003 18:25:37 +0000 (18:25 +0000)]
Fix libm's name to be `libm'

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

21 years agoFix library name and fix line to fit within 80 columns.
Misha Brukman [Tue, 21 Oct 2003 18:22:34 +0000 (18:22 +0000)]
Fix library name and fix line to fit within 80 columns.

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

21 years agoAdd tools-only target, for bootstrapping the C/C++ front end.
Brian Gaeke [Tue, 21 Oct 2003 18:08:10 +0000 (18:08 +0000)]
Add tools-only target, for bootstrapping the C/C++ front end.

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

21 years agoThis was not a lower-switch bug, it was a preselection bug
Chris Lattner [Tue, 21 Oct 2003 18:02:17 +0000 (18:02 +0000)]
This was not a lower-switch bug, it was a preselection bug

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

21 years agoWhen linking the runtime libraries, do not link -lc and -lgcc into the libraries
Chris Lattner [Tue, 21 Oct 2003 18:00:37 +0000 (18:00 +0000)]
When linking the runtime libraries, do not link -lc and -lgcc into the libraries

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

21 years agoFix strcpy implementation and trie
Chris Lattner [Tue, 21 Oct 2003 17:53:16 +0000 (17:53 +0000)]
Fix strcpy implementation and trie

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

21 years agoFix the first FIXME in this file: automatically pick a "good"
Brian Gaeke [Tue, 21 Oct 2003 17:41:35 +0000 (17:41 +0000)]
Fix the first FIXME in this file: automatically pick a "good"
interpreter by default, by picking the first one that works
from a hard-coded list.

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

21 years agoMake sure to add a type for va_next operands, which may not other wise
Chris Lattner [Tue, 21 Oct 2003 17:40:54 +0000 (17:40 +0000)]
Make sure to add a type for va_next operands, which may not other wise
occur in the module

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

21 years agoFix problem which effected linking apache
Chris Lattner [Tue, 21 Oct 2003 17:39:59 +0000 (17:39 +0000)]
Fix problem which effected linking apache

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

21 years agoHrm, unbreak stuph :(
Chris Lattner [Tue, 21 Oct 2003 17:22:23 +0000 (17:22 +0000)]
Hrm, unbreak stuph :(

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

21 years agoFix preselection/lowerswitches bug
Chris Lattner [Tue, 21 Oct 2003 16:29:23 +0000 (16:29 +0000)]
Fix preselection/lowerswitches bug

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

21 years agoPull the PHI special case into it's own visit* method
Chris Lattner [Tue, 21 Oct 2003 16:09:23 +0000 (16:09 +0000)]
Pull the PHI special case into it's own visit* method

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

21 years agoThe lastOp operand is never used
Chris Lattner [Tue, 21 Oct 2003 16:06:07 +0000 (16:06 +0000)]
The lastOp operand is never used

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

21 years agoAdd more space!
Chris Lattner [Tue, 21 Oct 2003 15:47:31 +0000 (15:47 +0000)]
Add more space!

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

21 years agoHrm, for some reason, my fingers like typing va_begin. Weird
Chris Lattner [Tue, 21 Oct 2003 15:43:55 +0000 (15:43 +0000)]
Hrm, for some reason, my fingers like typing va_begin.  Weird

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

21 years agoSyntax highlight the new operators
Chris Lattner [Tue, 21 Oct 2003 15:37:09 +0000 (15:37 +0000)]
Syntax highlight the new operators

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

21 years agoUpdate test to new style
Chris Lattner [Tue, 21 Oct 2003 15:36:21 +0000 (15:36 +0000)]
Update test to new style

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

21 years agoRemoved LLVM copyright from sample Makefile.
John Criswell [Tue, 21 Oct 2003 15:33:12 +0000 (15:33 +0000)]
Removed LLVM copyright from sample Makefile.

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

21 years agoRemoved LLVM copyright notice from sample Makefile.
John Criswell [Tue, 21 Oct 2003 15:31:36 +0000 (15:31 +0000)]
Removed LLVM copyright notice from sample Makefile.

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

21 years agoAdded LLVM copyright notice.
John Criswell [Tue, 21 Oct 2003 15:29:18 +0000 (15:29 +0000)]
Added LLVM copyright notice.

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

21 years agoAdded LLVM copyright header.
John Criswell [Tue, 21 Oct 2003 15:17:13 +0000 (15:17 +0000)]
Added LLVM copyright header.

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

21 years agoPreselection is _not_ a basicblock pass, because it adds global variables to
Chris Lattner [Tue, 21 Oct 2003 14:49:19 +0000 (14:49 +0000)]
Preselection is _not_ a basicblock pass, because it adds global variables to
the module.  This change converts it from being a basic block pass to being
a simple pass.  This allows elimination of the annotation and simplification
of the logic for moving constants into global variables.

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

21 years agoAdded LLVM copyright notice.
John Criswell [Tue, 21 Oct 2003 14:33:46 +0000 (14:33 +0000)]
Added LLVM copyright notice.

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

21 years agoWhen opcodes like ADD were split into reg. and immed. versions (ADDi and ADDr),
Vikram S. Adve [Tue, 21 Oct 2003 12:29:45 +0000 (12:29 +0000)]
When opcodes like ADD were split into reg. and immed. versions (ADDi and ADDr),
this code wasn't fixed correctly so it missed copy operations that used ADDi.

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

21 years agoWhy does g++ not even generate a warning when you miss a break statement?
Vikram S. Adve [Tue, 21 Oct 2003 12:28:27 +0000 (12:28 +0000)]
Why does g++ not even generate a warning when you miss a break statement?

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

21 years agoImplement the new varargs instructions and intrinsics.
Vikram S. Adve [Tue, 21 Oct 2003 11:25:09 +0000 (11:25 +0000)]
Implement the new varargs instructions and intrinsics.

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

21 years agoOnly fails on the Sparc, only when run via the JIT.
Misha Brukman [Tue, 21 Oct 2003 04:13:37 +0000 (04:13 +0000)]
Only fails on the Sparc, only when run via the JIT.
And yet, it's a failure in the ``LowerSwitch'' pass.

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

21 years agoAdded LLVM copyright to Makefiles.
John Criswell [Mon, 20 Oct 2003 22:29:16 +0000 (22:29 +0000)]
Added LLVM copyright to Makefiles.

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

21 years agoAdded LLVM copyrights to Makefiles.
John Criswell [Mon, 20 Oct 2003 22:28:01 +0000 (22:28 +0000)]
Added LLVM copyrights to Makefiles.

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

21 years agoAdded LLVM copyright notice to Makefiles.
John Criswell [Mon, 20 Oct 2003 22:26:57 +0000 (22:26 +0000)]
Added LLVM copyright notice to Makefiles.

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

21 years agoAdd a new map
Chris Lattner [Mon, 20 Oct 2003 20:55:13 +0000 (20:55 +0000)]
Add a new map

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

21 years agoConvert this code from using annotations to using a local map
Chris Lattner [Mon, 20 Oct 2003 20:52:23 +0000 (20:52 +0000)]
Convert this code from using annotations to using a local map

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

21 years agoGoodbye, AddRegNumToValues
Brian Gaeke [Mon, 20 Oct 2003 20:44:03 +0000 (20:44 +0000)]
Goodbye, AddRegNumToValues

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

21 years agoRemoved extraneous comment line.
John Criswell [Mon, 20 Oct 2003 20:40:30 +0000 (20:40 +0000)]
Removed extraneous comment line.

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

21 years agoRemove using declaration
Chris Lattner [Mon, 20 Oct 2003 20:38:17 +0000 (20:38 +0000)]
Remove using declaration

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

21 years agoThis #include is no longer necessary
Chris Lattner [Mon, 20 Oct 2003 20:29:44 +0000 (20:29 +0000)]
This #include is no longer necessary

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

21 years agoAdded LLVM copyright header.
John Criswell [Mon, 20 Oct 2003 20:20:30 +0000 (20:20 +0000)]
Added LLVM copyright header.

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

21 years agoAdded LLVM copyright header (for lack of a better term).
John Criswell [Mon, 20 Oct 2003 20:19:47 +0000 (20:19 +0000)]
Added LLVM copyright header (for lack of a better term).

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

21 years agoOops. Typo.
John Criswell [Mon, 20 Oct 2003 20:16:14 +0000 (20:16 +0000)]
Oops. Typo.

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

21 years agoAdded LLVM header notice.
John Criswell [Mon, 20 Oct 2003 20:11:43 +0000 (20:11 +0000)]
Added LLVM header notice.

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

21 years agoFixed the documentation to coincide with the code.
Misha Brukman [Mon, 20 Oct 2003 19:47:25 +0000 (19:47 +0000)]
Fixed the documentation to coincide with the code.

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

21 years agoAdded LLVM notice.
John Criswell [Mon, 20 Oct 2003 19:46:57 +0000 (19:46 +0000)]
Added LLVM notice.

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

21 years agoMade error message more comprehensible.
Misha Brukman [Mon, 20 Oct 2003 19:43:47 +0000 (19:43 +0000)]
Made error message more comprehensible.

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

21 years agoAdded LLVM project notice to the top of every C++ source file.
John Criswell [Mon, 20 Oct 2003 19:43:21 +0000 (19:43 +0000)]
Added LLVM project notice to the top of every C++ source file.
Header files will be on the way.

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

21 years ago"Function"[0] == 'F', not 'M'
Chris Lattner [Mon, 20 Oct 2003 19:10:06 +0000 (19:10 +0000)]
"Function"[0] == 'F', not 'M'

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

21 years agoUpdate release notes
Chris Lattner [Mon, 20 Oct 2003 19:05:03 +0000 (19:05 +0000)]
Update release notes

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

21 years agoMinor leftover fixups from replaceMachineCodeForFunction () change.
Brian Gaeke [Mon, 20 Oct 2003 17:59:09 +0000 (17:59 +0000)]
Minor leftover fixups from replaceMachineCodeForFunction () change.

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

21 years agofix file header
Chris Lattner [Mon, 20 Oct 2003 17:58:43 +0000 (17:58 +0000)]
fix file header

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

21 years agofix file headers
Chris Lattner [Mon, 20 Oct 2003 17:57:13 +0000 (17:57 +0000)]
fix file headers

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

21 years agoFix file header
Chris Lattner [Mon, 20 Oct 2003 17:52:11 +0000 (17:52 +0000)]
Fix file header

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

21 years agoAdded copyright header to all C++ source files.
John Criswell [Mon, 20 Oct 2003 17:47:21 +0000 (17:47 +0000)]
Added copyright header to all C++ source files.

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

21 years agoMade the Requirements information its own major section and moved it
John Criswell [Mon, 20 Oct 2003 16:39:52 +0000 (16:39 +0000)]
Made the Requirements information its own major section and moved it
between the "Getting Started Quickly" and "Getting Started Slowly" sections.
:)
Removed some of the nit-picky requirements information (i.e. GNU tar and
GNU zip).
Attempted to compact the requirements information so that it is less scary.

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

21 years agoMake replaceMachineCodeForFunction() return void.
Brian Gaeke [Mon, 20 Oct 2003 15:17:12 +0000 (15:17 +0000)]
Make replaceMachineCodeForFunction() return void.

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

21 years agoMake replaceMachineCodeForFunction return void.
Brian Gaeke [Mon, 20 Oct 2003 15:15:17 +0000 (15:15 +0000)]
Make replaceMachineCodeForFunction return void.

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

21 years agoMake replaceMachineCodeForFunction return void.
Brian Gaeke [Mon, 20 Oct 2003 15:14:33 +0000 (15:14 +0000)]
Make replaceMachineCodeForFunction return void.
Make it assert by default.

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

21 years agoApparently the dependencies are wrong for this file, so it didn't rebuild it
Chris Lattner [Mon, 20 Oct 2003 14:12:52 +0000 (14:12 +0000)]
Apparently the dependencies are wrong for this file, so it didn't rebuild it
when changing Instruction.def.  :(

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

21 years agoReorder for minor efficiency gain
Chris Lattner [Mon, 20 Oct 2003 05:54:26 +0000 (05:54 +0000)]
Reorder for minor efficiency gain

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

21 years agoEmit x86 instructions for: A = B op C, where A and B are 16-bit registers,
Chris Lattner [Mon, 20 Oct 2003 05:53:31 +0000 (05:53 +0000)]
Emit x86 instructions for: A = B op C, where A and B are 16-bit registers,
C is a constant which can be sign-extended from 8 bits without value loss,
and op is one of: add, sub, imul, and, or, xor.

This allows the JIT to emit the one byte version of the constant instead of
the two or 4 byte version.  Because these instructions are very common, this
can save a LOT of code space.  For example, I sampled two benchmarks, 176.gcc
and 254.gap.

BM        Old     New    Reduction
176.gcc 2673621 2548962  4.89%
254.gap  498261  475104  4.87%

Note that while the percentage is not spectacular, this did eliminate
124.6 _KILOBYTES_ of codespace from gcc.  Not bad.

Note that this doesn't effect the llc version at all, because the assembler
already does this optimization.

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

21 years agoHrm, a relic from the past. How cute :)
Chris Lattner [Mon, 20 Oct 2003 05:45:49 +0000 (05:45 +0000)]
Hrm, a relic from the past.  How cute :)

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

21 years agoFurther cleanups and simplifications
Chris Lattner [Mon, 20 Oct 2003 04:48:06 +0000 (04:48 +0000)]
Further cleanups and simplifications

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

21 years agoEliminate code for pointer size and endianness emulation.
Chris Lattner [Mon, 20 Oct 2003 04:11:23 +0000 (04:11 +0000)]
Eliminate code for pointer size and endianness emulation.

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

21 years agoThe Grammar Police was here.
Misha Brukman [Mon, 20 Oct 2003 04:03:10 +0000 (04:03 +0000)]
The Grammar Police was here.

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

21 years ago* Fixed grammar in header
Misha Brukman [Mon, 20 Oct 2003 03:59:05 +0000 (03:59 +0000)]
* Fixed grammar in header
* Added description of `mem2reg'

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

21 years ago* Rename X86::IMULr16 -> X86::IMULrr16
Chris Lattner [Mon, 20 Oct 2003 03:42:58 +0000 (03:42 +0000)]
* Rename X86::IMULr16 -> X86::IMULrr16
* Implement R1 = R2 * C where R1 and R2 are 32 or 16 bits. This avoids an
  extra copy into a register, reducing register pressure.

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

21 years agoDon't bother forwarding function references which are external to the program entirely
Chris Lattner [Sun, 19 Oct 2003 23:32:50 +0000 (23:32 +0000)]
Don't bother forwarding function references which are external to the program entirely

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

21 years agoOk, return an explicit path to the shared object, unbreaking code generator
Chris Lattner [Sun, 19 Oct 2003 21:54:13 +0000 (21:54 +0000)]
Ok, return an explicit path to the shared object, unbreaking code generator
debugging with the JIT

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

21 years agoFix iterator invalidation problem
Chris Lattner [Sun, 19 Oct 2003 21:48:27 +0000 (21:48 +0000)]
Fix iterator invalidation problem

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

21 years agoEliminate unused class
Chris Lattner [Sun, 19 Oct 2003 21:39:41 +0000 (21:39 +0000)]
Eliminate unused class

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

21 years agoChange the Opcode enum for PHI nodes from "Instruction::PHINode" to "Instruction...
Chris Lattner [Sun, 19 Oct 2003 21:34:28 +0000 (21:34 +0000)]
Change the Opcode enum for PHI nodes from "Instruction::PHINode" to "Instruction::PHI" to be more consistent with the other instructions.

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

21 years agoChange the Opcode enum for PHI nodes from "Instruction::PHINode" to "Instruction...
Chris Lattner [Sun, 19 Oct 2003 21:34:11 +0000 (21:34 +0000)]
Change the Opcode enum for PHI nodes from "Instruction::PHINode" to "Instruction::PHI" to be more consistent with the other instructions.

This allows removal of a special case from the instvisitor

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

21 years ago* Multiplications by 2^X are turned into shifts. This factors code out of the
Chris Lattner [Sun, 19 Oct 2003 21:09:10 +0000 (21:09 +0000)]
* Multiplications by 2^X are turned into shifts.  This factors code out of the
  getelementptr code path for use by other code paths (like malloc and alloca).
* Optimize comparisons with zero
* Generate neg, not, inc, and dec instructions, when possible.

This gives some code size wins, which might translate into performance.  We'll
see tommorow in the nightly tester.

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

21 years agoAdd some new instructions. Wheee
Chris Lattner [Sun, 19 Oct 2003 19:25:35 +0000 (19:25 +0000)]
Add some new instructions.  Wheee

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

21 years agoChange it to match llvmgcc.html ... why do we have separate pages for these two?
Brian Gaeke [Sun, 19 Oct 2003 18:23:05 +0000 (18:23 +0000)]
Change it to match llvmgcc.html ... why do we have separate pages for these two?

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

21 years agoClarify the roles of gccld and gccas.
Brian Gaeke [Sun, 19 Oct 2003 18:15:18 +0000 (18:15 +0000)]
Clarify the roles of gccld and gccas.
Mention that they should really read the gcc manual.

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

21 years agoMinor edits; also expand description of '-v' option.
Brian Gaeke [Sun, 19 Oct 2003 18:09:24 +0000 (18:09 +0000)]
Minor edits; also expand description of '-v' option.

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

21 years agoTweak -plugin description to match bugpoint.html
Brian Gaeke [Sun, 19 Oct 2003 18:08:57 +0000 (18:08 +0000)]
Tweak -plugin description to match bugpoint.html

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

21 years agoMostly rewritten.
Brian Gaeke [Sun, 19 Oct 2003 18:03:11 +0000 (18:03 +0000)]
Mostly rewritten.

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

21 years agoA minor fix
Chris Lattner [Sun, 19 Oct 2003 17:37:33 +0000 (17:37 +0000)]
A minor fix

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

21 years agoTake out extra paragraph tag.
Brian Gaeke [Sun, 19 Oct 2003 17:37:12 +0000 (17:37 +0000)]
Take out extra paragraph tag.

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

21 years agoMake this (-run) set look like the other (-disable) set.
Brian Gaeke [Sun, 19 Oct 2003 17:35:35 +0000 (17:35 +0000)]
Make this (-run) set look like the other (-disable) set.

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