oota-llvm.git
16 years ago- Added removeValNo() to remove all live ranges of a particular value#.
Evan Cheng [Wed, 13 Feb 2008 02:48:26 +0000 (02:48 +0000)]
- Added removeValNo() to remove all live ranges of a particular value#.
- removeRange() can now update value# information.

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

16 years agocommuteInstr() can now commute non-ssa machine instrs.
Evan Cheng [Wed, 13 Feb 2008 02:46:49 +0000 (02:46 +0000)]
commuteInstr() can now commute non-ssa machine instrs.

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

16 years agoAdded debugging routine dumpUses.
Evan Cheng [Wed, 13 Feb 2008 02:45:38 +0000 (02:45 +0000)]
Added debugging routine dumpUses.

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

16 years agoConvert SelectionDAG::ComputeMaskedBits to use APInt instead of uint64_t.
Dan Gohman [Wed, 13 Feb 2008 00:35:47 +0000 (00:35 +0000)]
Convert SelectionDAG::ComputeMaskedBits to use APInt instead of uint64_t.
Add an overload that supports the uint64_t interface for use by clients
that haven't been updated yet.

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

16 years ago__DATA not __DATA__ is the right segment name on darwin.
Dale Johannesen [Tue, 12 Feb 2008 23:35:09 +0000 (23:35 +0000)]
__DATA not __DATA__ is the right segment name on darwin.
Spotted by Nick Kledzik.

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

16 years agoRemove some dead code
Nate Begeman [Tue, 12 Feb 2008 22:54:40 +0000 (22:54 +0000)]
Remove some dead code

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

16 years agoSSE4.1 64b integer insert/extract pattern support
Nate Begeman [Tue, 12 Feb 2008 22:51:28 +0000 (22:51 +0000)]
SSE4.1 64b integer insert/extract pattern support
Move formats into the formats file

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

16 years agoChange APInt::getBitsSet to accept a "half-open" range, where the
Dan Gohman [Tue, 12 Feb 2008 21:47:33 +0000 (21:47 +0000)]
Change APInt::getBitsSet to accept a "half-open" range, where the
hiBit parameter marks the index one past the last desired set bit.

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

16 years agoNote that these instructions are for x86-32 linux
Duncan Sands [Tue, 12 Feb 2008 21:40:21 +0000 (21:40 +0000)]
Note that these instructions are for x86-32 linux
(the only platform on which the Ada compiler even
builds).

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

16 years agoAdd more spacing.
Duncan Sands [Tue, 12 Feb 2008 21:28:39 +0000 (21:28 +0000)]
Add more spacing.

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

16 years agoAdd instructions for building Ada and Fortran.
Duncan Sands [Tue, 12 Feb 2008 21:22:58 +0000 (21:22 +0000)]
Add instructions for building Ada and Fortran.
Adjust mentions of gcc4 to be 4.0/4.2 agnostic.
This file should probably be renamed tor
 GCCFEBuildInstrs.html...

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

16 years agoRe-apply the patch to improve the optimizations of memcpy's, with several
Owen Anderson [Tue, 12 Feb 2008 21:15:18 +0000 (21:15 +0000)]
Re-apply the patch to improve the optimizations of memcpy's, with several
bugs fixed.  This now passes PPC bootstrap.

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

16 years agoGeneralize getCopyFromParts and getCopyToParts to
Duncan Sands [Tue, 12 Feb 2008 20:46:31 +0000 (20:46 +0000)]
Generalize getCopyFromParts and getCopyToParts to
handle arbitrary precision integers and any number
of parts.  For example, on a 32 bit machine an i50
corresponds to two i32 parts.  getCopyToParts will
extend the i50 to an i64 then write half of the i64
to each part; getCopyFromParts will combine the two
i32 parts into an i64 then truncate the result to
i50.

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

16 years agoRevert r46916 PPCTargetAsmInfo.cpp.
Evan Cheng [Tue, 12 Feb 2008 19:25:12 +0000 (19:25 +0000)]
Revert r46916 PPCTargetAsmInfo.cpp.

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

16 years agoOnly using x86-64 rip relative addressing in non-staic mode?
Evan Cheng [Tue, 12 Feb 2008 19:20:46 +0000 (19:20 +0000)]
Only using x86-64 rip relative addressing in non-staic mode?

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

16 years agoDon't mask the isel bug.
Evan Cheng [Tue, 12 Feb 2008 19:11:29 +0000 (19:11 +0000)]
Don't mask the isel bug.

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

16 years agoThis test assumes no SSE4.1.
Evan Cheng [Tue, 12 Feb 2008 19:11:08 +0000 (19:11 +0000)]
This test assumes no SSE4.1.

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

16 years agoAdd a doxygen comment for SrcValueSDNode, to make its purpose
Dan Gohman [Tue, 12 Feb 2008 18:52:52 +0000 (18:52 +0000)]
Add a doxygen comment for SrcValueSDNode, to make its purpose
clear and to clarify how it differs from MemOperandSDNode.

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

16 years agoRemove dead code.
Devang Patel [Tue, 12 Feb 2008 18:20:50 +0000 (18:20 +0000)]
Remove dead code.

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

16 years agoNow that ScalarEvolution::print writes to the correct stream, there is
Wojciech Matyjewicz [Tue, 12 Feb 2008 15:12:40 +0000 (15:12 +0000)]
Now that ScalarEvolution::print writes to the correct stream, there is
no need to redirect stderr into stdout.

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

16 years agoChange negative grep into positive one in my yesterday's testcase.
Wojciech Matyjewicz [Tue, 12 Feb 2008 15:10:35 +0000 (15:10 +0000)]
Change negative grep into positive one in my yesterday's testcase.

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

16 years agoFix PR2002. Suppose n is the initial value for the induction
Wojciech Matyjewicz [Tue, 12 Feb 2008 15:09:36 +0000 (15:09 +0000)]
Fix PR2002. Suppose n is the initial value for the induction
variable (with step 1) and m is its final value. Then, the correct trip
count is SMAX(m,n)-n. Previously, we used SMAX(0,m-n), but m-n may
overflow and can't in general be interpreted as signed.

Patch by Nick Lewycky.

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

16 years agoFix for bug 1996: optimize out loads of undef. This code basically just
Eli Friedman [Tue, 12 Feb 2008 12:08:14 +0000 (12:08 +0000)]
Fix for bug 1996: optimize out loads of undef.  This code basically just
checks for a malloc/alloca immediately followed by a load.

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

16 years agoUpdate comment.
Evan Cheng [Tue, 12 Feb 2008 07:59:55 +0000 (07:59 +0000)]
Update comment.

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

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