oota-llvm.git
21 years agoNew testcases
Chris Lattner [Fri, 19 Sep 2003 15:33:46 +0000 (15:33 +0000)]
New testcases

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

21 years agoa bitfield stress test to exercise various parts of the front-end.
Chris Lattner [Fri, 19 Sep 2003 05:22:10 +0000 (05:22 +0000)]
a bitfield stress test to exercise various parts of the front-end.

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

21 years agoChanged the empty rule for .h files. The rule needs an empty command so that
John Criswell [Thu, 18 Sep 2003 18:37:08 +0000 (18:37 +0000)]
Changed the empty rule for .h files.  The rule needs an empty command so that
Make actually uses it to "regenerate" header files that have been
moved/removed.

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

21 years agoFix a typo in Sparc.cpp.
Brian Gaeke [Thu, 18 Sep 2003 17:37:46 +0000 (17:37 +0000)]
Fix a typo in Sparc.cpp.
Update names of some pass creator fns in addPassesToEmitAssembly().
FunctionInfo is gone.

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

21 years agoRename the pass creator fn to mimic the other creator fn names.
Brian Gaeke [Thu, 18 Sep 2003 17:37:35 +0000 (17:37 +0000)]
Rename the pass creator fn to mimic the other creator fn names.

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

21 years agoFix (and properly doxygenify) some comments. Incorporate
Brian Gaeke [Thu, 18 Sep 2003 17:37:25 +0000 (17:37 +0000)]
Fix (and properly doxygenify) some comments. Incorporate
 functionality of FunctionInfo pass as doFinalization method.
Rename pass to match names of other passes like it.
Rename the pass creator fn to mimic the other creator fn names.
Include StringExtras for utostr().
Make symbol prologue/epilogue stuff redundant with
 EmitBytecodeToAssembly, in preparation for refactoring.

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

21 years agoMake the symbol prologue/epilogue stuff redundant with MappingInfo, in
Brian Gaeke [Thu, 18 Sep 2003 17:37:14 +0000 (17:37 +0000)]
Make the symbol prologue/epilogue stuff redundant with MappingInfo, in
 preparation for refactoring.
Rename the pass creator fn to mimic the other creator fn names.

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

21 years agoRefactored gccld into three C++ source files.
John Criswell [Thu, 18 Sep 2003 16:22:26 +0000 (16:22 +0000)]
Refactored gccld into three C++ source files.
Added code ignore bytecode link failures when generating native code.
Moved native code and bytecode generation out of the main() function.

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

21 years agoMinimal implementation of the abstract ModuleProvider interface.
Misha Brukman [Thu, 18 Sep 2003 16:17:06 +0000 (16:17 +0000)]
Minimal implementation of the abstract ModuleProvider interface.

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

21 years agoAbstract interface for module providers, e.g. streaming bytecode reader.
Misha Brukman [Thu, 18 Sep 2003 16:16:32 +0000 (16:16 +0000)]
Abstract interface for module providers, e.g. streaming bytecode reader.

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

21 years agoDocument new column
Chris Lattner [Wed, 17 Sep 2003 22:02:49 +0000 (22:02 +0000)]
Document new column

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

21 years agoFixed spelling.
Misha Brukman [Wed, 17 Sep 2003 21:34:23 +0000 (21:34 +0000)]
Fixed spelling.

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

21 years agoReplaced the call to strdup() with a new operator followed by a strcpy().
John Criswell [Wed, 17 Sep 2003 19:14:41 +0000 (19:14 +0000)]
Replaced the call to strdup() with a new operator followed by a strcpy().
This should prevent calls to the new oerator and malloc.

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

21 years agoAdded the use of the const keyword.
John Criswell [Wed, 17 Sep 2003 19:04:22 +0000 (19:04 +0000)]
Added the use of the const keyword.
Have gccld find the path to llc and gcc instead of having the library do it.

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

21 years agoIn ExecWait(), made the child process exit if it can't execve() the new
John Criswell [Wed, 17 Sep 2003 19:02:49 +0000 (19:02 +0000)]
In ExecWait(), made the child process exit if it can't execve() the new
program.
Added the use of const (which compiles and is hopefully correct).
Added comments.

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

21 years agoAdded sections about debugging mis-compilations and incorrect code generation.
Misha Brukman [Wed, 17 Sep 2003 18:51:47 +0000 (18:51 +0000)]
Added sections about debugging mis-compilations and incorrect code generation.

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

21 years agoDo not put DEBUG() guard around error condition; this must *always* be printed.
Misha Brukman [Wed, 17 Sep 2003 18:21:48 +0000 (18:21 +0000)]
Do not put DEBUG() guard around error condition; this must *always* be printed.

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

21 years agoFix the flag on `rm' to properly do a recursive deletion.
Misha Brukman [Wed, 17 Sep 2003 18:20:35 +0000 (18:20 +0000)]
Fix the flag on `rm' to properly do a recursive deletion.

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

21 years agoChange FunctionInfo from being an annotation put on Functions to be
Chris Lattner [Wed, 17 Sep 2003 17:26:22 +0000 (17:26 +0000)]
Change FunctionInfo from being an annotation put on Functions to be
something which is mapped from functions.

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

21 years agoRemoved the use of the environ variable and instead use the environment array
John Criswell [Wed, 17 Sep 2003 15:20:51 +0000 (15:20 +0000)]
Removed the use of the environ variable and instead use the environment array
passed into main().  This may (or may not) be more portable, but it looks
nicer.
Added functions to copy the environment array and modify the copy, thus
preserving the environment.
Switched from using system() to using ExecWait().
The code now removes the assembly file generated when using the -native option.
Fixed the remove_env() function: The previous revision truncated the
environment variable list.  This version just zaps the variable as intended.

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

21 years agoAdded the ExecWait() function.
John Criswell [Wed, 17 Sep 2003 15:14:25 +0000 (15:14 +0000)]
Added the ExecWait() function.

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

21 years agoAdded the ExecWait() function. It executes a program with the specified
John Criswell [Wed, 17 Sep 2003 15:13:59 +0000 (15:13 +0000)]
Added the ExecWait() function.  It executes a program with the specified
arguments and environment.
Perhaps it should be merged with the RunProgramWithTimeout function, but I'd
want to allow it to inherit the parent process's stdin and stdout.
I'll save that for a rainy day...

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

21 years agofix misspelling analyse -> analyze
Chris Lattner [Wed, 17 Sep 2003 15:00:45 +0000 (15:00 +0000)]
fix misspelling analyse -> analyze

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

21 years agoRenamed the link page to llvmlink.html
John Criswell [Wed, 17 Sep 2003 14:11:24 +0000 (14:11 +0000)]
Renamed the link page to llvmlink.html
Added initial pages for the extract and llvm-link commands.
Reworded the description of the -load option for analyze to hopefully make it
more clear.

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

21 years agonew old testcase
Chris Lattner [Wed, 17 Sep 2003 05:00:56 +0000 (05:00 +0000)]
new old testcase

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

21 years agoUse new method
Chris Lattner [Wed, 17 Sep 2003 05:00:07 +0000 (05:00 +0000)]
Use new method

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

21 years agoChange the semancics of the dropallrefs method
Chris Lattner [Wed, 17 Sep 2003 04:58:59 +0000 (04:58 +0000)]
Change the semancics of the dropallrefs method

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

21 years agoAdd new deleteBody method
Chris Lattner [Wed, 17 Sep 2003 04:58:43 +0000 (04:58 +0000)]
Add new deleteBody method

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

21 years agoAdded the -native option.
John Criswell [Tue, 16 Sep 2003 21:27:35 +0000 (21:27 +0000)]
Added the -native option.
With this option, gccld links the program into LLVM bytecode and a native code
binary.  This allows llvmgcc to correctly tell GNU configure scripts when
things aren't defined properly (because the native link will fail).

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

21 years agoUpdated the name of the linker to llvm-link.
John Criswell [Tue, 16 Sep 2003 20:02:22 +0000 (20:02 +0000)]
Updated the name of the linker to llvm-link.
This should fix the MultiSource tests.

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

21 years agoFix bug raising allocations whose call sites were invoke instructions.
Chris Lattner [Tue, 16 Sep 2003 19:42:21 +0000 (19:42 +0000)]
Fix bug raising allocations whose call sites were invoke instructions.
Thanks to brg for tracking down the problem so precisely!

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

21 years agoThis is effectively a complete rewrite of the globaldce algorithm, resulting
Chris Lattner [Tue, 16 Sep 2003 19:27:31 +0000 (19:27 +0000)]
This is effectively a complete rewrite of the globaldce algorithm, resulting
in it being both shorter and more effective.  It no longer depends on the
callgraph, so one FIXME has been fixed.

Additionally, this pass was not able to delete recursive (but dead) functions
if they were pointed to by global variables which were also dead.  In fact
this pass had a lot of problems deleting functions which were only pointed
to by dead globals and other stuff.

Fixing this means that the entire EH library should be stripped away now from
programs that don't use sjlj or exceptions.

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

21 years agoAdd missing apostrophe. It's been bugging me for years.
Brian Gaeke [Tue, 16 Sep 2003 18:00:35 +0000 (18:00 +0000)]
Add missing apostrophe. It's been bugging me for years.

No really, years.

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

21 years agoRegenerated configure with Misha's changes.
John Criswell [Tue, 16 Sep 2003 15:54:19 +0000 (15:54 +0000)]
Regenerated configure with Misha's changes.
Now link is llvm-link and things are alphabetized.

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

21 years agoFix typo in comment. Take out some random whitespace.
Brian Gaeke [Tue, 16 Sep 2003 15:38:05 +0000 (15:38 +0000)]
Fix typo in comment. Take out some random whitespace.
(Partial merge from my working file)

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

21 years agoThese transitional scripts are no longer necessary, no one should have `as' or
Misha Brukman [Tue, 16 Sep 2003 15:37:32 +0000 (15:37 +0000)]
These transitional scripts are no longer necessary, no one should have `as' or
`dis' anymore.

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

21 years agoEdit comment for accuracy
Brian Gaeke [Tue, 16 Sep 2003 15:36:50 +0000 (15:36 +0000)]
Edit comment for accuracy

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

21 years agoRemove obsolete -abort-on-exception flag from LLI
Chris Lattner [Tue, 16 Sep 2003 15:35:14 +0000 (15:35 +0000)]
Remove obsolete -abort-on-exception flag from LLI

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

21 years agoRemove obsolete option
Chris Lattner [Tue, 16 Sep 2003 15:34:36 +0000 (15:34 +0000)]
Remove obsolete option

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

21 years agoFixed spelling & grammar.
Misha Brukman [Tue, 16 Sep 2003 15:31:46 +0000 (15:31 +0000)]
Fixed spelling & grammar.

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

21 years agoRenamed `as' => `llvm-as', `dis' => `llvm-dis', `link' => `llvm-link'.
Misha Brukman [Tue, 16 Sep 2003 15:29:54 +0000 (15:29 +0000)]
Renamed `as' => `llvm-as', `dis' => `llvm-dis', `link' => `llvm-link'.

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

21 years ago`link' is now `llvm-link'. Also alphabetized the tools for easy reference.
Misha Brukman [Tue, 16 Sep 2003 15:22:55 +0000 (15:22 +0000)]
`link' is now `llvm-link'. Also alphabetized the tools for easy reference.

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

21 years ago`link' is now `llvm-link'.
Misha Brukman [Tue, 16 Sep 2003 15:21:52 +0000 (15:21 +0000)]
`link' is now `llvm-link'.

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

21 years ago`link' has become `llvm-link'.
Misha Brukman [Tue, 16 Sep 2003 15:21:21 +0000 (15:21 +0000)]
`link' has become `llvm-link'.

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

21 years agoFix longjmp case so that, along with the call to abort(), we also
Vikram S. Adve [Tue, 16 Sep 2003 05:56:22 +0000 (05:56 +0000)]
Fix longjmp case so that, along with the call to abort(), we also
generate the appropriate CallArgsDescriptor and tmp. virtual regs.

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

21 years agoAdd flag to control whether or not delay slots are filled during
Vikram S. Adve [Tue, 16 Sep 2003 05:55:15 +0000 (05:55 +0000)]
Add flag to control whether or not delay slots are filled during
instruction scheduling (this is off by default).

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

21 years agoAllow multiple object trees to use the source tree tests at once by
John Criswell [Tue, 16 Sep 2003 02:59:26 +0000 (02:59 +0000)]
Allow multiple object trees to use the source tree tests at once by
using a QMTEST_CLASS_PATH local to the object tree.
Add the gui target to start the QMTest gui (saves writing a few lines of
documentation too). :)

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

21 years agoHave the configure script put llvm.py into the object root.
John Criswell [Tue, 16 Sep 2003 02:12:45 +0000 (02:12 +0000)]
Have the configure script put llvm.py into the object root.
The QMTest program can then use that as the location for loading test and
resource class, thus compiling the Python code into the object root as
desired.

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

21 years agoPut llvm .bc files into the BytecodeObj subdirectory instead of the Bytecode
Chris Lattner [Mon, 15 Sep 2003 22:17:02 +0000 (22:17 +0000)]
Put llvm .bc files into the BytecodeObj subdirectory instead of the Bytecode
subdirectory.  This prevents the 'make clean' rule from removing lib/Bytecode

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

21 years agoQMTest test and resource classes are always register before running the tests.
John Criswell [Mon, 15 Sep 2003 21:54:49 +0000 (21:54 +0000)]
QMTest test and resource classes are always register before running the tests.
This ensures that any python bytecode generated by another platform is
replaced with new pythong bytecode before the tests begin.

Perferably, a better method will be implemented in the next few weeks.

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

21 years agoRemoving Makefiles. Regression tests are now run by QMTest.
John Criswell [Mon, 15 Sep 2003 20:21:38 +0000 (20:21 +0000)]
Removing Makefiles.  Regression tests are now run by QMTest.

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

21 years agoRemoving Makefile. The QMTest program now handles the running of these tests.
John Criswell [Mon, 15 Sep 2003 20:18:06 +0000 (20:18 +0000)]
Removing Makefile.  The QMTest program now handles the running of these tests.

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

21 years agoRemoved llvm/tools/as, llvm/tools/dis, and runtime/GCCLibraries/libexception.
John Criswell [Mon, 15 Sep 2003 20:12:48 +0000 (20:12 +0000)]
Removed llvm/tools/as, llvm/tools/dis, and runtime/GCCLibraries/libexception.

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

21 years agoRenamed `as' => `llvm-as', `dis' => `llvm-dis', `link' => `llvm-link'.
Misha Brukman [Mon, 15 Sep 2003 20:04:28 +0000 (20:04 +0000)]
Renamed `as' => `llvm-as', `dis' => `llvm-dis', `link' => `llvm-link'.

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

21 years agoRenamed `as' => `llvm-as', `dis' => `llvm-dis'.
Misha Brukman [Mon, 15 Sep 2003 20:02:53 +0000 (20:02 +0000)]
Renamed `as' => `llvm-as', `dis' => `llvm-dis'.

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

21 years agoFix building outside the srcdir, again
Chris Lattner [Mon, 15 Sep 2003 19:22:36 +0000 (19:22 +0000)]
Fix building outside the srcdir, again

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

21 years agoFix building into a different obj directory
Chris Lattner [Mon, 15 Sep 2003 19:20:11 +0000 (19:20 +0000)]
Fix building into a different obj directory

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

21 years ago`link' is being renamed to `llvm-link'.
Misha Brukman [Mon, 15 Sep 2003 18:34:34 +0000 (18:34 +0000)]
`link' is being renamed to `llvm-link'.

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

21 years agoModified the checks slightly so that one can re-configure LLVM without
John Criswell [Mon, 15 Sep 2003 17:19:42 +0000 (17:19 +0000)]
Modified the checks slightly so that one can re-configure LLVM without
having to do a "make distclean" when building in the source directory.

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

21 years agoAdded code that verifies that the source directory has not been configured
John Criswell [Mon, 15 Sep 2003 17:04:06 +0000 (17:04 +0000)]
Added code that verifies that the source directory has not been configured
already.  This should help prevent strange errors from happening, but will
make re-configuring the source directory more difficult when it is shared with
the object directory.

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

21 years agoFix problems with programs that prototype printf to something unusual
Chris Lattner [Mon, 15 Sep 2003 16:47:12 +0000 (16:47 +0000)]
Fix problems with programs that prototype printf to something unusual

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

21 years agoDo not segfault when the post-dominator tree is empty (ie, there are no return
Chris Lattner [Mon, 15 Sep 2003 15:47:40 +0000 (15:47 +0000)]
Do not segfault when the post-dominator tree is empty (ie, there are no return
or unwind instructions in the function)

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

21 years agonew testcase that crashes opt
Chris Lattner [Mon, 15 Sep 2003 15:29:11 +0000 (15:29 +0000)]
new testcase that crashes opt

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

21 years agoWhoops, remove makefile too
Chris Lattner [Mon, 15 Sep 2003 15:07:37 +0000 (15:07 +0000)]
Whoops, remove makefile too

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

21 years agoRemove dead library, it is now folded into crtend
Chris Lattner [Mon, 15 Sep 2003 15:07:22 +0000 (15:07 +0000)]
Remove dead library, it is now folded into crtend

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

21 years agoAllow specifying a file with symbols to export
Chris Lattner [Mon, 15 Sep 2003 15:06:54 +0000 (15:06 +0000)]
Allow specifying a file with symbols to export

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

21 years agoMove the exception handling runtime stuff into this directory
Chris Lattner [Mon, 15 Sep 2003 15:06:39 +0000 (15:06 +0000)]
Move the exception handling runtime stuff into this directory

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

21 years agoStop building `as' and `dis' as they have been removed.
Misha Brukman [Mon, 15 Sep 2003 14:45:00 +0000 (14:45 +0000)]
Stop building `as' and `dis' as they have been removed.

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

21 years ago`dis' is no longer an LLVM tool.
Misha Brukman [Mon, 15 Sep 2003 14:44:22 +0000 (14:44 +0000)]
`dis' is no longer an LLVM tool.

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

21 years ago`as' is no longer an LLVM tool.
Misha Brukman [Mon, 15 Sep 2003 14:44:05 +0000 (14:44 +0000)]
`as' is no longer an LLVM tool.

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

21 years agoRe-generated for recent changes.
John Criswell [Mon, 15 Sep 2003 14:25:08 +0000 (14:25 +0000)]
Re-generated for recent changes.

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

21 years agoReally use a search path as described in the log message for the last
Vikram S. Adve [Mon, 15 Sep 2003 11:18:36 +0000 (11:18 +0000)]
Really use a search path as described in the log message for the last
version (instead of 2 fixed choices).

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

21 years agoMinor cleanups, give credit, remove code that should not be necessary, and
Chris Lattner [Mon, 15 Sep 2003 05:43:05 +0000 (05:43 +0000)]
Minor cleanups, give credit, remove code that should not be necessary, and
was a "major hack"  :)

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

21 years agoFix typos in comments.
Brian Gaeke [Mon, 15 Sep 2003 05:28:42 +0000 (05:28 +0000)]
Fix typos in comments.

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

21 years agoAdd prototype for the lowersetjmp pass
Chris Lattner [Mon, 15 Sep 2003 05:05:23 +0000 (05:05 +0000)]
Add prototype for the lowersetjmp pass

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

21 years agoEnable the setjmp/longjmp lowering pass
Chris Lattner [Mon, 15 Sep 2003 04:56:44 +0000 (04:56 +0000)]
Enable the setjmp/longjmp lowering pass

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

21 years agoInitial checkin of the Setjmp/Longjmp lowering/transformation pass,
Chris Lattner [Mon, 15 Sep 2003 04:56:27 +0000 (04:56 +0000)]
Initial checkin of the Setjmp/Longjmp lowering/transformation pass,
contributed by the masterful Bill Wendling!

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

21 years agoUgh, a bug fix needed because of the bug in the CallGraph code
Chris Lattner [Mon, 15 Sep 2003 04:52:00 +0000 (04:52 +0000)]
Ugh, a bug fix needed because of the bug in the CallGraph code

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

21 years agoThese two conditions are not exclusive!!
Chris Lattner [Mon, 15 Sep 2003 04:35:16 +0000 (04:35 +0000)]
These two conditions are not exclusive!!

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

21 years agoMake the print output more useful
Chris Lattner [Mon, 15 Sep 2003 04:29:37 +0000 (04:29 +0000)]
Make the print output more useful

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

21 years agoFix bug: PruneEH/2003-09-14-ExternalCall.llx
Chris Lattner [Mon, 15 Sep 2003 02:22:50 +0000 (02:22 +0000)]
Fix bug: PruneEH/2003-09-14-ExternalCall.llx

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

21 years agoNew testcase
Chris Lattner [Mon, 15 Sep 2003 02:22:35 +0000 (02:22 +0000)]
New testcase

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

21 years agoFix bug: Inline/2003-09-14-InlineValue.ll
Chris Lattner [Mon, 15 Sep 2003 02:10:16 +0000 (02:10 +0000)]
Fix bug: Inline/2003-09-14-InlineValue.ll

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

21 years agoNew testcase
Chris Lattner [Mon, 15 Sep 2003 02:07:37 +0000 (02:07 +0000)]
New testcase

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

21 years agoWrap long lines at 80 cols
Chris Lattner [Mon, 15 Sep 2003 01:12:04 +0000 (01:12 +0000)]
Wrap long lines at 80 cols

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

21 years agoMake sure to #include the OBJROOT config.h file, not the SRCROOT config.h file!
Chris Lattner [Mon, 15 Sep 2003 01:07:32 +0000 (01:07 +0000)]
Make sure to #include the OBJROOT config.h file, not the SRCROOT config.h file!

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

21 years agoFix a spello Misha made while fixing one of my appostrifications
Chris Lattner [Mon, 15 Sep 2003 00:33:20 +0000 (00:33 +0000)]
Fix a spello Misha made while fixing one of my appostrifications

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

21 years agoUpdate makellvm to work with the brave new world of separate obj-root trees.
Vikram S. Adve [Sun, 14 Sep 2003 23:44:31 +0000 (23:44 +0000)]
Update makellvm to work with the brave new world of separate obj-root trees.
With these changes, you can still run makellvm directly from your source tree
as follows:
  % makellvm [toolname] ## looks for obj-root in default places (see below)
or
  % makellvm -obj obj-root [toolname] ## specify obj-root explicitly.

With the first from, `makellvm' checks the following places in order
and uses the first one that contains the file `Makefile.config':
(1) Your src-root directory
(2) /localhome/$USER/llvm
Other choices can be added to this list.

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

21 years agoFix the nightly tester now that olden has been moved
Chris Lattner [Sun, 14 Sep 2003 06:00:49 +0000 (06:00 +0000)]
Fix the nightly tester now that olden has been moved

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

21 years agomanually add the llvm-ar stuff. this should be regenerated
Chris Lattner [Sat, 13 Sep 2003 03:29:53 +0000 (03:29 +0000)]
manually add the llvm-ar stuff. this should be regenerated

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

21 years agoAdded llvm-ar to the Makefile
Tanya Lattner [Sat, 13 Sep 2003 03:23:46 +0000 (03:23 +0000)]
Added llvm-ar to the Makefile

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

21 years agoFixed warning.
Tanya Lattner [Sat, 13 Sep 2003 03:18:56 +0000 (03:18 +0000)]
Fixed warning.

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

21 years agoConfigure the llvm-ar directory
Chris Lattner [Sat, 13 Sep 2003 02:35:56 +0000 (02:35 +0000)]
Configure the llvm-ar directory

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

21 years agoBugpoint has the ability of generating a plethora of core files, so to
Misha Brukman [Fri, 12 Sep 2003 20:42:57 +0000 (20:42 +0000)]
Bugpoint has the ability of generating a plethora of core files, so to
avoid filling up the disk, set the max core file size to 0.

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

21 years agoMake sure to cannonicalize loops before running indvar simplify
Chris Lattner [Fri, 12 Sep 2003 16:45:01 +0000 (16:45 +0000)]
Make sure to cannonicalize loops before running indvar simplify

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

21 years agoNew testcase, this should be simplified
Chris Lattner [Fri, 12 Sep 2003 16:42:16 +0000 (16:42 +0000)]
New testcase, this should be simplified

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

21 years agoCaught a few misses in the last modification.
John Criswell [Fri, 12 Sep 2003 16:36:17 +0000 (16:36 +0000)]
Caught a few misses in the last modification.

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

21 years agoUpdated for the re-organization of llvm/test/Programs/MultiSource.
John Criswell [Fri, 12 Sep 2003 16:31:43 +0000 (16:31 +0000)]
Updated for the re-organization of llvm/test/Programs/MultiSource.

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

21 years agoDo not return success after checking only the FIRST USE of a gep instruction.
Chris Lattner [Fri, 12 Sep 2003 16:02:12 +0000 (16:02 +0000)]
Do not return success after checking only the FIRST USE of a gep instruction.
Instead, check all uses.
This fixes bug: ScalarRepl/2003-09-12-IncorrectPromote.ll
This also fixes the miscompilation of Ptrdist/bc

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

21 years agoInitial go at documentation for llc.
John Criswell [Fri, 12 Sep 2003 15:46:24 +0000 (15:46 +0000)]
Initial go at documentation for llc.
Pretty crufty.

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