oota-llvm.git
16 years agoUnbreak various insert_vector_elt and extract_vector_elt tests in presence of SSE4.
Evan Cheng [Tue, 12 Feb 2008 07:59:45 +0000 (07:59 +0000)]
Unbreak various insert_vector_elt and extract_vector_elt tests in presence of SSE4.

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

16 years agoTest case for annotate builtin.
Tanya Lattner [Tue, 12 Feb 2008 07:46:33 +0000 (07:46 +0000)]
Test case for annotate builtin.

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

16 years agoFix some test cases.
Evan Cheng [Tue, 12 Feb 2008 07:22:46 +0000 (07:22 +0000)]
Fix some test cases.

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

16 years agoMore violation fixes.
Bill Wendling [Tue, 12 Feb 2008 07:12:46 +0000 (07:12 +0000)]
More violation fixes.

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

16 years agoFix validation errors: di -> dt.
Bill Wendling [Tue, 12 Feb 2008 07:09:05 +0000 (07:09 +0000)]
Fix validation errors: di -> dt.

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

16 years agoReformatting. Adding "doc_code" divisions for code examples. Updated some
Bill Wendling [Tue, 12 Feb 2008 07:06:19 +0000 (07:06 +0000)]
Reformatting. Adding "doc_code" divisions for code examples. Updated some
of the examples to reflect the current .TD files.

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

16 years agorip out llvm 2.2 stuff in preparation for llvm 2.3
Chris Lattner [Tue, 12 Feb 2008 06:29:45 +0000 (06:29 +0000)]
rip out llvm 2.2 stuff in preparation for llvm 2.3

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

16 years agoheavily refactor this to have less duplication between BUILD_FOR_WEBSITE mode and...
Chris Lattner [Tue, 12 Feb 2008 06:07:47 +0000 (06:07 +0000)]
heavily  refactor this to have less duplication between BUILD_FOR_WEBSITE mode and not.

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

16 years agoremove unknown details
Chris Lattner [Tue, 12 Feb 2008 05:07:12 +0000 (05:07 +0000)]
remove unknown details

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

16 years agoAdd 2.2 release tag.
Tanya Lattner [Tue, 12 Feb 2008 02:42:55 +0000 (02:42 +0000)]
Add 2.2 release tag.

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

16 years agoStuff noticed while grepping code
Nate Begeman [Mon, 11 Feb 2008 23:47:56 +0000 (23:47 +0000)]
Stuff noticed while grepping code

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

16 years agoCorrect the order of the arguments in the examples in the comments
Dan Gohman [Mon, 11 Feb 2008 23:45:14 +0000 (23:45 +0000)]
Correct the order of the arguments in the examples in the comments
for APInt::getBitsSet. And fix an off-by-one bug in "wrapping" mode.

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

16 years agoThe factories for ImutAVLTree/ImmutableSet/ImmutableMap now take an (optional)
Ted Kremenek [Mon, 11 Feb 2008 23:11:12 +0000 (23:11 +0000)]
The factories for ImutAVLTree/ImmutableSet/ImmutableMap now take an (optional)
BumpPtrAllocator argument to their constructors.  This BumpPtrAllocator
will be used to allocate trees.  If no BumpPtrAllocator is provided, one
is created (as before).

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

16 years agoAdded blurb for CellSPU progress
Scott Michel [Mon, 11 Feb 2008 21:05:47 +0000 (21:05 +0000)]
Added blurb for CellSPU progress

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

16 years agoGeneralize the handling of call and return arguments,
Duncan Sands [Mon, 11 Feb 2008 20:58:28 +0000 (20:58 +0000)]
Generalize the handling of call and return arguments,
in preparation for apint support.  These changes are
intended to have no functional effect.

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

16 years agoFrom Chris' review: use isa instead of explicitly using classof.
Dan Gohman [Mon, 11 Feb 2008 19:00:34 +0000 (19:00 +0000)]
From Chris' review: use isa instead of explicitly using classof.

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

16 years agoFrom Chris' review: minor corrections in comments.
Dan Gohman [Mon, 11 Feb 2008 19:00:03 +0000 (19:00 +0000)]
From Chris' review: minor corrections in comments.

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

16 years agoFrom Chris' review: use cast instead of dyn_cast with an assert.
Dan Gohman [Mon, 11 Feb 2008 18:58:42 +0000 (18:58 +0000)]
From Chris' review: use cast instead of dyn_cast with an assert.

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

16 years agoFrom Chris' review: fix 80 column violations
Dan Gohman [Mon, 11 Feb 2008 18:57:43 +0000 (18:57 +0000)]
From Chris' review: fix 80 column violations

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

16 years agoFrom Chris' review: change MemOperandSDNode's constructor to pass its
Dan Gohman [Mon, 11 Feb 2008 18:56:50 +0000 (18:56 +0000)]
From Chris' review: change MemOperandSDNode's constructor to pass its
argument by reference, rather than by value.

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

16 years agoIf the LHS of the comparison is a loop-invariant we also want to move it
Wojciech Matyjewicz [Mon, 11 Feb 2008 18:37:34 +0000 (18:37 +0000)]
If the LHS of the comparison is a loop-invariant we also want to move it
to the RHS. This simple change allows to compute loop iteration count
for loops with condition similar to the one in the testcase (which seems
to be quite common).

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

16 years agoAdded "Profile" method to APFloat for use with FoldingSet.
Ted Kremenek [Mon, 11 Feb 2008 17:24:50 +0000 (17:24 +0000)]
Added "Profile" method to APFloat for use with FoldingSet.

Added member template "Add" to FoldingSetNodeID that allows "adding" arbitrary
objects to a profile via dispatch to FoldingSetTrait<T>::Profile().

Removed FoldingSetNodeID::AddAPFloat and FoldingSetNodeID::APInt, as their
functionality is now replaced using the above mentioned member template.

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

16 years agoAdd arbitrary integer support to getRegisterType and
Duncan Sands [Mon, 11 Feb 2008 11:09:23 +0000 (11:09 +0000)]
Add arbitrary integer support to getRegisterType and
getNumRegisters.  This is needed for calling functions
with apint parameters or return values.

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

16 years agoFix PR1798 - an error in the evaluation of SCEVAddRecExpr at an
Wojciech Matyjewicz [Mon, 11 Feb 2008 11:03:14 +0000 (11:03 +0000)]
Fix PR1798 - an error in the evaluation of SCEVAddRecExpr at an
arbitrary iteration.

The patch:
1) changes SCEVSDivExpr into SCEVUDivExpr,
2) replaces PartialFact() function with BinomialCoefficient(); the
computations (essentially, the division) in BinomialCoefficient() are
performed with the apprioprate bitwidth necessary to avoid overflow;
unsigned division is used instead of the signed one.

Computations in BinomialCoefficient() require support from the code
generator for APInts. Currently, we use a hack rounding up the
neccessary bitwidth to the nearest power of 2. The hack is easy to turn
off in future.

One remaining issue: we assume the divisor of the binomial coefficient
formula can be computed accurately using 16 bits. It means we can handle
AddRecs of length up to 9. In future, we should use APInts to evaluate
the divisor.

Thanks to Nicholas for cooperation!

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

16 years agoAdd a isBigEndian method to complement isLittleEndian.
Duncan Sands [Mon, 11 Feb 2008 10:37:04 +0000 (10:37 +0000)]
Add a isBigEndian method to complement isLittleEndian.

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

16 years agoDetermine whether a spill kills the register it's spilling before insertion rather...
Evan Cheng [Mon, 11 Feb 2008 08:30:52 +0000 (08:30 +0000)]
Determine whether a spill kills the register it's spilling before insertion rather than trying to undo the kill marker afterwards.

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

16 years agotweaks from dale.
Chris Lattner [Mon, 11 Feb 2008 07:27:21 +0000 (07:27 +0000)]
tweaks from dale.

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

16 years agoupdates from Evan
Chris Lattner [Mon, 11 Feb 2008 07:21:08 +0000 (07:21 +0000)]
updates from Evan

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

16 years agoEnable SSE4 codegen and pattern matching.
Nate Begeman [Mon, 11 Feb 2008 04:19:36 +0000 (04:19 +0000)]
Enable SSE4 codegen and pattern matching.
Add some notes to the README.

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

16 years agoadditional missing feature
Nate Begeman [Mon, 11 Feb 2008 04:16:09 +0000 (04:16 +0000)]
additional missing feature

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

16 years agocorrected some spellings
Gabor Greif [Sun, 10 Feb 2008 20:08:16 +0000 (20:08 +0000)]
corrected some spellings

maybe c380004 can be hyperlinked too?

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

16 years agoVarious updates from Sam Bishop:
Chris Lattner [Sun, 10 Feb 2008 19:11:04 +0000 (19:11 +0000)]
Various updates from Sam Bishop:

"I have been working my way through the JIT and Kaleidoscope tutorials in my
(minuscule) spare time.  Thanks again for writing them!  I have attached a
patch containing some minor changes, ranging from spelling and grammar fixes
to adding a "Next: <next tutorial section>" hyperlink to the bottom of each
page.

Every page has been given the "next link" treatment, but otherwise I'm only
half way through the Kaleidoscope tutorial.  I will send a follow-on patch
if time permits."

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

16 years agoFix scalarrepl to not 'miscompile' undefined code, part #2.
Chris Lattner [Sun, 10 Feb 2008 19:05:37 +0000 (19:05 +0000)]
Fix scalarrepl to not 'miscompile' undefined code, part #2.
This fixes the store case, my previous patch just fixed the load
case.  rdar://5707076.

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

16 years agoxmm0 variable blends
Nate Begeman [Sun, 10 Feb 2008 18:47:57 +0000 (18:47 +0000)]
xmm0 variable blends

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

16 years agoRename MRegisterInfo to TargetRegisterInfo.
Dan Gohman [Sun, 10 Feb 2008 18:45:23 +0000 (18:45 +0000)]
Rename MRegisterInfo to TargetRegisterInfo.

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

16 years agoclose an li tag
Chris Lattner [Sun, 10 Feb 2008 17:52:05 +0000 (17:52 +0000)]
close an li tag

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

16 years agoAdd some Ada info and correct a few buglets.
Duncan Sands [Sun, 10 Feb 2008 13:40:55 +0000 (13:40 +0000)]
Add some Ada info and correct a few buglets.

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

16 years agoAdd truncate and AssertZext result expansion.
Duncan Sands [Sun, 10 Feb 2008 10:08:52 +0000 (10:08 +0000)]
Add truncate and AssertZext result expansion.

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

16 years agoremove the in progress marker.
Chris Lattner [Sun, 10 Feb 2008 08:19:35 +0000 (08:19 +0000)]
remove the in progress marker.

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

16 years agovalidation fixes
Chris Lattner [Sun, 10 Feb 2008 08:18:42 +0000 (08:18 +0000)]
validation fixes

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

16 years agofinal set of major updates
Chris Lattner [Sun, 10 Feb 2008 08:17:19 +0000 (08:17 +0000)]
final set of major updates

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

16 years agoReturn "(c1 + c2)" instead of yet another ADD node (which made this a
Bill Wendling [Sun, 10 Feb 2008 08:10:24 +0000 (08:10 +0000)]
Return "(c1 + c2)" instead of yet another ADD node (which made this a
no-op).

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

16 years agomore prose, some organization improvements.
Chris Lattner [Sun, 10 Feb 2008 07:46:44 +0000 (07:46 +0000)]
more prose, some organization improvements.

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

16 years agorandom notes
Chris Lattner [Sun, 10 Feb 2008 07:04:35 +0000 (07:04 +0000)]
random notes

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

16 years agoadd anote
Chris Lattner [Sun, 10 Feb 2008 01:01:35 +0000 (01:01 +0000)]
add anote

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

16 years agoMatch GCC's behaviour for these sections.
Nick Lewycky [Sun, 10 Feb 2008 00:03:54 +0000 (00:03 +0000)]
Match GCC's behaviour for these sections.

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

16 years agomemopv16i8 had wrong alignment requirement, would have broken pabsb
Nate Begeman [Sat, 9 Feb 2008 23:46:37 +0000 (23:46 +0000)]
memopv16i8 had wrong alignment requirement, would have broken pabsb
pabs{b,w,d} are not two address
fix extract-to-mem sse4 ops
add sse4 vector sign extend nodes

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

16 years agoadd some more notes, still not ready for review :)
Chris Lattner [Sat, 9 Feb 2008 22:58:07 +0000 (22:58 +0000)]
add some more notes, still not ready for review :)

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

16 years agoscoped_ptr.h was removed.
Chris Lattner [Sat, 9 Feb 2008 22:50:06 +0000 (22:50 +0000)]
scoped_ptr.h was removed.

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

16 years agoexplain that NumElements in alloca and malloc defaults to one
Gabor Greif [Sat, 9 Feb 2008 22:24:34 +0000 (22:24 +0000)]
explain that NumElements in alloca and malloc defaults to one

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

16 years agoAlignment of struct containing vectors depends on
Dale Johannesen [Sat, 9 Feb 2008 19:04:25 +0000 (19:04 +0000)]
Alignment of struct containing vectors depends on
whether SSE is present, on Darwin anyway.  Make it
explicit.

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

16 years agoWe should check that existing cast operation has the appropriate opcode before we...
Wojciech Matyjewicz [Sat, 9 Feb 2008 18:30:13 +0000 (18:30 +0000)]
We should check that existing cast operation has the appropriate opcode before we reuse it.

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

16 years agoAdd a check if the initial value of the induction variable is 0 (the method comment...
Wojciech Matyjewicz [Sat, 9 Feb 2008 18:06:58 +0000 (18:06 +0000)]
Add a check if the initial value of the induction variable is 0 (the method comment says it should be).

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

16 years agoRemove unused hidden option.
Evan Cheng [Sat, 9 Feb 2008 08:36:28 +0000 (08:36 +0000)]
Remove unused hidden option.

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

16 years agoSkeleton of insert and extract matching, more to come
Nate Begeman [Sat, 9 Feb 2008 01:38:08 +0000 (01:38 +0000)]
Skeleton of insert and extract matching, more to come

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

16 years agoTablegen support for insert & extract element matching
Nate Begeman [Sat, 9 Feb 2008 01:37:05 +0000 (01:37 +0000)]
Tablegen support for insert & extract element matching

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

16 years agocheck that terminators only occur at the end of a block. This catches the
Chris Lattner [Sat, 9 Feb 2008 01:06:01 +0000 (01:06 +0000)]
check that terminators only occur at the end of a block.  This catches the
common problem of putting two terminators in the same block.  I can't write
a testcase for this because the .ll parser rejects this before the verifier
can, but this can occur when generating IR.

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

16 years agoChange ConstantSDNode to store an APInt instead of a uint64_t, and
Dan Gohman [Fri, 8 Feb 2008 22:59:30 +0000 (22:59 +0000)]
Change ConstantSDNode to store an APInt instead of a uint64_t, and
begin adding some methods to use it this way.

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

16 years agoFix PR 1995.
Devang Patel [Fri, 8 Feb 2008 22:49:13 +0000 (22:49 +0000)]
Fix PR 1995.

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

16 years agoForgot these files.
Evan Cheng [Fri, 8 Feb 2008 22:05:27 +0000 (22:05 +0000)]
Forgot these files.

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

16 years agoAlso print alignment.
Evan Cheng [Fri, 8 Feb 2008 22:05:07 +0000 (22:05 +0000)]
Also print alignment.

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

16 years agoAdd an isSignedIntN, like isIntN but for signed integer values instead of
Dan Gohman [Fri, 8 Feb 2008 21:58:15 +0000 (21:58 +0000)]
Add an isSignedIntN, like isIntN but for signed integer values instead of
unsigned.

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

16 years agoIt's not always safe to fold movsd into xorpd, etc. Check the alignment of the load...
Evan Cheng [Fri, 8 Feb 2008 21:20:40 +0000 (21:20 +0000)]
It's not always safe to fold movsd into xorpd, etc. Check the alignment of the load address first to make sure it's 16 byte aligned.

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

16 years ago64-bit (MMX) vectors do not need restrictive alignment.
Dale Johannesen [Fri, 8 Feb 2008 19:48:20 +0000 (19:48 +0000)]
64-bit (MMX) vectors do not need restrictive alignment.
128-bit vectors need it only when SSE is on.

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

16 years agoConstified operator<< in APSInt.
Ted Kremenek [Fri, 8 Feb 2008 07:14:19 +0000 (07:14 +0000)]
Constified operator<< in APSInt.

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

16 years agoAvoid needlessly casting away const qualifiers.
Dan Gohman [Fri, 8 Feb 2008 03:29:40 +0000 (03:29 +0000)]
Avoid needlessly casting away const qualifiers.

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

16 years agoAvoid needlessly casting away const qualifiers.
Dan Gohman [Fri, 8 Feb 2008 03:26:46 +0000 (03:26 +0000)]
Avoid needlessly casting away const qualifiers.

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

16 years agoAdded missing entries in X86 load / store folding tables.
Evan Cheng [Fri, 8 Feb 2008 00:12:56 +0000 (00:12 +0000)]
Added missing entries in X86 load / store folding tables.

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

16 years agoBegin setting features for target based on target triple string.
Devang Patel [Thu, 7 Feb 2008 22:32:50 +0000 (22:32 +0000)]
Begin setting features for target based on target triple string.

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

16 years agoRemove remnant of load folding in local register allocator. Patch by Holger Schurig.
Evan Cheng [Thu, 7 Feb 2008 19:46:55 +0000 (19:46 +0000)]
Remove remnant of load folding in local register allocator. Patch by Holger Schurig.

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

16 years agoFollow Chris' suggestion; change the PseudoSourceValue accessors
Dan Gohman [Thu, 7 Feb 2008 18:41:25 +0000 (18:41 +0000)]
Follow Chris' suggestion; change the PseudoSourceValue accessors
to return pointers instead of references, since this is always what
is needed.

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

16 years agoAdd SourceValue information for outgoing argument stores on x86.
Dan Gohman [Thu, 7 Feb 2008 16:28:05 +0000 (16:28 +0000)]
Add SourceValue information for outgoing argument stores on x86.

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

16 years agoDon't abort if a MemOperand is missing a SourceValue; just print it
Dan Gohman [Thu, 7 Feb 2008 16:18:00 +0000 (16:18 +0000)]
Don't abort if a MemOperand is missing a SourceValue; just print it
as <unknown>. And make some minor adjustments to the MemOperand
dump format.

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

16 years agoFix a x86-64 codegen deficiency. Allow gv + offset when using rip addressing mode.
Evan Cheng [Thu, 7 Feb 2008 08:53:49 +0000 (08:53 +0000)]
Fix a x86-64 codegen deficiency. Allow gv + offset when using rip addressing mode.
Before:
_main:
        subq    $8, %rsp
        leaq    _X(%rip), %rax
        movsd   8(%rax), %xmm1
        movss   _X(%rip), %xmm0
        call    _t
        xorl    %ecx, %ecx
        movl    %ecx, %eax
        addq    $8, %rsp
        ret
Now:
_main:
        subq    $8, %rsp
        movsd   _X+8(%rip), %xmm1
        movss   _X(%rip), %xmm0
        call    _t
        xorl    %ecx, %ecx
        movl    %ecx, %eax
        addq    $8, %rsp
        ret

Notice there is another idiotic codegen issue that needs to be fixed asap:
xorl    %ecx, %ecx
movl    %ecx, %eax

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

16 years agoIn some cases, e.g. ADD32ri, no transformation is made. Guide against it.
Evan Cheng [Thu, 7 Feb 2008 08:29:53 +0000 (08:29 +0000)]
In some cases, e.g. ADD32ri, no transformation is made. Guide against it.

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

16 years agoDon't make up new directives. (".set_foobar")
Nick Lewycky [Thu, 7 Feb 2008 06:36:26 +0000 (06:36 +0000)]
Don't make up new directives. (".set_foobar")

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

16 years agoFix a typo in a comment.
Dan Gohman [Thu, 7 Feb 2008 02:30:40 +0000 (02:30 +0000)]
Fix a typo in a comment.

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

16 years agoAdd support to FoldingSet for hashing APInt objects.
Dan Gohman [Wed, 6 Feb 2008 23:09:15 +0000 (23:09 +0000)]
Add support to FoldingSet for hashing APInt objects.

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

16 years agoRe-apply the memory operand changes, with a fix for the static
Dan Gohman [Wed, 6 Feb 2008 22:27:42 +0000 (22:27 +0000)]
Re-apply the memory operand changes, with a fix for the static
initializer problem, a minor tweak to the way the
DAGISelEmitter finds load/store nodes, and a renaming of the
new PseudoSourceValue objects.

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

16 years agoIt's PR1925, not PR1609.
Evan Cheng [Wed, 6 Feb 2008 22:07:17 +0000 (22:07 +0000)]
It's PR1925, not PR1609.

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

16 years agoTemporarily reverting:
Bill Wendling [Wed, 6 Feb 2008 20:03:07 +0000 (20:03 +0000)]
Temporarily reverting:

http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20080128/057882.html

This is causing a miscompilation on PPC G5 and just now seeing it on iMac x86-64.

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

16 years agoFix a number of local register allocator issues: PR1609.
Evan Cheng [Wed, 6 Feb 2008 19:16:53 +0000 (19:16 +0000)]
Fix a number of local register allocator issues: PR1609.

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

16 years agosome more notes.
Chris Lattner [Wed, 6 Feb 2008 18:32:06 +0000 (18:32 +0000)]
some more notes.

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

16 years agomake it clear :)
Chris Lattner [Wed, 6 Feb 2008 18:00:48 +0000 (18:00 +0000)]
make it clear :)

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

16 years agoadd a bunch of random notes and fix some issues noticed by Gabor.
Chris Lattner [Wed, 6 Feb 2008 18:00:06 +0000 (18:00 +0000)]
add a bunch of random notes and fix some issues noticed by Gabor.

This is not ready for review or hacking, this is a work in progress :)

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

16 years agoRegAllocaLocal still *requires* LiveVariables since it runs PHIElimination, followed...
Evan Cheng [Wed, 6 Feb 2008 08:00:32 +0000 (08:00 +0000)]
RegAllocaLocal still *requires* LiveVariables since it runs PHIElimination, followed by TwoAddress which requires LiveVariables. We cannot run LiveVariables on non-SSA code.

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

16 years agoa starter shell for 2.2 release notes
Chris Lattner [Wed, 6 Feb 2008 06:30:34 +0000 (06:30 +0000)]
a starter shell for 2.2 release notes

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

16 years agoThrottle the non-local dependence analysis for basic blocks with more than 50 predece...
Tanya Lattner [Wed, 6 Feb 2008 00:54:55 +0000 (00:54 +0000)]
Throttle the non-local dependence analysis for basic blocks with more than 50 predecessors. Added command line option to play with this threshold.

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

16 years agoDon't dereference an invalid pointer if string is empty.
Anton Korobeynikov [Tue, 5 Feb 2008 23:34:40 +0000 (23:34 +0000)]
Don't dereference an invalid pointer if string is empty.

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

16 years agoFix PR1975: dag isel emitter produces patterns that isel wrong flag result.
Evan Cheng [Tue, 5 Feb 2008 22:50:29 +0000 (22:50 +0000)]
Fix PR1975: dag isel emitter produces patterns that isel wrong flag result.

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

16 years agoMove to getCALLSEQ_END to ensure CALLSEQ_END node produces a flag. This is consistent...
Evan Cheng [Tue, 5 Feb 2008 22:44:06 +0000 (22:44 +0000)]
Move to getCALLSEQ_END to ensure CALLSEQ_END node produces a flag. This is consistent with the definition in td file.

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

16 years agoMake RenamePass faster by making the 'is this a new phi node'
Chris Lattner [Tue, 5 Feb 2008 21:26:23 +0000 (21:26 +0000)]
Make RenamePass faster by making the 'is this a new phi node'
check more intelligent.  This speeds up mem2reg from 5.29s to
0.79s on a synthetic testcase with tons of predecessors and
phi nodes.

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

16 years agoImplement sseregparm.
Dale Johannesen [Tue, 5 Feb 2008 20:46:33 +0000 (20:46 +0000)]
Implement sseregparm.

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

16 years agoIf a vr is already marked alive in a bb, then it has PHI uses that are visited earlie...
Evan Cheng [Tue, 5 Feb 2008 20:04:18 +0000 (20:04 +0000)]
If a vr is already marked alive in a bb, then it has PHI uses that are visited earlier, then it is not killed in the def block (i.e. not dead).

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

16 years agoregenerate
Chris Lattner [Tue, 5 Feb 2008 19:43:53 +0000 (19:43 +0000)]
regenerate

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

16 years agoMake the check for GCC version more robust, fix shared library
Chris Lattner [Tue, 5 Feb 2008 19:43:40 +0000 (19:43 +0000)]
Make the check for GCC version more robust, fix shared library
dependencies in makefile, and fix llvm_cv_no_link_all_option
on darwin.

Patch by Shantonu Sen, more info here:
http://lists.cs.uiuc.edu/pipermail/llvmdev/2008-February/012410.html

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

16 years agoAdded FoldingSet profiling support to ImmutableSet.
Ted Kremenek [Tue, 5 Feb 2008 18:50:25 +0000 (18:50 +0000)]
Added FoldingSet profiling support to ImmutableSet.

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

16 years agoChanged profiling method for ImmutableMap to once again just use its
Ted Kremenek [Tue, 5 Feb 2008 17:30:43 +0000 (17:30 +0000)]
Changed profiling method for ImmutableMap to once again just use its
unique ImutAVLTree* for profiling.

Modified ImutAVLTree:
 (1) changed ComputeHash() to ComputeDigest() and
 (2) changed Profile() to use the computed digest and
 (3) modified insertion of IMutAVLTree into the FoldingSet owned by
     the ImutAVLTreeFactory object to use profiling instead of computing
     a direct hash.  This fixes a bug where our abuse of the FoldingSet would
     not work when the FoldingSet was resized.

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

16 years agoIdent mnemonics appropriately
Nate Begeman [Tue, 5 Feb 2008 08:49:09 +0000 (08:49 +0000)]
Ident mnemonics appropriately

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

16 years agodump the module *before* we delete it, not after.
Chris Lattner [Tue, 5 Feb 2008 06:18:42 +0000 (06:18 +0000)]
dump the module *before* we delete it, not after.

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