29925 Commits

Author SHA1 Message Date
Chris Lattner
fbd6928545 Add a new Value::getNameStr method, which is preferred over getName.
llvm-svn: 34310
2007-02-15 18:53:54 +00:00
Evan Cheng
2216148289 Inverted the condition by accident.
llvm-svn: 34309
2007-02-15 18:48:41 +00:00
Reid Spencer
af246fde76 For PR1202:
Make sure we found an existing Alignment before overwriting it.

llvm-svn: 34308
2007-02-15 18:34:36 +00:00
Chris Lattner
c3d976fb65 fix indentation
llvm-svn: 34307
2007-02-15 18:19:15 +00:00
Chris Lattner
c4bca38e6e Apply B Scott Michel's patch for PR1184, which improves diagnostics in an
abort case.

llvm-svn: 34306
2007-02-15 18:17:56 +00:00
Evan Cheng
7ff021d148 Bug fixes: assignment operator forgot to copy over size; copy ctor forgot to clear unused top bits.
llvm-svn: 34305
2007-02-15 08:15:58 +00:00
Zhou Sheng
9868d8d7db Fix some buges:
1. Make getMinValue() returns the right value.
2. Fix the ByteSwap() crash problem.
3. Make Postfix increment work correctly.
4. Fix some bugs in LogBase2, Hi/LoBits and UDiv.

llvm-svn: 34304
2007-02-15 06:36:31 +00:00
Evan Cheng
28eaad250f Use BitVector instead of vector<bool> which can be extremely slow.
llvm-svn: 34302
2007-02-15 05:59:24 +00:00
Evan Cheng
0cd0f0f232 Add a BitVector class.
llvm-svn: 34301
2007-02-15 05:56:11 +00:00
Reid Spencer
e7ff3305d6 For PR1195:
Change use of "packed" term to "vector" in comments, strings, variable
names, etc.

llvm-svn: 34300
2007-02-15 03:39:18 +00:00
Reid Spencer
a0a2689760 For PR1195:
Change a comment: Packed Type -> Vector Type

llvm-svn: 34299
2007-02-15 03:11:50 +00:00
Reid Spencer
21061dd3df Change an assert that mentions Packed Type -> Vector Type.
llvm-svn: 34298
2007-02-15 03:11:20 +00:00
Reid Spencer
6845bcd6c6 For PR1195:
Packed -> Vector.

llvm-svn: 34297
2007-02-15 03:08:48 +00:00
Reid Spencer
80c836c443 For PR1195:
Packed -> Vector

llvm-svn: 34296
2007-02-15 03:07:05 +00:00
Evan Cheng
990a0946a2 isPhysRegUsed should be const.
llvm-svn: 34295
2007-02-15 02:55:51 +00:00
Evan Cheng
033f2496c8 Should pass isKill and isDead to addRegOperand() as well.
llvm-svn: 34294
2007-02-15 02:52:40 +00:00
Reid Spencer
55e4e98a2a For PR1195:
Rename PackedType -> VectorType, ConstantPacked -> ConstantVector, and
PackedTyID -> VectorTyID. No functional changes.

llvm-svn: 34293
2007-02-15 02:26:10 +00:00
Reid Spencer
ca25d2b273 Fixed packed structure breakage from earlier TargetData patch; applied
Chris Lattner's code style suggestions.

Patch by Scott Michel!

llvm-svn: 34292
2007-02-15 02:11:06 +00:00
Reid Spencer
d7022a4c2a Fix validation errors.
llvm-svn: 34291
2007-02-15 01:11:54 +00:00
Chris Lattner
1abc8d2f00 update to new t-d strings.
llvm-svn: 34290
2007-02-15 00:54:16 +00:00
Reid Spencer
6f020ebe6e Fix a typo.
llvm-svn: 34289
2007-02-14 22:58:39 +00:00
Reid Spencer
483ac41e92 Add feedback from Vikram Adve.
llvm-svn: 34288
2007-02-14 22:55:40 +00:00
Reid Spencer
fd15b87dfd Synchronize TOC headings with actual headings.
llvm-svn: 34285
2007-02-14 17:24:04 +00:00
Reid Spencer
bb8a632391 Fix the table of contents to match the document body.
llvm-svn: 34284
2007-02-14 17:20:59 +00:00
Reid Spencer
f6883771e0 Fix a grammaro.
llvm-svn: 34283
2007-02-14 16:21:54 +00:00
Reid Spencer
126091f461 A few changes:
1. Fix typos
2. Move Terminology to the end
3. Simplify language in a few spots.
4. Add a policy that larger increments require a larger testing effort.

llvm-svn: 34282
2007-02-14 16:21:10 +00:00
Reid Spencer
ae1215b687 Drop a policy.
llvm-svn: 34281
2007-02-14 08:23:08 +00:00
Reid Spencer
ab2cc1ef92 Some more minor tweaks.
llvm-svn: 34280
2007-02-14 08:19:16 +00:00
Reid Spencer
4f92aeee14 Fix word usage.
llvm-svn: 34279
2007-02-14 08:13:38 +00:00
Reid Spencer
ce1e696d0d Add a missing .
llvm-svn: 34278
2007-02-14 08:09:40 +00:00
Reid Spencer
95f376543f Incorporate Chris Lattner's second round of feedback.
llvm-svn: 34277
2007-02-14 07:57:48 +00:00
Chris Lattner
42da01da94 fix validation bug
llvm-svn: 34276
2007-02-14 07:42:59 +00:00
Chris Lattner
8196e77287 now that llvm-gcc3 is gone, life is significantly simpler and less scary
llvm-svn: 34275
2007-02-14 07:42:12 +00:00
Chris Lattner
0c288107cf remove an obsolete question
llvm-svn: 34274
2007-02-14 07:40:16 +00:00
Chris Lattner
a4853a3340 remove obsolete path
llvm-svn: 34273
2007-02-14 07:39:35 +00:00
Chris Lattner
f9ef252d00 fix a warning
llvm-svn: 34272
2007-02-14 07:34:56 +00:00
Chris Lattner
1a048c47a6 remove obsolete warning
llvm-svn: 34271
2007-02-14 07:34:22 +00:00
Chris Lattner
ffa8e03125 There is no circular dependency between llvm and llvm-gcc anymore. stop
scaring users.

llvm-svn: 34270
2007-02-14 07:33:00 +00:00
Reid Spencer
c0024c5149 Incorporate Chris' first round of comments.
llvm-svn: 34269
2007-02-14 07:22:19 +00:00
Chris Lattner
0c973a02d9 Refix CodeGen/Generic/switch-lower.ll. In contrast to my previous patch,
this doesn't miscompile lots of programs :)

llvm-svn: 34268
2007-02-14 07:18:16 +00:00
Chris Lattner
fc2686da00 From Dan Gohman:
While preparing http://llvm.org/PR1198 I noticed several asserts
protecting unprepared code from i128 types that weren't actually failing
when they should because they were written as assert("foo") instead of
something like assert(0 && "foo"). This patch fixes all the cases that a
quick grep found.

llvm-svn: 34267
2007-02-14 06:20:04 +00:00
Chris Lattner
5cece73ec8 Generalize TargetData strings, to support more interesting forms of data.
Patch by Scott Michel.

llvm-svn: 34266
2007-02-14 05:52:17 +00:00
Reid Spencer
5e1e7c4e59 Use brute-force algorithm for to_string. It doesn't have to be efficient
at this point, it just needs to work so we can test things reliably.

llvm-svn: 34262
2007-02-14 02:52:25 +00:00
Chris Lattner
b72af5df9b sanity check for *basic* i128 arithmetic on all hosts.
llvm-svn: 34259
2007-02-13 23:59:21 +00:00
Chris Lattner
48b7ed420c better support for i128.
llvm-svn: 34258
2007-02-13 23:57:55 +00:00
Chris Lattner
1b57f8bbdf 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
c305c08493 Fix PR1198, by adding initial i128 support. Patch by Dan Gohman.
llvm-svn: 34256
2007-02-13 23:41:38 +00:00
Chris Lattner
e85be004b9 new testcase, by Dan Gohman
llvm-svn: 34255
2007-02-13 23:41:24 +00:00
Andrew Lenharth
f4bbe64c83 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
80ac48cfdf 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