Commit Graph

31724 Commits

Author SHA1 Message Date
Chris Lattner
59b27fa371 implement expand of truncate. This allows truncates from i128 to i64 to
be supported on 32-bit hosts.

llvm-svn: 34257
2007-02-13 23:55:16 +00:00
Chris Lattner
d08d31f68a Fix PR1198, by adding initial i128 support. Patch by Dan Gohman.
llvm-svn: 34256
2007-02-13 23:41:38 +00:00
Chris Lattner
9b600ab5a6 new testcase, by Dan Gohman
llvm-svn: 34255
2007-02-13 23:41:24 +00:00
Andrew Lenharth
6719d3d0a2 Well this isn't as ugly and it works better. At least gcc bootstraps again
llvm-svn: 34254
2007-02-13 23:41:16 +00:00
Reid Spencer
5153525402 Make some minor improvements to APInt:
1. Make all the operators use uppercase
2. Rename APIntRoundToDouble method just RoundToDouble, the APInt is
   redundant.
3. Turn the class on for compilation.

llvm-svn: 34253
2007-02-13 22:41:58 +00:00
Chris Lattner
09a32e42bd add a note
llvm-svn: 34249
2007-02-13 21:44:43 +00:00
Reid Spencer
102f05abcb Add missing closing parenthesis.
llvm-svn: 34248
2007-02-13 20:57:57 +00:00
Chris Lattner
2fbff4d2dc revert my previous switch lowering change, which miscompiles a few programs.
This will break a dj test until I have time to investigate.

llvm-svn: 34247
2007-02-13 20:09:07 +00:00
Lauro Ramos Venancio
50c6a8c3a1 Add space between // and the comment.
llvm-svn: 34246
2007-02-13 20:06:15 +00:00
Lauro Ramos Venancio
048e16ff8f Add ABI information to ARM subtarget.
llvm-svn: 34245
2007-02-13 19:52:28 +00:00
Lauro Ramos Venancio
abde3cc16c Add a space between // and the comment.
llvm-svn: 34244
2007-02-13 18:10:13 +00:00
Lauro Ramos Venancio
de9b8d05d8 Add comment about original function argument alignment.
llvm-svn: 34243
2007-02-13 17:57:38 +00:00
Reid Spencer
6e0c66d591 Fix tow grammaros that Bill Wendling noticed.
llvm-svn: 34242
2007-02-13 17:04:09 +00:00
Lauro Ramos Venancio
603f201cba According to ARM EABI, 8-bytes function arguments must be 8-bytes aligned.
llvm-svn: 34241
2007-02-13 14:07:13 +00:00
Lauro Ramos Venancio
9956dcffbe Add "original alignment" to function arguments flags.
llvm-svn: 34240
2007-02-13 13:50:08 +00:00
Reid Spencer
16c6b85c78 Fix a compilation error that caused the nightly test to fail.
llvm-svn: 34239
2007-02-13 09:26:04 +00:00
Reid Spencer
767abe4371 Clean up spelling mistakes.
llvm-svn: 34238
2007-02-13 09:20:14 +00:00
Reid Spencer
dd2b902969 Fix an HTML validation error.
llvm-svn: 34237
2007-02-13 09:11:33 +00:00
Reid Spencer
b2c3d78bd9 Make the draft notice more prominent.
llvm-svn: 34236
2007-02-13 09:09:20 +00:00
Reid Spencer
d35e364e83 Add DeveloperPolicy.html
llvm-svn: 34235
2007-02-13 09:08:27 +00:00
Reid Spencer
a0f02a3648 First draft of the LLVM Developer Policy. This document is a "first cut"
at stating in clear terms the LLVM project's policies with respect to
developers and their contributions. Feedback on this is welcome while it
is in draft stage.

llvm-svn: 34234
2007-02-13 09:06:01 +00:00
Chris Lattner
0f04816cad Switch UnaryOperators to default to passing names up by const char* when possible.
This speeds up bcreading by 1.5%.

llvm-svn: 34233
2007-02-13 07:54:42 +00:00
Chris Lattner
cb9a626c67 add a setName variant that takes a null-terminated string. This can be
used to avoid std::string allocations in common cases.

llvm-svn: 34232
2007-02-13 07:53:34 +00:00
Chris Lattner
e786eaa3b0 Use a SmallVector to reduce heap traffic. This speeds up bcreader 10%
llvm-svn: 34231
2007-02-13 07:28:20 +00:00
Chris Lattner
10eb59abd8 fix a critical bug in smallvector, where it would destroy elements that are
not in its range (!).

llvm-svn: 34230
2007-02-13 07:25:36 +00:00
Chris Lattner
abe7342dc2 now that we can pass ranges into CallInst ctors, eliminate vector heap traffic
llvm-svn: 34229
2007-02-13 06:30:42 +00:00
Chris Lattner
e563e480d9 eliminate instruction ctors that take vectors.
llvm-svn: 34228
2007-02-13 06:22:32 +00:00
Chris Lattner
e3cf188c1e eliminate vector-related ctors
llvm-svn: 34227
2007-02-13 06:06:26 +00:00
Chris Lattner
55fa988d25 eliminate use of vector-related ctors
llvm-svn: 34226
2007-02-13 06:05:43 +00:00
Chris Lattner
cb4b07b0b3 regenerate
llvm-svn: 34225
2007-02-13 06:04:17 +00:00
Chris Lattner
d37c5ee316 remove use of vector-related ctors
llvm-svn: 34224
2007-02-13 06:03:48 +00:00
Chris Lattner
6ea07f178c eliminate vector-related allocations
llvm-svn: 34223
2007-02-13 06:01:22 +00:00
Chris Lattner
ade1c2bb51 eliminate a bunch of vector-related heap traffic
llvm-svn: 34222
2007-02-13 05:58:53 +00:00
Chris Lattner
d80282427f eliminate use of vector ctors
llvm-svn: 34221
2007-02-13 05:53:56 +00:00
Reid Spencer
bf50a41a76 Update for recent interface changes in GEP constructor.
llvm-svn: 34220
2007-02-13 02:45:57 +00:00
Chris Lattner
a06a8fd2d7 Eliminate use of ctors that take vectors.
llvm-svn: 34219
2007-02-13 02:10:56 +00:00
Chris Lattner
4d8861efaa stop passing vector into ctors
llvm-svn: 34218
2007-02-13 01:53:54 +00:00
Evan Cheng
b612316f20 Allow any MachineBasicBlock (not just the entry block) to have live-in physical
registers. Make sure liveinterval analysis is correctly creating live ranges
for them.

llvm-svn: 34217
2007-02-13 01:30:55 +00:00
Chris Lattner
9056bae3be Fix switch lowering to order cases in zext order, which is how we emit the
comparisons.  This fixes an infinite loop on CodeGen/Generic/switch-lower.ll
and PR1197

llvm-svn: 34216
2007-02-13 01:05:56 +00:00
Chris Lattner
72df49f506 new testcase for PR1197
llvm-svn: 34215
2007-02-13 01:05:10 +00:00
Chris Lattner
b5fcc28075 Add invokeinst and callinst ctors that don't take vectors.
llvm-svn: 34214
2007-02-13 01:04:01 +00:00
Chris Lattner
054ba2c002 remove some dead methods.
llvm-svn: 34213
2007-02-13 00:58:44 +00:00
Chris Lattner
f79508fb59 regenerate
llvm-svn: 34212
2007-02-13 00:58:01 +00:00
Chris Lattner
04a2d765a1 eliminate use of methods that take vectors as args
llvm-svn: 34211
2007-02-13 00:57:40 +00:00
Andrew Lenharth
a224f7ba77 I love non-deturminism. Returning objects with references to stack objects is a bad idea (TM).
llvm-svn: 34210
2007-02-13 00:37:50 +00:00
Chris Lattner
9788ec53af stop using me thods that take a vector
llvm-svn: 34206
2007-02-12 22:58:38 +00:00
Chris Lattner
a731513406 stop using methods that take vectors.
llvm-svn: 34205
2007-02-12 22:56:41 +00:00
Chris Lattner
44e9472fc6 more notes
llvm-svn: 34204
2007-02-12 21:20:26 +00:00
Chris Lattner
b5c89c8d2d add a note
llvm-svn: 34202
2007-02-12 20:26:34 +00:00
Zhou Sheng
d707d63317 1. Make APInt::shl work correctly and more efficiently.
2. Add functions to support the numberical conversion between APInt and
   double/float.

llvm-svn: 34201
2007-02-12 20:02:55 +00:00