Chris Lattner
a9e7fe9ea2
Do not use a class before it is defined.
...
Be gcc 3.4 clean
llvm-svn: 9727
2003-11-05 06:25:06 +00:00
Chris Lattner
b5b9ba6ff6
Be friendly to gcc 3.4... good compiler. Nice compiler.
...
llvm-svn: 9726
2003-11-05 06:20:27 +00:00
Chris Lattner
813ec04735
Be gcc 3.4 clean
...
llvm-svn: 9725
2003-11-05 06:12:18 +00:00
Chris Lattner
c17fe1cdfe
Make -r work, fixing PR 91
...
llvm-svn: 9724
2003-11-05 06:05:21 +00:00
Alkis Evlogimenos
43b0bbe12c
Add std::pair tier. This is a much simplified version of boost::tie
...
that works only for std::pair.
llvm-svn: 9723
2003-11-05 05:58:26 +00:00
Chris Lattner
5f6463c041
Fix name collision
...
llvm-svn: 9722
2003-11-05 05:55:45 +00:00
Chris Lattner
21c7894ea0
Add a dtor to ensure that they are called the right number of times.
...
llvm-svn: 9721
2003-11-05 05:31:24 +00:00
Chris Lattner
b3a9b6626f
NEw testcase
...
llvm-svn: 9720
2003-11-05 05:22:15 +00:00
Chris Lattner
41baa98478
Make code gcc 3.4 clean
...
llvm-svn: 9719
2003-11-05 05:15:42 +00:00
Chris Lattner
d4741c5ee9
New testcase
...
llvm-svn: 9718
2003-11-05 01:36:49 +00:00
Chris Lattner
2b553e69d8
This works with GCC 3.4 also
...
llvm-svn: 9717
2003-11-05 01:31:12 +00:00
Brian Gaeke
4e106f0649
Abort when the user program calls abort, instead of printing a funny message and calling exit(1).
...
llvm-svn: 9716
2003-11-05 01:18:49 +00:00
Chris Lattner
8f2f598024
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)
llvm-svn: 9715
2003-11-05 01:06:05 +00:00
Chris Lattner
b6ca46e0f9
New testcase for the other side
...
llvm-svn: 9714
2003-11-05 01:05:22 +00:00
Brian Gaeke
221827ab07
Use regular old malloc to emulate malloc/alloca instructions.
...
llvm-svn: 9713
2003-11-05 01:02:14 +00:00
Brian Gaeke
175018317e
Remove a comment which no longer applies.
...
llvm-svn: 9712
2003-11-05 00:59:28 +00:00
Chris Lattner
e580666532
Minor cleanup, plus implement InstCombine/xor.ll:test17
...
llvm-svn: 9711
2003-11-04 23:50:51 +00:00
Chris Lattner
f6368c803c
Since we're in the neighborhood, test for the inverse
...
llvm-svn: 9710
2003-11-04 23:49:53 +00:00
Chris Lattner
d6a5d90ae2
Fix spello
...
Add negate overload
llvm-svn: 9709
2003-11-04 23:37:40 +00:00
Chris Lattner
0f68fa6569
Implement InstCombine/xor.ll:test(15|16)
...
llvm-svn: 9708
2003-11-04 23:37:10 +00:00
Chris Lattner
e3a932c6d0
Add a generalization of the previous case
...
llvm-svn: 9707
2003-11-04 23:36:50 +00:00
Chris Lattner
f622d7c31e
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
llvm-svn: 9706
2003-11-04 23:21:22 +00:00
Alkis Evlogimenos
20d03bb166
Update documentation since it was misleading: make it clear that a
...
negative instruction count is returned if instructions are removed
from a basic block.
llvm-svn: 9705
2003-11-04 23:07:00 +00:00
Alkis Evlogimenos
9118a426d3
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.
llvm-svn: 9704
2003-11-04 22:57:09 +00:00
Brian Gaeke
69c2841b2a
Update verifySavedState()'s comment, so that it reflects its current
...
status. In doFinalization(), skip over external functions, just like
Anand's mapping info does.
llvm-svn: 9703
2003-11-04 22:42:41 +00:00
Chris Lattner
ee0ba89dd1
New file, for use by the pool allocator project
...
llvm-svn: 9702
2003-11-04 22:38:28 +00:00
Chris Lattner
c679fbbab4
Substantial release notes updates
...
llvm-svn: 9700
2003-11-04 20:06:53 +00:00
Chris Lattner
12d304d4d8
New testcase for PR80
...
llvm-svn: 9699
2003-11-04 18:52:01 +00:00
Chris Lattner
ba4b1c47c1
New testcase
...
llvm-svn: 9698
2003-11-04 18:34:05 +00:00
Brian Gaeke
2a262ef095
Add comments.
...
llvm-svn: 9697
2003-11-04 18:25:56 +00:00
Chris Lattner
604ac9cfc0
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.
llvm-svn: 9695
2003-11-04 16:40:40 +00:00
Chris Lattner
47dfa641c3
Fix problems in previous changes. This fixes several regressions last night.
...
llvm-svn: 9694
2003-11-04 16:04:32 +00:00
John Criswell
81587e798a
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.
llvm-svn: 9693
2003-11-04 15:22:26 +00:00
Chris Lattner
72974ffdbf
New testcase for PR84
...
llvm-svn: 9690
2003-11-03 21:37:08 +00:00
John Criswell
28f8fc669d
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.
llvm-svn: 9687
2003-11-03 21:12:49 +00:00
Chris Lattner
b71c3f7430
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.
llvm-svn: 9686
2003-11-03 20:19:49 +00:00
Chris Lattner
ef114d52e8
updates to release notes
...
llvm-svn: 9685
2003-11-03 20:08:08 +00:00
Chris Lattner
469e404370
Incorporate printSingleConstantValue into its single caller
...
llvm-svn: 9684
2003-11-03 19:44:05 +00:00
Chris Lattner
72e516f0d1
* 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
llvm-svn: 9683
2003-11-03 19:33:45 +00:00
Chris Lattner
bf1b435d04
New testcase
...
llvm-svn: 9682
2003-11-03 19:27:17 +00:00
Chris Lattner
7c18b18c46
Fix InstCombine/2003-11-03-VarargsCallBug.ll
...
llvm-svn: 9681
2003-11-03 18:44:58 +00:00
Chris Lattner
05f448173e
New testcase for a bug in instcombine
...
llvm-svn: 9680
2003-11-03 18:33:44 +00:00
Chris Lattner
39c0a19894
Work around a bug in GCC where it can't handle common variables marked weak.
...
llvm-svn: 9679
2003-11-03 17:35:00 +00:00
Chris Lattner
e4e2595f71
Fix bugs with attribute weak emission
...
llvm-svn: 9678
2003-11-03 17:32:38 +00:00
Chris Lattner
cbf2aeb684
If linking a library, do not link other libraries, like libc, into it!
...
This fixes lots of annoying warnings and error messages
llvm-svn: 9677
2003-11-03 17:27:17 +00:00
John Criswell
907720dfe1
Closed the h2 header for the LLVM Test Suite Organization section.
...
llvm-svn: 9676
2003-11-03 14:59:59 +00:00
Chris Lattner
d33bc06316
More testcases
...
llvm-svn: 9675
2003-11-03 05:42:50 +00:00
Chris Lattner
e600cec9ec
Move a test from cast-set to a new bit-tracking.ll file. Update file comments
...
llvm-svn: 9674
2003-11-03 05:30:34 +00:00
Chris Lattner
6444c37488
Implement InstCombine/cast-set.ll:test6[a]. This improves code generated for
...
a hot function in em3d
llvm-svn: 9673
2003-11-03 05:17:03 +00:00
Chris Lattner
11bea4f7c7
Add another case, which an implementation of test6 must be sure to handle
...
correctly.
llvm-svn: 9672
2003-11-03 05:08:53 +00:00