oota-llvm.git
18 years agoMinor code cleanups
Chris Lattner [Sun, 27 Aug 2006 22:10:29 +0000 (22:10 +0000)]
Minor code cleanups

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

18 years agoeliminate only use of FilteredPassNameParser
Chris Lattner [Sun, 27 Aug 2006 22:07:43 +0000 (22:07 +0000)]
eliminate only use of FilteredPassNameParser

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

18 years agoMerge the 'analyze' mode code with the 'opt' mode code. Eliminate the
Chris Lattner [Sun, 27 Aug 2006 22:07:01 +0000 (22:07 +0000)]
Merge the 'analyze' mode code with the 'opt' mode code.  Eliminate the
'autodetect .ll files' functionality.

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

18 years agoMove this test from Codegen/PowerPC to CodeGen/Generic. It fails on ia64,
Chris Lattner [Sun, 27 Aug 2006 20:52:00 +0000 (20:52 +0000)]
Move this test from Codegen/PowerPC to CodeGen/Generic.  It fails on ia64,
but that's not the ppc backend's fault.

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

18 years agoUse compiler.h instead of hand rolling our own macro
Chris Lattner [Sun, 27 Aug 2006 13:16:24 +0000 (13:16 +0000)]
Use compiler.h instead of hand rolling our own macro

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

18 years agoadd directive to disable inlining
Chris Lattner [Sun, 27 Aug 2006 13:16:05 +0000 (13:16 +0000)]
add directive to disable inlining

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

18 years agos|llvm/Support/Visibility.h|llvm/Support/Compiler.h|
Chris Lattner [Sun, 27 Aug 2006 12:54:02 +0000 (12:54 +0000)]
s|llvm/Support/Visibility.h|llvm/Support/Compiler.h|

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

18 years agotypo fix
Chris Lattner [Sun, 27 Aug 2006 12:47:48 +0000 (12:47 +0000)]
typo fix

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

18 years agoAdd external definitions for commonly-used template specializations and add
Chris Lattner [Sun, 27 Aug 2006 12:45:47 +0000 (12:45 +0000)]
Add external definitions for commonly-used template specializations and add
anchor methods to others.  This eliminates the vtable/template method bloat
in .o files that defining a cl::opt used to impose (~4K per .o file for one
cp::opt<unsigned>).

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

18 years agoNew place to put compiler-specific functionality. This replaces Visibility.h,
Chris Lattner [Sun, 27 Aug 2006 12:42:45 +0000 (12:42 +0000)]
New place to put compiler-specific functionality.  This replaces Visibility.h,
and provides macros that can be used to make explicit instantiations of
template specializations, which is a gcc-specific feature.

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

18 years agoDo not use getTargetNode() and SelectNodeTo() which takes more than 3
Evan Cheng [Sun, 27 Aug 2006 08:14:06 +0000 (08:14 +0000)]
Do not use getTargetNode() and SelectNodeTo() which takes more than 3
SDOperand arguments. Use the variants which take an array and number instead.

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

18 years agoDo not emit getTargetNode() and SelectNodeTo() which takes more than 3
Evan Cheng [Sun, 27 Aug 2006 08:11:28 +0000 (08:11 +0000)]
Do not emit getTargetNode() and SelectNodeTo() which takes more than 3
SDOperand arguments. Use the variants which take an array and number instead.

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

18 years agoEliminate SelectNodeTo() and getTargetNode() variants which take more than
Evan Cheng [Sun, 27 Aug 2006 08:08:54 +0000 (08:08 +0000)]
Eliminate SelectNodeTo() and getTargetNode() variants which take more than
3 SDOperand operands. They are replaced by versions which take an array
of SDOperand and the number of operands.

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

18 years agomake optional pointer really optional
Chris Lattner [Sun, 27 Aug 2006 07:11:54 +0000 (07:11 +0000)]
make optional pointer really optional

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

18 years agoFix target matching weights, so that ppc-darwin modules are codegen with the
Chris Lattner [Sat, 26 Aug 2006 21:33:05 +0000 (21:33 +0000)]
Fix target matching weights, so that ppc-darwin modules are codegen with the
ppc target, not the itanium target, when run on an itanium machine.
This should fix the CodeGen/PowerPC regtest failures on itanium.

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

18 years agoProperly size the string table, and emit symbol table and string table
Nate Begeman [Sat, 26 Aug 2006 15:46:34 +0000 (15:46 +0000)]
Properly size the string table, and emit symbol table and string table
entries in the correct order, fixing several fixmes.

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

18 years agoSelectNodeTo now returns a SDNode*.
Evan Cheng [Sat, 26 Aug 2006 08:00:10 +0000 (08:00 +0000)]
SelectNodeTo now returns a SDNode*.

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

18 years agoMinor getCopyToReg() call change.
Evan Cheng [Sat, 26 Aug 2006 07:39:28 +0000 (07:39 +0000)]
Minor getCopyToReg() call change.

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

18 years agoImproved codegen due to Chris' live interval joining changes.
Evan Cheng [Sat, 26 Aug 2006 07:38:36 +0000 (07:38 +0000)]
Improved codegen due to Chris' live interval joining changes.

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

18 years agoSelect() no longer require Result operand by reference.
Evan Cheng [Sat, 26 Aug 2006 05:34:46 +0000 (05:34 +0000)]
Select() no longer require Result operand by reference.

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

18 years agoRemove dead code.
Evan Cheng [Sat, 26 Aug 2006 01:34:15 +0000 (01:34 +0000)]
Remove dead code.

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

18 years agoSimplifications to liveinterval analysis, no functionality change.
Chris Lattner [Sat, 26 Aug 2006 01:28:16 +0000 (01:28 +0000)]
Simplifications to liveinterval analysis, no functionality change.

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

18 years agoMatch tblgen changes.
Evan Cheng [Sat, 26 Aug 2006 01:07:58 +0000 (01:07 +0000)]
Match tblgen changes.

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

18 years agoMatch tblgen changes; clean up.
Evan Cheng [Sat, 26 Aug 2006 01:05:16 +0000 (01:05 +0000)]
Match tblgen changes; clean up.

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

18 years agoA bit more clean up.
Evan Cheng [Sat, 26 Aug 2006 01:02:19 +0000 (01:02 +0000)]
A bit more clean up.

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

18 years ago- Clean up tablegen dag isel generator code.
Evan Cheng [Sat, 26 Aug 2006 00:59:04 +0000 (00:59 +0000)]
- Clean up tablegen dag isel generator code.
- Clean up the code generated by tablegen:
  * AddToISelQueue now takes one argument.
  * ComplexPattern matching condition can now be shared.
  * Eliminate passing unnecessary arguments to emit routines.
  * Eliminate some unneeded SDOperand declarations in select routines.
  * Other minor clean ups.
- This reduces foot print slightly: X86ISelDAGToDAG.o is reduced from 971k
  to 823k.

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

18 years agoGive a good error message when we try to jit inline asm.
Chris Lattner [Sat, 26 Aug 2006 00:47:03 +0000 (00:47 +0000)]
Give a good error message when we try to jit inline asm.

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

18 years agoCompletely change the way that joining with physregs is implemented. This
Chris Lattner [Fri, 25 Aug 2006 23:41:24 +0000 (23:41 +0000)]
Completely change the way that joining with physregs is implemented.  This
paves the way for future changes, increases coallescing opportunities (in
theory, not witnessed in practice), and eliminates the really expensive
LiveIntervals::overlapsAliases method.

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

18 years agoAdd a comment.
Evan Cheng [Fri, 25 Aug 2006 23:29:06 +0000 (23:29 +0000)]
Add a comment.

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

18 years agoTidy up.
Jim Laskey [Fri, 25 Aug 2006 22:56:30 +0000 (22:56 +0000)]
Tidy up.

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

18 years agoFix a crash related to updating Phi nodes in the original header block. This was
Owen Anderson [Fri, 25 Aug 2006 22:13:55 +0000 (22:13 +0000)]
Fix a crash related to updating Phi nodes in the original header block.  This was
causing a crash in 175.vpr

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

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