oota-llvm.git
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

18 years agoConvert llvm-ld to use the PluginLoader like opt instead of having its
Reid Spencer [Sun, 20 Aug 2006 19:18:36 +0000 (19:18 +0000)]
Convert llvm-ld to use the PluginLoader like opt instead of having its
one-off (and broken) RunOptimizations function. Also, run some cleanup
passes after the user's loaded passes run. This make sure to clean up
any cruft left around by thos passes.

This patch was inspired by a patch submitted by Bram Adams.

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

18 years agocall computeRegisterProperties
Rafael Espindola [Sun, 20 Aug 2006 01:49:49 +0000 (01:49 +0000)]
call computeRegisterProperties

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

18 years agovpkuwus didn't work, due to this typo
Chris Lattner [Fri, 18 Aug 2006 19:25:35 +0000 (19:25 +0000)]
vpkuwus didn't work, due to this typo

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

18 years agoThese changes reflect the changes in the database for how tests are stored
Patrick Jenkins [Fri, 18 Aug 2006 18:00:21 +0000 (18:00 +0000)]
These changes reflect the changes in the database for how tests are stored
and bring the handing of dejagnu tests into compliance with this new scheme.

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

18 years agoregenerate
Chris Lattner [Fri, 18 Aug 2006 17:34:45 +0000 (17:34 +0000)]
regenerate

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

18 years agotrivial optimization
Chris Lattner [Fri, 18 Aug 2006 17:34:24 +0000 (17:34 +0000)]
trivial optimization

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

18 years agoAdd a comment about the mechanisms used to rid AsmParser of exceptions.
Reid Spencer [Fri, 18 Aug 2006 17:32:55 +0000 (17:32 +0000)]
Add a comment about the mechanisms used to rid AsmParser of exceptions.

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

18 years agoTo avoid errors where a non-exception .o is on the stack between a throw
Reid Spencer [Fri, 18 Aug 2006 17:22:07 +0000 (17:22 +0000)]
To avoid errors where a non-exception .o is on the stack between a throw
and a handler, which would produce errors like:
  terminate called after throwing an instance of 'std::string'
we must comment out setting -fno-exceptions until PR797 is completely
fixed. Once libraries like lib/System and lib/Support are exception free,
we can turn it back on.

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

18 years agoFor PR797:
Reid Spencer [Fri, 18 Aug 2006 09:30:03 +0000 (09:30 +0000)]
For PR797:
1. Actually turn on -fno-exceptions in libraries that do not have the
   REQUIRES_EH option in their Makefile. The following library file size
   savings were made (DEBUG):
      libLLVMDataStructure.a  525K
      libLLVMCore.a           380K
      libLLVMCodeGen.a        350K
      libLLVMTransformUtils.a 305K
      libLLVMScalarOpts.a     270K
      libLLVMAnalysis.a       247K
      libLLVMSelectionDAG.a   233K
      libLLVMipo.a            175K
      LLVMX86.o               123K
      LLVMPPC.o                81K
      libLLVMipa.a             17K
                 TOTAL      2,706K
      Note that the savings is actually a little larger than this because
      I didn't count any of the libraries that had small changes.

2. Remove REQUIRES_EH from the AsmParser library as it is now exception
   free. This resulted in a nearly 78K drop in the size of the debug
   library for AsmParser.

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

18 years agoFor PR797:
Reid Spencer [Fri, 18 Aug 2006 09:07:54 +0000 (09:07 +0000)]
For PR797:
Update to reflect ParseException becoming ParseError (from Parser.h)

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

18 years agoFix a grammaro in a comment.
Reid Spencer [Fri, 18 Aug 2006 09:01:07 +0000 (09:01 +0000)]
Fix a grammaro in a comment.

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

18 years agoDrop the -s2048 option, it is specified incorrectly and the correct
Reid Spencer [Fri, 18 Aug 2006 09:00:22 +0000 (09:00 +0000)]
Drop the -s2048 option, it is specified incorrectly and the correct
specification can't be handled by llvmc (= confuses it)

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

18 years agoFor PR797:
Reid Spencer [Fri, 18 Aug 2006 08:43:06 +0000 (08:43 +0000)]
For PR797:
Rid the Assembly Parser of exceptions. This is a really gross hack but it
will do until the Assembly Parser is re-written as a recursive descent.
The basic premise is that wherever the old "ThrowException" function was
called (new name: GenerateError) we set a flag (TriggerError). Every
production checks that flag and calls YYERROR if it is set. Additionally,
each call to ThrowException in the grammar is replaced with GEN_ERROR
which calls GenerateError and then YYERROR immediately. This prevents
the remaining production from continuing after an error condition.

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

18 years agoFor PR872:
Reid Spencer [Fri, 18 Aug 2006 06:34:30 +0000 (06:34 +0000)]
For PR872:
Shrinkify LLVM's footprint by removing the analyze tool and moving its
functionality into the opt tool. THis eliminates one of the largest tools
from LLVM and doesn't make opt much bigger because it already included
most of the analysis passes.  To get the old analyze functionality pass
the -analyze option to opt. Note that the integeration here is dead
simple. The "main" of analyze was just copied to opt and invoked if the
-analyze option was given. There may be opportunities for further
integration such as removing the distinction between transform passes
and analysis passes.

To use the analysis functionality, if you previously did this:
  analyze $FNAME -domset -disable-verify
you would now do this:
  opt -analyze $FNAME -domset -disable-verify
Pretty simple.

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

18 years agoTemporarily xfail this test, evan will look at it in a week or so.
Chris Lattner [Fri, 18 Aug 2006 00:18:38 +0000 (00:18 +0000)]
Temporarily xfail this test, evan will look at it in a week or so.

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

18 years agoChanging the format dejagnu tests are submitted. We used to only submit multisource...
Patrick Jenkins [Thu, 17 Aug 2006 22:11:03 +0000 (22:11 +0000)]
Changing the format dejagnu tests are submitted. We used to only submit multisource information for pass fail. Now we submit all pass/fail test information. This should fix the issue where some results were not being reported.

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

18 years agoConstify some methods. Patch provided by Anton Vayvod, thanks!
Chris Lattner [Thu, 17 Aug 2006 22:00:08 +0000 (22:00 +0000)]
Constify some methods.  Patch provided by Anton Vayvod, thanks!

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

18 years agofit in 80 cols
Chris Lattner [Thu, 17 Aug 2006 18:51:28 +0000 (18:51 +0000)]
fit in 80 cols

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

18 years agominor cleanups
Chris Lattner [Thu, 17 Aug 2006 18:49:52 +0000 (18:49 +0000)]
minor cleanups

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

18 years agoRevert this patch, the front-end has been fixed to make it unneccesary.
Chris Lattner [Thu, 17 Aug 2006 18:43:24 +0000 (18:43 +0000)]
Revert this patch, the front-end has been fixed to make it unneccesary.

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

18 years ago'g' is handled by the front-end.
Chris Lattner [Thu, 17 Aug 2006 18:12:28 +0000 (18:12 +0000)]
'g' is handled by the front-end.

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

18 years agoFix handling of 'g'. Closes 883
Andrew Lenharth [Thu, 17 Aug 2006 17:50:12 +0000 (17:50 +0000)]
Fix handling of 'g'.  Closes 883

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

18 years agoadd a "load effective address"
Rafael Espindola [Thu, 17 Aug 2006 17:09:40 +0000 (17:09 +0000)]
add a "load effective address"

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

18 years agoAdd the 'c' constraint as needed by the linux kernel
Andrew Lenharth [Thu, 17 Aug 2006 16:07:50 +0000 (16:07 +0000)]
Add the 'c' constraint as needed by the linux kernel

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

18 years agoAdd support for S and D constraints, as needed to compile the linux kernel.
Andrew Lenharth [Thu, 17 Aug 2006 15:35:43 +0000 (15:35 +0000)]
Add support for S and D constraints, as needed to compile the linux kernel.

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

18 years agoFix validation problem
Chris Lattner [Thu, 17 Aug 2006 03:26:50 +0000 (03:26 +0000)]
Fix validation problem

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

18 years agoremove IRC transcript. Anything still misunderstood after the faq is read
Chris Lattner [Thu, 17 Aug 2006 03:25:07 +0000 (03:25 +0000)]
remove IRC transcript.  Anything still misunderstood after the faq is read
can be added to the faq.

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

18 years agoswitch the SUnit pred/succ sets from being std::sets to being smallvectors.
Chris Lattner [Thu, 17 Aug 2006 00:09:56 +0000 (00:09 +0000)]
switch the SUnit pred/succ sets from being std::sets to being smallvectors.
This reduces selectiondag time on kc++ from 5.43s to 4.98s (9%).  More
significantly, this speeds up the default ppc scheduler from ~1571ms to 1063ms,
a 33% speedup.

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

18 years agoAnother cyclic dag test case.
Evan Cheng [Thu, 17 Aug 2006 00:00:46 +0000 (00:00 +0000)]
Another cyclic dag test case.

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

18 years agoDoh. Incorrectly inverted condition. Also add a isOnlyUse check to match tablegen.
Evan Cheng [Wed, 16 Aug 2006 23:59:00 +0000 (23:59 +0000)]
Doh. Incorrectly inverted condition. Also add a isOnlyUse check to match tablegen.

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

18 years agominor changes.
Chris Lattner [Wed, 16 Aug 2006 22:57:46 +0000 (22:57 +0000)]
minor changes.

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

18 years agoadd an accessor
Chris Lattner [Wed, 16 Aug 2006 22:57:08 +0000 (22:57 +0000)]
add an accessor

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

18 years agoMy last commit added some experimental features I have been working on. This commit...
Patrick Jenkins [Wed, 16 Aug 2006 22:32:20 +0000 (22:32 +0000)]
My last commit added some experimental features I have been working on. This commit rolls those back.

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

18 years agoChanged the call to countloc.sh so that the correct topdirectory of the llvm build...
Patrick Jenkins [Wed, 16 Aug 2006 22:18:41 +0000 (22:18 +0000)]
Changed the call to countloc.sh so that the correct topdirectory of the llvm build is set.

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

18 years agoConvert vector to smallvector: 4% speedup.
Chris Lattner [Wed, 16 Aug 2006 22:12:48 +0000 (22:12 +0000)]
Convert vector to smallvector: 4% speedup.

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

18 years agosilence a warning.
Chris Lattner [Wed, 16 Aug 2006 22:09:24 +0000 (22:09 +0000)]
silence a warning.

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

18 years agoAdded my home web page.
Bill Wendling [Wed, 16 Aug 2006 21:18:56 +0000 (21:18 +0000)]
Added my home web page.

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

18 years agoChange the use_list to be a smallvector instead of a vector. This reduces
Chris Lattner [Wed, 16 Aug 2006 21:01:10 +0000 (21:01 +0000)]
Change the use_list to be a smallvector instead of a vector.  This reduces
isel time from 6.79s to 5.53s (22%) on kc++ with a release build on ppc.
Go smallvector! :)

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

18 years agoUse the appropriate typedef
Chris Lattner [Wed, 16 Aug 2006 20:59:32 +0000 (20:59 +0000)]
Use the appropriate typedef

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

18 years agoPatches to correct several bugs in llvmc.
Reid Spencer [Wed, 16 Aug 2006 20:31:44 +0000 (20:31 +0000)]
Patches to correct several bugs in llvmc.
Patches contributed by Bram Adams. Thanks Bram.

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

18 years agoDeclare the callee saved regs
Rafael Espindola [Wed, 16 Aug 2006 14:43:33 +0000 (14:43 +0000)]
Declare the callee saved regs
Remove the hard coded store and load of the link register
Implement ARMFrameInfo

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