oota-llvm.git
21 years agoDeclare FunctionPasses as such.
Misha Brukman [Fri, 7 Nov 2003 17:19:39 +0000 (17:19 +0000)]
Declare FunctionPasses as such.

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

21 years agoAdd some ctors for this allocator
Chris Lattner [Fri, 7 Nov 2003 15:20:06 +0000 (15:20 +0000)]
Add some ctors for this allocator

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

21 years agoRefactor the return-from-function code into popStackAndReturnValueToCaller().
Brian Gaeke [Fri, 7 Nov 2003 05:22:49 +0000 (05:22 +0000)]
Refactor the return-from-function code into popStackAndReturnValueToCaller().
Make external function calls slightly less special; now they get a stack frame.

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

21 years agoAdd bugz
Chris Lattner [Fri, 7 Nov 2003 04:46:56 +0000 (04:46 +0000)]
Add bugz

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

21 years agoFix a really bad build problem for users who have .o in their build directory!
Chris Lattner [Fri, 7 Nov 2003 04:39:53 +0000 (04:39 +0000)]
Fix a really bad build problem for users who have .o in their build directory!
Thanks to Reid Spencer for figuring this out!  :)

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

21 years agoHopefully this will fix PR98
Chris Lattner [Fri, 7 Nov 2003 00:38:09 +0000 (00:38 +0000)]
Hopefully this will fix PR98

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

21 years agoHopefully fix the objdir != srcdir issue
Chris Lattner [Fri, 7 Nov 2003 00:34:33 +0000 (00:34 +0000)]
Hopefully fix the objdir != srcdir issue

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

21 years ago* Added a "contents"-like list of questions at the beginning of the file
Misha Brukman [Thu, 6 Nov 2003 21:55:44 +0000 (21:55 +0000)]
* Added a "contents"-like list of questions at the beginning of the file
* Use stylsheets. Really, people, work with me here.
* Stop using those silly <dl> and <dt> and whatever else tags
* Close tags

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

21 years agofix warnings on sparc
Chris Lattner [Thu, 6 Nov 2003 21:30:15 +0000 (21:30 +0000)]
fix warnings on sparc

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

21 years agoFix warnings building on sparc
Chris Lattner [Thu, 6 Nov 2003 21:30:05 +0000 (21:30 +0000)]
Fix warnings building on sparc

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

21 years agoAll 'llvmgcc' tests should specify %llvmgcc so that the path is passed
Brian Gaeke [Thu, 6 Nov 2003 21:13:45 +0000 (21:13 +0000)]
All 'llvmgcc' tests should specify %llvmgcc so that the path is passed
in by qmtest.

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

21 years agoNo wonder noone can set up LLVMGCCDIR correctly!
Chris Lattner [Thu, 6 Nov 2003 20:51:45 +0000 (20:51 +0000)]
No wonder noone can set up LLVMGCCDIR correctly!

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

21 years agoAdd new commandline option
Chris Lattner [Thu, 6 Nov 2003 20:29:33 +0000 (20:29 +0000)]
Add new commandline option

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

21 years agoAdd new command line option
Chris Lattner [Thu, 6 Nov 2003 20:29:25 +0000 (20:29 +0000)]
Add new command line option

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

21 years agoVarious cleanups and efficiency improvements
Chris Lattner [Thu, 6 Nov 2003 19:46:29 +0000 (19:46 +0000)]
Various cleanups and efficiency improvements

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

21 years agoFix bug: PR93
Chris Lattner [Thu, 6 Nov 2003 19:18:49 +0000 (19:18 +0000)]
Fix bug: PR93

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

21 years ago* Make the comment header 80 columns long
Misha Brukman [Thu, 6 Nov 2003 18:06:13 +0000 (18:06 +0000)]
* Make the comment header 80 columns long
* Alphabetize #includes

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

21 years agoLet's not forget about our friends -- Constant Pool indices.
Misha Brukman [Thu, 6 Nov 2003 00:04:11 +0000 (00:04 +0000)]
Let's not forget about our friends -- Constant Pool indices.

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

21 years agoGive this header file an Emacs mode-line.
Brian Gaeke [Wed, 5 Nov 2003 22:13:10 +0000 (22:13 +0000)]
Give this header file an Emacs mode-line.

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

21 years agoDo not assume the first file is a bytecode file. Instead, construct a dummy
Brian Gaeke [Wed, 5 Nov 2003 22:13:00 +0000 (22:13 +0000)]
Do not assume the first file is a bytecode file. Instead, construct a dummy
Module and link things into that.

Also, fix a typo in an error message.

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

21 years agoShorten and correct some function-header comments.
Brian Gaeke [Wed, 5 Nov 2003 22:12:52 +0000 (22:12 +0000)]
Shorten and correct some function-header comments.

Make "verbose" output MUCH nicer. Now it tells you when you are linking a
bytecode file, or an archive, and whether it's because you called it by name,
or because you gave it a -l option, and it says "Trying" before it takes
action and prints a message in the past tense afterwards.

Make LinkFiles not skip the first file in Files.

Make LinkFiles warn you if it can't find a file and LLVM_LIB_SEARCH_PATH is
unset.

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

21 years agonew testcase
Chris Lattner [Wed, 5 Nov 2003 22:06:03 +0000 (22:06 +0000)]
new testcase

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

21 years agoFix the problem with running cleanups in bugpoint: We were deleting arguments
Chris Lattner [Wed, 5 Nov 2003 21:53:41 +0000 (21:53 +0000)]
Fix the problem with running cleanups in bugpoint:  We were deleting arguments
of intrinsic functions, causing the verifier to fail.

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

21 years agoBugpoint no longer has this option
Chris Lattner [Wed, 5 Nov 2003 21:46:13 +0000 (21:46 +0000)]
Bugpoint no longer has this option

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

21 years agoI hate it when bugpoint is all ready to give me a bytecode file, then crashes
Chris Lattner [Wed, 5 Nov 2003 21:45:35 +0000 (21:45 +0000)]
I hate it when bugpoint is all ready to give me a bytecode file, then crashes
in final cleanups.  Then you had to run the whole mess again with
-disable-final-cleanups.

This makes bugpoint run the cleanups in a protected environment so that if
they crash, bugpoint itself doesn't crash.  This makes things much happier,
implements a FIXME, and gets rid of YABPO (yet another bugpoint option).

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

21 years agoSplit the DAE pass into DAE and DAH passes
Chris Lattner [Wed, 5 Nov 2003 21:43:42 +0000 (21:43 +0000)]
Split the DAE pass into DAE and DAH passes

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

21 years agoSplit behavior into two pieces
Chris Lattner [Wed, 5 Nov 2003 21:43:02 +0000 (21:43 +0000)]
Split behavior into two pieces

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

21 years agoSimplify the performFinalCleanups interface
Chris Lattner [Wed, 5 Nov 2003 21:15:19 +0000 (21:15 +0000)]
Simplify the performFinalCleanups interface

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

21 years agoYet more fixes for constant expr shifts
Chris Lattner [Wed, 5 Nov 2003 20:43:58 +0000 (20:43 +0000)]
Yet more fixes for constant expr shifts

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

21 years agoFurther fixes for PR93
Chris Lattner [Wed, 5 Nov 2003 20:37:01 +0000 (20:37 +0000)]
Further fixes for PR93

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

21 years agoA few handy methods that seem to mesh well with what CallSite already provides.
Brian Gaeke [Wed, 5 Nov 2003 20:25:33 +0000 (20:25 +0000)]
A few handy methods that seem to mesh well with what CallSite already provides.

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

21 years agono need for endl
Chris Lattner [Wed, 5 Nov 2003 19:53:32 +0000 (19:53 +0000)]
no need for endl

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

21 years agoAdd support for constant expr shifts
Chris Lattner [Wed, 5 Nov 2003 19:53:03 +0000 (19:53 +0000)]
Add support for constant expr shifts

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

21 years agoSince this function returns an int, let's actually return something.
Misha Brukman [Wed, 5 Nov 2003 19:48:05 +0000 (19:48 +0000)]
Since this function returns an int, let's actually return something.

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

21 years agoNew testcase
Chris Lattner [Wed, 5 Nov 2003 19:43:36 +0000 (19:43 +0000)]
New testcase

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

21 years agoIf we're not checking, don't check!
Chris Lattner [Wed, 5 Nov 2003 19:09:40 +0000 (19:09 +0000)]
If we're not checking, don't check!

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

21 years agoFix flawed logic that was breaking several SPEC benchmarks, including gzip and crafty.
Chris Lattner [Wed, 5 Nov 2003 17:31:36 +0000 (17:31 +0000)]
Fix flawed logic that was breaking several SPEC benchmarks, including gzip and crafty.

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

21 years agoWe know exactly what the value of $< is, so instead of using `basename $<` to
Misha Brukman [Wed, 5 Nov 2003 06:43:36 +0000 (06:43 +0000)]
We know exactly what the value of $< is, so instead of using `basename $<` to
get just the filename and not the full path, just use the filename directly.

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

21 years agoOutput only the .y filename, not the full path to it for ease of reading.
Misha Brukman [Wed, 5 Nov 2003 06:41:14 +0000 (06:41 +0000)]
Output only the .y filename, not the full path to it for ease of reading.

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

21 years agoAdd three more bugs
Chris Lattner [Wed, 5 Nov 2003 06:30:04 +0000 (06:30 +0000)]
Add three more bugs

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

21 years agoDo not use a class before it is defined.
Chris Lattner [Wed, 5 Nov 2003 06:25:06 +0000 (06:25 +0000)]
Do not use a class before it is defined.
Be gcc 3.4 clean

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

21 years agoBe friendly to gcc 3.4... good compiler. Nice compiler.
Chris Lattner [Wed, 5 Nov 2003 06:20:27 +0000 (06:20 +0000)]
Be friendly to gcc 3.4... good compiler.  Nice compiler.

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

21 years agoBe gcc 3.4 clean
Chris Lattner [Wed, 5 Nov 2003 06:12:18 +0000 (06:12 +0000)]
Be gcc 3.4 clean

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

21 years agoMake -r work, fixing PR 91
Chris Lattner [Wed, 5 Nov 2003 06:05:21 +0000 (06:05 +0000)]
Make -r work, fixing PR 91

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

21 years agoAdd std::pair tier. This is a much simplified version of boost::tie
Alkis Evlogimenos [Wed, 5 Nov 2003 05:58:26 +0000 (05:58 +0000)]
Add std::pair tier. This is a much simplified version of boost::tie
that works only for std::pair.

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

21 years agoFix name collision
Chris Lattner [Wed, 5 Nov 2003 05:55:45 +0000 (05:55 +0000)]
Fix name collision

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

21 years agoAdd a dtor to ensure that they are called the right number of times.
Chris Lattner [Wed, 5 Nov 2003 05:31:24 +0000 (05:31 +0000)]
Add a dtor to ensure that they are called the right number of times.

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

21 years agoNEw testcase
Chris Lattner [Wed, 5 Nov 2003 05:22:15 +0000 (05:22 +0000)]
NEw testcase

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

21 years agoMake code gcc 3.4 clean
Chris Lattner [Wed, 5 Nov 2003 05:15:42 +0000 (05:15 +0000)]
Make code gcc 3.4 clean

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

21 years agoNew testcase
Chris Lattner [Wed, 5 Nov 2003 01:36:49 +0000 (01:36 +0000)]
New testcase

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

21 years agoThis works with GCC 3.4 also
Chris Lattner [Wed, 5 Nov 2003 01:31:12 +0000 (01:31 +0000)]
This works with GCC 3.4 also

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

21 years agoAbort when the user program calls abort, instead of printing a funny message and...
Brian Gaeke [Wed, 5 Nov 2003 01:18:49 +0000 (01:18 +0000)]
Abort when the user program calls abort, instead of printing a funny message and calling exit(1).

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

21 years agoFix bug with previous implementation:
Chris Lattner [Wed, 5 Nov 2003 01:06:05 +0000 (01:06 +0000)]
Fix bug with previous implementation:
-      // ~(c-X) == X-(c-1) == X+(-c+1)
+      // ~(c-X) == X-c-1 == X+(-c-1)

Implement: C - ~X == X + (1+C)

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

21 years agoNew testcase for the other side
Chris Lattner [Wed, 5 Nov 2003 01:05:22 +0000 (01:05 +0000)]
New testcase for the other side

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

21 years agoUse regular old malloc to emulate malloc/alloca instructions.
Brian Gaeke [Wed, 5 Nov 2003 01:02:14 +0000 (01:02 +0000)]
Use regular old malloc to emulate malloc/alloca instructions.

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

21 years agoRemove a comment which no longer applies.
Brian Gaeke [Wed, 5 Nov 2003 00:59:28 +0000 (00:59 +0000)]
Remove a comment which no longer applies.

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

21 years agoMinor cleanup, plus implement InstCombine/xor.ll:test17
Chris Lattner [Tue, 4 Nov 2003 23:50:51 +0000 (23:50 +0000)]
Minor cleanup, plus implement InstCombine/xor.ll:test17

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

21 years agoSince we're in the neighborhood, test for the inverse
Chris Lattner [Tue, 4 Nov 2003 23:49:53 +0000 (23:49 +0000)]
Since we're in the neighborhood, test for the inverse

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

21 years agoFix spello
Chris Lattner [Tue, 4 Nov 2003 23:37:40 +0000 (23:37 +0000)]
Fix spello
Add negate overload

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

21 years agoImplement InstCombine/xor.ll:test(15|16)
Chris Lattner [Tue, 4 Nov 2003 23:37:10 +0000 (23:37 +0000)]
Implement InstCombine/xor.ll:test(15|16)

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

21 years agoAdd a generalization of the previous case
Chris Lattner [Tue, 4 Nov 2003 23:36:50 +0000 (23:36 +0000)]
Add a generalization of the previous case

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

21 years agoNew testcase for masking operation that frequently occurs in the pool allocator
Chris Lattner [Tue, 4 Nov 2003 23:21:22 +0000 (23:21 +0000)]
New testcase for masking operation that frequently occurs in the pool allocator
for converting a number that is a power of two into a mask

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

21 years agoUpdate documentation since it was misleading: make it clear that a
Alkis Evlogimenos [Tue, 4 Nov 2003 23:07:00 +0000 (23:07 +0000)]
Update documentation since it was misleading: make it clear that a
negative instruction count is returned if instructions are removed
from a basic block.

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

21 years agoChange all machine basic block modifier functions in MRegisterInfo to
Alkis Evlogimenos [Tue, 4 Nov 2003 22:57:09 +0000 (22:57 +0000)]
Change all machine basic block modifier functions in MRegisterInfo to
return the number of instructions added to/removed from the basic block
passed as their first argument.

Note: This is only needed because we use a std::vector instead of an
ilist to keep MachineBasicBlock instructions. Inserting an instruction
to a MachineBasicBlock invalidates all iterators to the basic
block. The return value can be used to update an index to the machine
basic block instruction vector and circumvent the iterator elimination
problem but this is really not needed if we move to a better
representation.

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

21 years agoUpdate verifySavedState()'s comment, so that it reflects its current
Brian Gaeke [Tue, 4 Nov 2003 22:42:41 +0000 (22:42 +0000)]
Update verifySavedState()'s comment, so that it reflects its current
status.  In doFinalization(), skip over external functions, just like
Anand's mapping info does.

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

21 years agoNew file, for use by the pool allocator project
Chris Lattner [Tue, 4 Nov 2003 22:38:28 +0000 (22:38 +0000)]
New file, for use by the pool allocator project

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

21 years agoSubstantial release notes updates
Chris Lattner [Tue, 4 Nov 2003 20:06:53 +0000 (20:06 +0000)]
Substantial release notes updates

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

21 years agoNew testcase for PR80
Chris Lattner [Tue, 4 Nov 2003 18:52:01 +0000 (18:52 +0000)]
New testcase for PR80

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

21 years agoNew testcase
Chris Lattner [Tue, 4 Nov 2003 18:34:05 +0000 (18:34 +0000)]
New testcase

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

21 years agoAdd comments.
Brian Gaeke [Tue, 4 Nov 2003 18:25:56 +0000 (18:25 +0000)]
Add comments.

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

21 years agoWhile working on the pool allocator, I noticed that basicaa is failing a scary
Chris Lattner [Tue, 4 Nov 2003 16:40:40 +0000 (16:40 +0000)]
While working on the pool allocator, I noticed that basicaa is failing a scary
number of simple cases.  Someday when I get a chance to work on it again, this
testcase should be corrected.

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

21 years agoFix problems in previous changes. This fixes several regressions last night.
Chris Lattner [Tue, 4 Nov 2003 16:04:32 +0000 (16:04 +0000)]
Fix problems in previous changes.  This fixes several regressions last night.

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

21 years agoChecking in Chris's suggestions:
John Criswell [Tue, 4 Nov 2003 15:22:26 +0000 (15:22 +0000)]
Checking in Chris's suggestions:
Added assert() to ensure symbol table is well formed.
Added code to remember the value that was found; resolving types can change
the symbol table and invalidate the value of the iterator.
Added comments to the ResolveTypes() function (mainly for my own benefit).
Please feel free to correct the comments if they are not accurate.

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

21 years agoNew testcase for PR84
Chris Lattner [Mon, 3 Nov 2003 21:37:08 +0000 (21:37 +0000)]
New testcase for PR84

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

21 years agoModified build rules so that a messages appears before and after linking.
John Criswell [Mon, 3 Nov 2003 21:12:49 +0000 (21:12 +0000)]
Modified build rules so that a messages appears before and after linking.
This helps to disambiguate when linking begins and when the library/program
is linked and ready to be used.
This is sort of as preference thing, so feel free to modify/revert the change.

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

21 years agoSignificantly simplify constant emission by unifying the stuff which used to build up
Chris Lattner [Mon, 3 Nov 2003 20:19:49 +0000 (20:19 +0000)]
Significantly simplify constant emission by unifying the stuff which used to build up
strings with the stuff that used to print to an ostream directly.  We now NEVER build
up big strings, only to print them once they are formed.

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

21 years agoupdates to release notes
Chris Lattner [Mon, 3 Nov 2003 20:08:08 +0000 (20:08 +0000)]
updates to release notes

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

21 years agoIncorporate printSingleConstantValue into its single caller
Chris Lattner [Mon, 3 Nov 2003 19:44:05 +0000 (19:44 +0000)]
Incorporate printSingleConstantValue into its single caller

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

21 years ago* Reformat some code
Chris Lattner [Mon, 3 Nov 2003 19:33:45 +0000 (19:33 +0000)]
* Reformat some code
* Emit bools as 1/0 instead of true/false, fixing compilation of eon and
  PR 83 & Jello/2003-11-03-GlobalBool.llx

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

21 years agoNew testcase
Chris Lattner [Mon, 3 Nov 2003 19:27:17 +0000 (19:27 +0000)]
New testcase

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

21 years agoFix InstCombine/2003-11-03-VarargsCallBug.ll
Chris Lattner [Mon, 3 Nov 2003 18:44:58 +0000 (18:44 +0000)]
Fix InstCombine/2003-11-03-VarargsCallBug.ll

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

21 years agoNew testcase for a bug in instcombine
Chris Lattner [Mon, 3 Nov 2003 18:33:44 +0000 (18:33 +0000)]
New testcase for a bug in instcombine

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

21 years agoWork around a bug in GCC where it can't handle common variables marked weak.
Chris Lattner [Mon, 3 Nov 2003 17:35:00 +0000 (17:35 +0000)]
Work around a bug in GCC where it can't handle common variables marked weak.

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

21 years agoFix bugs with attribute weak emission
Chris Lattner [Mon, 3 Nov 2003 17:32:38 +0000 (17:32 +0000)]
Fix bugs with attribute weak emission

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

21 years agoIf linking a library, do not link other libraries, like libc, into it!
Chris Lattner [Mon, 3 Nov 2003 17:27:17 +0000 (17:27 +0000)]
If linking a library, do not link other libraries, like libc, into it!
This fixes lots of annoying warnings and error messages

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

21 years agoClosed the h2 header for the LLVM Test Suite Organization section.
John Criswell [Mon, 3 Nov 2003 14:59:59 +0000 (14:59 +0000)]
Closed the h2 header for the LLVM Test Suite Organization section.

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

21 years agoMore testcases
Chris Lattner [Mon, 3 Nov 2003 05:42:50 +0000 (05:42 +0000)]
More testcases

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

21 years agoMove a test from cast-set to a new bit-tracking.ll file. Update file comments
Chris Lattner [Mon, 3 Nov 2003 05:30:34 +0000 (05:30 +0000)]
Move a test from cast-set to a new bit-tracking.ll file.  Update file comments

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

21 years agoImplement InstCombine/cast-set.ll:test6[a]. This improves code generated for
Chris Lattner [Mon, 3 Nov 2003 05:17:03 +0000 (05:17 +0000)]
Implement InstCombine/cast-set.ll:test6[a].  This improves code generated for
a hot function in em3d

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

21 years agoAdd another case, which an implementation of test6 must be sure to handle
Chris Lattner [Mon, 3 Nov 2003 05:08:53 +0000 (05:08 +0000)]
Add another case, which an implementation of test6 must be sure to handle
correctly.

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

21 years agoThis simplifies the CWriter code, makes the generated code easier to read,
Chris Lattner [Mon, 3 Nov 2003 04:31:54 +0000 (04:31 +0000)]
This simplifies the CWriter code, makes the generated code easier to read,
and makes the output work with the intel compiler.  Overall, a win.

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

21 years agoImplement InstCombine/cast-set.ll: test1, test2, test7
Chris Lattner [Mon, 3 Nov 2003 04:25:02 +0000 (04:25 +0000)]
Implement InstCombine/cast-set.ll: test1, test2, test7

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

21 years agoAdd the testcase from PR8
Chris Lattner [Mon, 3 Nov 2003 03:52:34 +0000 (03:52 +0000)]
Add the testcase from PR8

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

21 years agoAdd another case, which occurs in em3d
Chris Lattner [Mon, 3 Nov 2003 03:51:26 +0000 (03:51 +0000)]
Add another case, which occurs in em3d

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

21 years agoFix bug with zero sized casts
Chris Lattner [Mon, 3 Nov 2003 01:29:41 +0000 (01:29 +0000)]
Fix bug with zero sized casts

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

21 years agoEliminate the silly namedContext member of printType
Chris Lattner [Mon, 3 Nov 2003 01:01:59 +0000 (01:01 +0000)]
Eliminate the silly namedContext member of printType

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

21 years agoAllow CallSites to be used as the key of a map
Chris Lattner [Sun, 2 Nov 2003 23:04:33 +0000 (23:04 +0000)]
Allow CallSites to be used as the key of a map

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

21 years agoAll DSGraphs keep a reference to the targetdata they are created with. This is
Chris Lattner [Sun, 2 Nov 2003 22:27:28 +0000 (22:27 +0000)]
All DSGraphs keep a reference to the targetdata they are created with.  This is
used to eliminate the hard coded, hacked in, sparc specific, global TargetData.
Changing the TargetData used to actually match the code fixes problems, and
eliminates a crash.

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

21 years agoFix bug: test/Regression/Analysis/DSGraph/2003-11-02-NodeCollapsing.ll
Chris Lattner [Sun, 2 Nov 2003 21:02:20 +0000 (21:02 +0000)]
Fix bug: test/Regression/Analysis/DSGraph/2003-11-02-NodeCollapsing.ll

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

21 years agoNew testcase for DSA which is improperly collapsed!
Chris Lattner [Sun, 2 Nov 2003 20:43:10 +0000 (20:43 +0000)]
New testcase for DSA which is improperly collapsed!

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