oota-llvm.git
18 years agoAdd an assertion to check that we're really preserving LCSSA.
Owen Anderson [Fri, 25 Aug 2006 22:12:36 +0000 (22:12 +0000)]
Add an assertion to check that we're really preserving LCSSA.

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

18 years agoEncode pc-relative conditional branch offset as pc+(num of bytes / 4). The
Evan Cheng [Fri, 25 Aug 2006 21:54:44 +0000 (21:54 +0000)]
Encode pc-relative conditional branch offset as pc+(num of bytes / 4). The
asm printer will print it as offset*4. e.g. bne cr0, $+8.

The PPC code emitter was expecting the offset to be number of instructions, not
number of bytes. This fixes a whole bunch of JIT failures.

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

18 years agoFor PR797:
Reid Spencer [Fri, 25 Aug 2006 21:37:17 +0000 (21:37 +0000)]
For PR797:
Make the Win32 code exception free (untested/uncompiled) which forced some
interface changes which had ripple effect. This should be the last of 797.

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

18 years agoDoh! Commit the change that turns ON -fno-exceptions.
Reid Spencer [Fri, 25 Aug 2006 20:56:59 +0000 (20:56 +0000)]
Doh! Commit the change that turns ON -fno-exceptions.

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

18 years agoFor PR797:
Reid Spencer [Fri, 25 Aug 2006 19:54:53 +0000 (19:54 +0000)]
For PR797:
Final commit for this bug. This removes the last EH holdouts in LLVM
and turns off exception support by using the -fno-exceptions option. This
leads to the following reduction in library and executable sizes:
                DEBUG BUILD                RELEASE BUILD
         before     after   delta     before   after    delta
lib    162,328K  157,616K   4,712    17,864K  16,416K  1,448K
bin    571,444K  557,156K  14,288    63,296K   56,996K 6,300K

Debug   Improvement: 19,000K (2.59%)
Release Improvement:  7,748K (9.55%)

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

18 years agoConsolidate callee saved register information so that it can me used by debug
Jim Laskey [Fri, 25 Aug 2006 19:45:51 +0000 (19:45 +0000)]
Consolidate callee saved register information so that it can me used by debug
information and exception handling.

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

18 years agoFix some comments.
Jim Laskey [Fri, 25 Aug 2006 19:40:59 +0000 (19:40 +0000)]
Fix some comments.

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

18 years agoAllow for register numbers > 31.
Jim Laskey [Fri, 25 Aug 2006 19:39:52 +0000 (19:39 +0000)]
Allow for register numbers > 31.

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

18 years agotest case for varargs functions
Rafael Espindola [Fri, 25 Aug 2006 17:57:36 +0000 (17:57 +0000)]
test case for varargs functions

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

18 years agouse @ for comments
Rafael Espindola [Fri, 25 Aug 2006 17:55:16 +0000 (17:55 +0000)]
use @ for comments
store LR in an arbitrary stack slot
add support for writing varargs functions

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

18 years agoFor PR797:
Reid Spencer [Fri, 25 Aug 2006 17:43:11 +0000 (17:43 +0000)]
For PR797:
Remove exception throwing/handling from lib/Bytecode, and adjust its users
to compensate for changes in the interface.

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

18 years agoReapply the indvars patch, since nothing blew up last night.
Owen Anderson [Fri, 25 Aug 2006 17:41:25 +0000 (17:41 +0000)]
Reapply the indvars patch, since nothing blew up last night.

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

18 years agoFix a race condition in the makefile that broke grawp's tester last night.
Chris Lattner [Fri, 25 Aug 2006 17:15:23 +0000 (17:15 +0000)]
Fix a race condition in the makefile that broke grawp's tester last night.

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

18 years agoBring Xcode project up to date.
Jim Laskey [Fri, 25 Aug 2006 14:16:49 +0000 (14:16 +0000)]
Bring Xcode project up to date.

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

18 years agoGet closer to handling globals correctly. We now generally get them in the
Nate Begeman [Fri, 25 Aug 2006 06:36:58 +0000 (06:36 +0000)]
Get closer to handling globals correctly.  We now generally get them in the
right section.

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

18 years agoFix a bug introduced by a change in the Archive::writeToDisk interface.
Reid Spencer [Fri, 25 Aug 2006 05:29:36 +0000 (05:29 +0000)]
Fix a bug introduced by a change in the Archive::writeToDisk interface.

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

18 years agoFix a bug caused by change in the interface of Archive::writeToDisk.
Reid Spencer [Fri, 25 Aug 2006 05:28:17 +0000 (05:28 +0000)]
Fix a bug caused by change in the interface of Archive::writeToDisk.

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

18 years agoRevert my previous patch. Since there are some major changes that went in today,
Owen Anderson [Fri, 25 Aug 2006 03:45:57 +0000 (03:45 +0000)]
Revert my previous patch.  Since there are some major changes that went in today,
I'm going to wait to put this in HEAD until tomorrow, so as not to clutter the nightly
tester.

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

18 years agoSpecify that indvars actually preserve LCSSA. This has been done for a while, but I
Owen Anderson [Fri, 25 Aug 2006 03:32:13 +0000 (03:32 +0000)]
Specify that  indvars actually preserve LCSSA.  This has been done for a while, but I
forgot to put in the analysis usage.

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

18 years agoFor PR797:
Reid Spencer [Thu, 24 Aug 2006 23:45:08 +0000 (23:45 +0000)]
For PR797:
Remove exception handling from the bytecode archiver and adjust the llvm-ar
tool to accommodate the new interfaces.

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

18 years agoWhen replacing value numbers, make sure to compactify the value # space.
Chris Lattner [Thu, 24 Aug 2006 23:22:59 +0000 (23:22 +0000)]
When replacing value numbers, make sure to compactify the value # space.

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

18 years agoWe compile this into:
Chris Lattner [Thu, 24 Aug 2006 23:06:02 +0000 (23:06 +0000)]
We compile this into:

_swap_16:
        slwi r2, r3, 24
        rlwimi r2, r3, 8, 8, 15
        srwi r3, r2, 16
        blr

now.

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

18 years agoOwen implemented this.
Chris Lattner [Thu, 24 Aug 2006 23:03:33 +0000 (23:03 +0000)]
Owen implemented this.

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

18 years agoTake advantage of the recent improvements to the liveintervals set (tracking
Chris Lattner [Thu, 24 Aug 2006 22:43:55 +0000 (22:43 +0000)]
Take advantage of the recent improvements to the liveintervals set (tracking
instructions which define each value#) to simplify and improve the coallescer.
In particular, this patch:

1. Implements iterative coallescing.
2. Reverts an unsafe hack from handlePhysRegDef, superceeding it with a
   better solution.
3. Implements PR865, "coallescing" away the second copy in code like:

   A = B
   ...
   B = A

This also includes changes to symbolically print registers in intervals
when possible.

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

18 years agoFor PR738:
Reid Spencer [Thu, 24 Aug 2006 22:41:20 +0000 (22:41 +0000)]
For PR738:
Demote check for bison from error to warning and make sure that the
makefile can handle an empty definition for BISON variable.

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

18 years agoRemove a character to avoid line exceeding 80 cols.
Reid Spencer [Thu, 24 Aug 2006 22:39:25 +0000 (22:39 +0000)]
Remove a character to avoid line exceeding 80 cols.

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

18 years agoImplement unrolling of multiblock loops. This significantly improves the
Owen Anderson [Thu, 24 Aug 2006 21:28:19 +0000 (21:28 +0000)]
Implement unrolling of multiblock loops.  This significantly improves the
utility of the LoopUnroll pass.

Also, add a testcase for multiblock-loop unrolling.

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

18 years agoFor PR797:
Reid Spencer [Thu, 24 Aug 2006 18:58:37 +0000 (18:58 +0000)]
For PR797:
Adjust implementation to match the new interface after exception handling
was removed in the Unix verison. NOTE: this hasn't been compiled yet!

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

18 years agoadd the "eq" condition code
Rafael Espindola [Thu, 24 Aug 2006 17:19:08 +0000 (17:19 +0000)]
add the "eq" condition code
implement a movcond instruction

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

18 years agocreate a generic bcond instruction that has a conditional code argument
Rafael Espindola [Thu, 24 Aug 2006 16:13:15 +0000 (16:13 +0000)]
create a generic bcond instruction that has a conditional code argument

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

18 years agoRemove a FIXME. Don't use strlcpy that isn't available on non-BSD platforms
Reid Spencer [Thu, 24 Aug 2006 14:25:39 +0000 (14:25 +0000)]
Remove a FIXME. Don't use strlcpy that isn't available on non-BSD platforms
and ensure that a memory overrun won't occur while still writing Length
bytes in the outstring function.

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

18 years agoinitial support for branches
Rafael Espindola [Thu, 24 Aug 2006 13:45:55 +0000 (13:45 +0000)]
initial support for branches

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

18 years agoupdate some comments
Chris Lattner [Thu, 24 Aug 2006 00:21:32 +0000 (00:21 +0000)]
update some comments

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

18 years agoCorrectly attribute file author & remote tabs
Nate Begeman [Wed, 23 Aug 2006 21:33:27 +0000 (21:33 +0000)]
Correctly attribute file author & remote tabs

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

18 years agoMake sure that both non-asm file types are marked as experimental
Nate Begeman [Wed, 23 Aug 2006 21:29:52 +0000 (21:29 +0000)]
Make sure that both non-asm file types are marked as experimental

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

18 years agoInitial checkin of the Mach-O emitter. There's plenty of fixmes, but it
Nate Begeman [Wed, 23 Aug 2006 21:08:52 +0000 (21:08 +0000)]
Initial checkin of the Mach-O emitter.  There's plenty of fixmes, but it
does emit linkable .o files in very simple cases.

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

18 years agoFor PR797:
Reid Spencer [Wed, 23 Aug 2006 20:39:25 +0000 (20:39 +0000)]
For PR797:
This library no longer throws nor handles exceptions, so turn off the
REQUIRES_EH flag.

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

18 years agoFor PR797:
Reid Spencer [Wed, 23 Aug 2006 20:37:59 +0000 (20:37 +0000)]
For PR797:
Final remove of exception handling from this file. lib/System can no longer
throw exceptions so there's no need for try/catch blocks here.

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

18 years agoTurn off exception handling for this library. It no longer throws nor
Reid Spencer [Wed, 23 Aug 2006 20:35:51 +0000 (20:35 +0000)]
Turn off exception handling for this library. It no longer throws nor
handles exceptions.

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

18 years agoFor PR797:
Reid Spencer [Wed, 23 Aug 2006 20:34:57 +0000 (20:34 +0000)]
For PR797:
Final removal of exceptions from lib/System and adjustment of users to
accommodate.

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

18 years agoFix constructor documentation.
Reid Spencer [Wed, 23 Aug 2006 17:43:20 +0000 (17:43 +0000)]
Fix constructor documentation.

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

18 years agoIf unable to create tmp. file on disk then return LTO_WRITE_FAILURE status.
Devang Patel [Wed, 23 Aug 2006 16:59:25 +0000 (16:59 +0000)]
If unable to create tmp. file on disk then return LTO_WRITE_FAILURE status.

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

18 years agoFor PR797:
Reid Spencer [Wed, 23 Aug 2006 07:30:48 +0000 (07:30 +0000)]
For PR797:
Eliminate exception throwing from Path::renamePathOnDisk and adjust its
users correspondingly.

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

18 years agoMake the ProgramName variable a std::string so we can eliminate the path
Reid Spencer [Wed, 23 Aug 2006 07:10:06 +0000 (07:10 +0000)]
Make the ProgramName variable a std::string so we can eliminate the path
portion fo the program name via sys::Path().getLast(). This makes error
messages more readable since this is invariably used only in error
messages.  Instead of:
  /path/to/llvm/bin/directory/toolname: error message
we will now get:
  toolname: error message
Also, since we always have a program name (even if its defaulted), don't
check to see if it is set or not when generating error messages. This
eliminates a bunch of constant strings, saving a little under 1K of data.

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

18 years agoFor PR797:
Reid Spencer [Wed, 23 Aug 2006 06:56:27 +0000 (06:56 +0000)]
For PR797:
Remove exception throwing from Path::getDirectoryContents and its users.

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

18 years agoFor PR797:
Reid Spencer [Wed, 23 Aug 2006 00:39:35 +0000 (00:39 +0000)]
For PR797:
Remove exceptions from the Path::create*OnDisk methods. Update their users
to handle error messages via arguments and result codes.

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

18 years agoRearrange order to build more frequently used tools first and make the
Reid Spencer [Wed, 23 Aug 2006 00:12:11 +0000 (00:12 +0000)]
Rearrange order to build more frequently used tools first and make the
triplet ordering (large, small, small) explicit with one triplet per line.

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

18 years agoFix a typo.
Reid Spencer [Wed, 23 Aug 2006 00:06:14 +0000 (00:06 +0000)]
Fix a typo.

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

18 years agoFor PR797:
Reid Spencer [Tue, 22 Aug 2006 23:54:35 +0000 (23:54 +0000)]
For PR797:
Adjust code to compensate for Path class interface change.

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

18 years agoFor PR797:
Reid Spencer [Tue, 22 Aug 2006 23:27:23 +0000 (23:27 +0000)]
For PR797:
Change the Path::make*OnDisk methods exception free and adjust their usage.

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

18 years agoRearrange the build order to better accommodate parallel build by reducing
Reid Spencer [Tue, 22 Aug 2006 23:21:21 +0000 (23:21 +0000)]
Rearrange the build order to better accommodate parallel build by reducing
memory pressure. This order spaces out large executables with small ones in
between so that in a -j2 or -j3 build, it only attempts to build only one
large executable at time. If you're doing -j4, you probably have enuogh
memory anyway.

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

18 years agoUpdate for changes in Path class interface for exception removal.
Reid Spencer [Tue, 22 Aug 2006 22:46:39 +0000 (22:46 +0000)]
Update for changes in Path class interface for exception removal.

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

18 years agoAdd irix as a (potential) new platform so that Timothy Baldridge can
Reid Spencer [Tue, 22 Aug 2006 22:21:38 +0000 (22:21 +0000)]
Add irix as a (potential) new platform so that Timothy Baldridge can
(hopefully) provide support for it.

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

18 years agoAdded link to ABI documentation, sent by Rafael Espindola.
Misha Brukman [Tue, 22 Aug 2006 21:56:43 +0000 (21:56 +0000)]
Added link to ABI documentation, sent by Rafael Espindola.

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

18 years agoMake the sys::Path::GetTemporaryDirectory method not throw exceptions and
Reid Spencer [Tue, 22 Aug 2006 19:01:30 +0000 (19:01 +0000)]
Make the sys::Path::GetTemporaryDirectory method not throw exceptions and
adjust users of it to compensate.

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

18 years agoImprove the LiveInterval class to keep track of which machine instruction
Chris Lattner [Tue, 22 Aug 2006 18:19:46 +0000 (18:19 +0000)]
Improve the LiveInterval class to keep track of which machine instruction
defines each value# tracked by the interval.  This will be used to improve
coallescing.

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

18 years agoCorrected an error that was introduced yesterday that caused the GCC
Patrick Jenkins [Tue, 22 Aug 2006 18:11:19 +0000 (18:11 +0000)]
Corrected an error that was introduced yesterday that caused the GCC
version to be left blank if the build failed.

Also corrected a problem where if the build failed the nightly tester
would still try to read the results of the Dejagnutests log even
though it didnt exist.

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

18 years agoFix another occurrence of inverted logic on the result of MappedFile::map
Reid Spencer [Tue, 22 Aug 2006 18:03:02 +0000 (18:03 +0000)]
Fix another occurrence of inverted logic on the result of MappedFile::map

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

18 years agoInverse the error check logic for the MappedFile::map() call. It returns
Reid Spencer [Tue, 22 Aug 2006 17:58:50 +0000 (17:58 +0000)]
Inverse the error check logic for the MappedFile::map() call. It returns
a null pointer when there is an error.

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

18 years agoDon't throw needlessly. Failure of gettimeofday is *very* unlinkely so
Reid Spencer [Tue, 22 Aug 2006 17:38:44 +0000 (17:38 +0000)]
Don't throw needlessly. Failure of gettimeofday is *very* unlinkely so
just return MinTime if that should ever happen.

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

18 years agoFix some indentation.
Reid Spencer [Tue, 22 Aug 2006 17:38:05 +0000 (17:38 +0000)]
Fix some indentation.

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

18 years agoadd resize, move swap out of line
Chris Lattner [Tue, 22 Aug 2006 17:28:57 +0000 (17:28 +0000)]
add resize, move swap out of line

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

18 years agorun llc with -march=arm in select.ll
Rafael Espindola [Tue, 22 Aug 2006 16:19:54 +0000 (16:19 +0000)]
run llc with -march=arm in select.ll

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

18 years agoFor PR797:
Reid Spencer [Tue, 22 Aug 2006 16:10:12 +0000 (16:10 +0000)]
For PR797:
Adjust the use of MappedFile to its new non-throwing interface. We just
propagate the exceptions if an error occurs. This will get cleaned up
later, incrementally.

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

18 years agoFor PR797:
Reid Spencer [Tue, 22 Aug 2006 16:09:19 +0000 (16:09 +0000)]
For PR797:
Make the Bytecode Reader use setjmp/longjump instead of exceptions to handle
errors. The alternative was even uglier than setjmp/longjump as it would
impact the interface and workings of nearly every function in the reader.

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

18 years agoFor PR797:
Reid Spencer [Tue, 22 Aug 2006 16:07:44 +0000 (16:07 +0000)]
For PR797:
Adjust to new interface for MappedFile. Note that the new "throw"
statements will be removed later.

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

18 years agoFor PR797:
Reid Spencer [Tue, 22 Aug 2006 16:06:27 +0000 (16:06 +0000)]
For PR797:
Adjust users of MappedFile to its new non-throwing interface.  Note that in
most cases the lazy step of just throwing after a call to MappedFile was
installed. This was done in the name of incremental changes. Getting rid of
the new throw statements will take adjustment of interfaces and propagation
of errors to higher levels.  Those changes will come in subsequent patches.

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

18 years agoFor PR797:
Reid Spencer [Tue, 22 Aug 2006 16:04:22 +0000 (16:04 +0000)]
For PR797:
Make MappedFile not throw any exceptions.

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

18 years agoFor PR797:
Reid Spencer [Tue, 22 Aug 2006 15:56:52 +0000 (15:56 +0000)]
For PR797:
Fix a bug in my last patch that botched file redirection by using explicit
scoping of if statements.

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

18 years agoadd a README.txt
Rafael Espindola [Tue, 22 Aug 2006 12:22:46 +0000 (12:22 +0000)]
add a README.txt

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

18 years agoThis passes.
Chris Lattner [Tue, 22 Aug 2006 06:43:24 +0000 (06:43 +0000)]
This passes.

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

18 years agoSwitch to using smallvector for liveintervals. This speeds up live interval
Chris Lattner [Tue, 22 Aug 2006 06:32:56 +0000 (06:32 +0000)]
Switch to using smallvector for liveintervals.  This speeds up live interval
analysis 11% on kc++.

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

18 years agoadd a bunch more operations, including swap, insert, erase, front(), and
Chris Lattner [Tue, 22 Aug 2006 06:27:16 +0000 (06:27 +0000)]
add a bunch more operations, including swap, insert, erase, front(), and
bugfixes for operator=.

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

18 years agoUse the correct syntax.
Reid Spencer [Tue, 22 Aug 2006 05:40:51 +0000 (05:40 +0000)]
Use the correct syntax.
Note to self: test before committing things!

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

18 years agoAdd a simple RUN line so this doesn't always fail. XFAIL this until
Reid Spencer [Tue, 22 Aug 2006 05:37:43 +0000 (05:37 +0000)]
Add a simple RUN line so this doesn't always fail. XFAIL this until
Rafael can get a chance to fix it.

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

18 years agoMake an error message a little more intelligible.
Reid Spencer [Tue, 22 Aug 2006 05:28:38 +0000 (05:28 +0000)]
Make an error message a little more intelligible.

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

18 years agoModified the RUN line from "analyze ..." to "opt -analyze ..." because
Bill Wendling [Tue, 22 Aug 2006 04:37:51 +0000 (04:37 +0000)]
Modified the RUN line from "analyze ..." to "opt -analyze ..." because
Reid removed the analyze tool and incorporated it into the opt tool.

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

18 years agomove LiveInterval state all together
Chris Lattner [Mon, 21 Aug 2006 23:15:12 +0000 (23:15 +0000)]
move LiveInterval state all together

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

18 years agoPrint physreg names symbolically in dumps
Chris Lattner [Mon, 21 Aug 2006 23:03:54 +0000 (23:03 +0000)]
Print physreg names symbolically in dumps

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

18 years agoUpdate info on mangled names.
Jim Laskey [Mon, 21 Aug 2006 22:57:31 +0000 (22:57 +0000)]
Update info on mangled names.

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

18 years agoPrint debug info as:
Chris Lattner [Mon, 21 Aug 2006 22:56:29 +0000 (22:56 +0000)]
Print debug info as:

*** Register mapping ***
  reg 1024 -> %reg1028
  reg 1026 -> EAX
  reg 1027 -> %reg1028

instead of:

*** Register mapping ***
  reg 1024 -> reg 1028
  reg 1026 -> reg 15
  reg 1027 -> reg 1028

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

18 years agoinitial support for select
Rafael Espindola [Mon, 21 Aug 2006 22:00:32 +0000 (22:00 +0000)]
initial support for select

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

18 years agoUpdate debugging documents.
Jim Laskey [Mon, 21 Aug 2006 21:21:06 +0000 (21:21 +0000)]
Update debugging documents.

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

18 years agoAdding C++ member support.
Jim Laskey [Mon, 21 Aug 2006 21:20:18 +0000 (21:20 +0000)]
Adding C++ member support.

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

18 years agoAdding new Dwarf constants.
Jim Laskey [Mon, 21 Aug 2006 21:18:10 +0000 (21:18 +0000)]
Adding new Dwarf constants.

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

18 years agoThe new nightly tester should stop outputing a message stating the
Patrick Jenkins [Mon, 21 Aug 2006 20:45:57 +0000 (20:45 +0000)]
The new nightly tester should stop outputing a message stating the
testresults directory is not present unless the script is run as verbose.

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

18 years agoFix PR861
Chris Lattner [Mon, 21 Aug 2006 20:24:53 +0000 (20:24 +0000)]
Fix PR861

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

18 years agoFix PR885
Chris Lattner [Mon, 21 Aug 2006 17:20:01 +0000 (17:20 +0000)]
Fix PR885

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

18 years agoadd the and instruction
Rafael Espindola [Mon, 21 Aug 2006 13:58:59 +0000 (13:58 +0000)]
add the and instruction

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

18 years agoAdded a check so that if we have two machine instructions in this form
Bill Wendling [Mon, 21 Aug 2006 07:33:33 +0000 (07:33 +0000)]
Added a check so that if we have two machine instructions in this form

    MOV R0, R1
    MOV R1, R0

the second machine instruction is removed. Added a regression test.

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

18 years agoFor PR797:
Reid Spencer [Mon, 21 Aug 2006 06:04:45 +0000 (06:04 +0000)]
For PR797:
Adjust usage of the ExecuteAndWait function to use the last argument which
is the ErrMsg string. This is necessitated because this function no longer
throws exceptions on error.

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

18 years agoFor PR797:
Reid Spencer [Mon, 21 Aug 2006 06:02:44 +0000 (06:02 +0000)]
For PR797:
Remove all exception code from Program.inc and implement its new interface
with an ErrMsg string argument.

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

18 years agoFor PR797:
Reid Spencer [Mon, 21 Aug 2006 06:00:58 +0000 (06:00 +0000)]
For PR797:
Change interface for error recovery without exceptions.

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

18 years agoFix the documentation for this file.
Reid Spencer [Mon, 21 Aug 2006 05:37:03 +0000 (05:37 +0000)]
Fix the documentation for this file.

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

18 years agoFor PR885:
Reid Spencer [Mon, 21 Aug 2006 05:34:03 +0000 (05:34 +0000)]
For PR885:
Consolidate the LinkAllAnalyses.h and LinkAllPasses.h headers into one
so there is no dupliation.

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

18 years agoFix a build failure
Nate Begeman [Mon, 21 Aug 2006 04:57:01 +0000 (04:57 +0000)]
Fix a build failure

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

18 years agoFor PR797:
Reid Spencer [Mon, 21 Aug 2006 02:04:43 +0000 (02:04 +0000)]
For PR797:
Make sys::Program::ExecuteAndWait not throw exceptions and update any
affected code. It now return -9999 to signal that the program couldn't be
executed. Only one case (in bugpoint) actually examines the result code.

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

18 years agoMinor technical correction in documentation.
Reid Spencer [Mon, 21 Aug 2006 01:58:57 +0000 (01:58 +0000)]
Minor technical correction in documentation.

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

18 years agoMake sure the verify pass gets run after the user's loaded passes as well
Reid Spencer [Sun, 20 Aug 2006 20:54:38 +0000 (20:54 +0000)]
Make sure the verify pass gets run after the user's loaded passes as well
when the verify-each option is given.

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

18 years agoRename the -verify option to be -verify-each so that it doesn't conflict
Reid Spencer [Sun, 20 Aug 2006 20:48:44 +0000 (20:48 +0000)]
Rename the -verify option to be -verify-each so that it doesn't conflict
with the -verify pass option. It is also more accurate in that this option
causes a verify option to be run after every pass.

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