oota-llvm.git
16 years agoUpdated source file headers to llvm coding standard.
Scott Michel [Wed, 5 Dec 2007 01:40:25 +0000 (01:40 +0000)]
Updated source file headers to llvm coding standard.

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

16 years agoTwo missing files.
Scott Michel [Wed, 5 Dec 2007 01:31:18 +0000 (01:31 +0000)]
Two missing files.

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

16 years agoMain CellSPU backend files checked in. Intrinsics and autoconf files
Scott Michel [Wed, 5 Dec 2007 01:24:05 +0000 (01:24 +0000)]
Main CellSPU backend files checked in. Intrinsics and autoconf files
remain.

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

16 years agoHandle 0 correctly in string->APFloat conversion.
Dale Johannesen [Wed, 5 Dec 2007 01:10:19 +0000 (01:10 +0000)]
Handle 0 correctly in string->APFloat conversion.

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

16 years agoAdded "Emitter" functor to allow easy emitting of elements of a container
Ted Kremenek [Wed, 5 Dec 2007 00:13:07 +0000 (00:13 +0000)]
Added "Emitter" functor to allow easy emitting of elements of a container
using std::for_each.

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

16 years agoRemove a unsafe optimization. This fixes 401.bzip2.
Evan Cheng [Tue, 4 Dec 2007 23:57:55 +0000 (23:57 +0000)]
Remove a unsafe optimization. This fixes 401.bzip2.

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

16 years agoAdd --with-llvmgcc= and --with-llvmgxx= configure options.
Devang Patel [Tue, 4 Dec 2007 22:54:47 +0000 (22:54 +0000)]
Add --with-llvmgcc= and --with-llvmgxx= configure options.

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

16 years agoMore files in the CellSPU drop...
Scott Michel [Tue, 4 Dec 2007 22:35:58 +0000 (22:35 +0000)]
More files in the CellSPU drop...

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

16 years agoMore of the Cell SPU code drop from "Team Aerospace".
Scott Michel [Tue, 4 Dec 2007 22:23:35 +0000 (22:23 +0000)]
More of the Cell SPU code drop from "Team Aerospace".

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

16 years agoSpiller unfold optimization bug: do not clobber a reusable stack slot value unless...
Evan Cheng [Tue, 4 Dec 2007 19:19:45 +0000 (19:19 +0000)]
Spiller unfold optimization bug: do not clobber a reusable stack slot value unless it can be modified.

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

16 years agoImplement framework for scalarizing node results. This is sufficient
Chris Lattner [Tue, 4 Dec 2007 07:48:46 +0000 (07:48 +0000)]
Implement framework for scalarizing node results.  This is sufficient
to codegen this:

define float @test_extract_elt(<1 x float> * %P) {
%p = load <1 x float>* %P
%R = extractelement <1 x float> %p, i32 0
ret float %R
}

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

16 years agostart providing framework for scalarizing vectors.
Chris Lattner [Tue, 4 Dec 2007 07:29:51 +0000 (07:29 +0000)]
start providing framework for scalarizing vectors.

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

16 years agoDiscard split intervals made empty due to folding.
Evan Cheng [Tue, 4 Dec 2007 00:32:23 +0000 (00:32 +0000)]
Discard split intervals made empty due to folding.

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

16 years agoMore CellSPU files... more to follow.
Scott Michel [Mon, 3 Dec 2007 23:14:43 +0000 (23:14 +0000)]
More CellSPU files... more to follow.

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

16 years agoMakefile fragment for CellSPU.
Scott Michel [Mon, 3 Dec 2007 23:12:49 +0000 (23:12 +0000)]
Makefile fragment for CellSPU.

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

16 years agoFirst commit to CellSPU. More to follow
Scott Michel [Mon, 3 Dec 2007 23:09:49 +0000 (23:09 +0000)]
First commit to CellSPU. More to follow

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

16 years agoBug fixes.
Evan Cheng [Mon, 3 Dec 2007 21:31:55 +0000 (21:31 +0000)]
Bug fixes.

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

16 years agoTrack dependencies when creating symlinks to LLVM libraries next
Gordon Henriksen [Mon, 3 Dec 2007 21:15:53 +0000 (21:15 +0000)]
Track dependencies when creating symlinks to LLVM libraries next
to the ocaml bindings. This is required on Windows where 'ln -sf'
actually creates a copy. Thanks to Alain Frisch for noticing this.

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

16 years agoRegenerate
Anton Korobeynikov [Mon, 3 Dec 2007 21:01:29 +0000 (21:01 +0000)]
Regenerate

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

16 years agoFix fallout from my last patch: don't reject varargs functions :)
Anton Korobeynikov [Mon, 3 Dec 2007 21:00:45 +0000 (21:00 +0000)]
Fix fallout from my last patch: don't reject varargs functions :)

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

16 years agoRather than having special rules like "intrinsics cannot
Duncan Sands [Mon, 3 Dec 2007 20:06:50 +0000 (20:06 +0000)]
Rather than having special rules like "intrinsics cannot
throw exceptions", just mark intrinsics with the nounwind
attribute.  Likewise, mark intrinsics as readnone/readonly
and get rid of special aliasing logic (which didn't use
anything more than this anyway).

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

16 years agoupdate file comment.
Chris Lattner [Mon, 3 Dec 2007 19:43:18 +0000 (19:43 +0000)]
update file comment.

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

16 years agoFixed typo.
John Criswell [Mon, 3 Dec 2007 19:34:25 +0000 (19:34 +0000)]
Fixed typo.

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

16 years agoRegenerate
Anton Korobeynikov [Mon, 3 Dec 2007 19:17:47 +0000 (19:17 +0000)]
Regenerate

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

16 years agoIf ExitValue operand is also defined in Loop header then
Devang Patel [Mon, 3 Dec 2007 19:17:21 +0000 (19:17 +0000)]
If ExitValue operand is also defined in Loop header then
insert new ExitValue after this operand definition.

This fixes PR1828.

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

16 years agoMore sanity checks for function types.
Anton Korobeynikov [Mon, 3 Dec 2007 19:16:54 +0000 (19:16 +0000)]
More sanity checks for function types.
Thanks goes to PyPy folks for generating broken stuff :)

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

16 years agoDescribe the notion of 'owners' of the code.
Chris Lattner [Mon, 3 Dec 2007 19:00:47 +0000 (19:00 +0000)]
Describe the notion of 'owners' of the code.

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

16 years agoApplying Anton's binmode fix to the other ofstream too.
Gordon Henriksen [Mon, 3 Dec 2007 14:50:37 +0000 (14:50 +0000)]
Applying Anton's binmode fix to the other ofstream too.

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

16 years agoSorry, typo :)
Anton Korobeynikov [Mon, 3 Dec 2007 14:35:57 +0000 (14:35 +0000)]
Sorry, typo :)

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

16 years agoOpen output file correctly. This is extremely important for
Anton Korobeynikov [Mon, 3 Dec 2007 14:28:26 +0000 (14:28 +0000)]
Open output file correctly. This is extremely important for
windows-based hosts, where files are opened in text mode by default.

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

16 years agoTypo
Evan Cheng [Mon, 3 Dec 2007 10:00:00 +0000 (10:00 +0000)]
Typo

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

16 years agoUpdate kill info for uses of split intervals.
Evan Cheng [Mon, 3 Dec 2007 09:58:48 +0000 (09:58 +0000)]
Update kill info for uses of split intervals.

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

16 years agoProvide hook for _alloca to make JITing on Cygwin slightly happier :)
Anton Korobeynikov [Mon, 3 Dec 2007 05:30:41 +0000 (05:30 +0000)]
Provide hook for _alloca to make JITing on Cygwin slightly happier :)

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

16 years agolli -trace was removed back in 2003.
Nick Lewycky [Mon, 3 Dec 2007 01:58:01 +0000 (01:58 +0000)]
lli -trace was removed back in 2003.

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

16 years agoType::IntTy hasn't existed for a while. Just sub in Type::Int32Ty.
Nick Lewycky [Mon, 3 Dec 2007 01:52:52 +0000 (01:52 +0000)]
Type::IntTy hasn't existed for a while. Just sub in Type::Int32Ty.

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

16 years agoexplain what I need to grant commit access.
Chris Lattner [Mon, 3 Dec 2007 00:36:20 +0000 (00:36 +0000)]
explain what I need to grant commit access.

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

16 years agofix typo noticed by Joshua Pennington
Chris Lattner [Sun, 2 Dec 2007 22:46:01 +0000 (22:46 +0000)]
fix typo noticed by Joshua Pennington

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

16 years agoRemove redundant foldMemoryOperand variants and other code clean up.
Evan Cheng [Sun, 2 Dec 2007 08:30:39 +0000 (08:30 +0000)]
Remove redundant foldMemoryOperand variants and other code clean up.

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

16 years agoAdding ocamldoc-style comments for the Ocaml bindings.
Gordon Henriksen [Sat, 1 Dec 2007 21:01:15 +0000 (21:01 +0000)]
Adding ocamldoc-style comments for the Ocaml bindings.

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

16 years agoFix a typo noticed by Alain Frisch.
Gordon Henriksen [Sat, 1 Dec 2007 20:59:23 +0000 (20:59 +0000)]
Fix a typo noticed by Alain Frisch.

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

16 years agoIntegrate the readonly/readnone logic more deeply
Duncan Sands [Sat, 1 Dec 2007 07:51:45 +0000 (07:51 +0000)]
Integrate the readonly/readnone logic more deeply
into alias analysis.  This meant updating the API
which now has versions of the getModRefBehavior,
doesNotAccessMemory and onlyReadsMemory methods
which take a callsite parameter.  These should be
used unless the callsite is not known, since in
general they can do a better job than the versions
that take a function.  Also, users should no longer
call the version of getModRefBehavior that takes
both a function and a callsite.  To reduce the
chance of misuse it is now protected.

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

16 years agoFix a bug where splitting cause some unnecessary spilling.
Evan Cheng [Sat, 1 Dec 2007 04:42:39 +0000 (04:42 +0000)]
Fix a bug where splitting cause some unnecessary spilling.

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

16 years agoFixes for MachineLoopInfo, mostly from Evan. With these, it should be almost useable!
Owen Anderson [Sat, 1 Dec 2007 03:01:39 +0000 (03:01 +0000)]
Fixes for MachineLoopInfo, mostly from Evan.  With these, it should be almost useable!

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

16 years agoAllow some reloads to be folded in multi-use cases. Specifically testl r, r -> cmpl...
Evan Cheng [Sat, 1 Dec 2007 02:07:52 +0000 (02:07 +0000)]
Allow some reloads to be folded in multi-use cases. Specifically testl r, r -> cmpl [mem], 0.

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

16 years agoAdd target triple to include/llvm/Config/config.h.in. Regenerate all files.
Eric Christopher [Sat, 1 Dec 2007 00:34:39 +0000 (00:34 +0000)]
Add target triple to include/llvm/Config/config.h.in. Regenerate all files.

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

16 years agoChange LinkTimeOptimizer.h install location.
Devang Patel [Sat, 1 Dec 2007 00:24:50 +0000 (00:24 +0000)]
Change LinkTimeOptimizer.h install location.

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

16 years agoChange lib lto install location.
Devang Patel [Fri, 30 Nov 2007 23:27:57 +0000 (23:27 +0000)]
Change lib lto install location.

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

16 years agoFixed subtle bug in Deserializer::JumpTo when jumping when the block-nesting
Ted Kremenek [Fri, 30 Nov 2007 22:45:05 +0000 (22:45 +0000)]
Fixed subtle bug in Deserializer::JumpTo when jumping when the block-nesting
information matching did not exactly match the underlying stream's scoping
information.

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

16 years agoFixed potential bug where CurWord is not zeroed out in JumpToBit.
Ted Kremenek [Fri, 30 Nov 2007 22:39:46 +0000 (22:39 +0000)]
Fixed potential bug where CurWord is not zeroed out in JumpToBit.

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

16 years agoDo not fold reload into an instruction with multiple uses. It issues one extra load.
Evan Cheng [Fri, 30 Nov 2007 21:23:43 +0000 (21:23 +0000)]
Do not fold reload into an instruction with multiple uses. It issues one extra load.

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

16 years agochain update requests properly.
Chris Lattner [Fri, 30 Nov 2007 18:52:58 +0000 (18:52 +0000)]
chain update requests properly.

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

16 years agoSmall optimization of parameter attribute lookup.
Duncan Sands [Fri, 30 Nov 2007 18:20:58 +0000 (18:20 +0000)]
Small optimization of parameter attribute lookup.

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

16 years agoAdd a convenience method for modifying parameter
Duncan Sands [Fri, 30 Nov 2007 18:19:18 +0000 (18:19 +0000)]
Add a convenience method for modifying parameter
attributes.  While there, I noticed that not all
attribute methods returned a pointer-to-constant,
so I fixed that.

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

16 years agoCheck that there are not more attributes than
Duncan Sands [Fri, 30 Nov 2007 15:52:20 +0000 (15:52 +0000)]
Check that there are not more attributes than
function parameters.

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

16 years agoProvide a way to update DescGlobals cache directly.
Devang Patel [Fri, 30 Nov 2007 00:51:33 +0000 (00:51 +0000)]
Provide a way to update DescGlobals cache directly.

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

16 years agoDo not lose rematerialization info when spilling already split live intervals.
Evan Cheng [Thu, 29 Nov 2007 23:02:50 +0000 (23:02 +0000)]
Do not lose rematerialization info when spilling already split live intervals.

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

16 years agoFix a miscompilation in spiff on PPC.
Owen Anderson [Thu, 29 Nov 2007 18:02:22 +0000 (18:02 +0000)]
Fix a miscompilation in spiff on PPC.

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

16 years agoFix a major performance issue with splitting. If there is a def (not def/use)
Evan Cheng [Thu, 29 Nov 2007 10:12:14 +0000 (10:12 +0000)]
Fix a major performance issue with splitting. If there is a def (not def/use)
in the middle of a split basic block, create a new live interval starting at
the def. This avoid artifically extending the live interval over a number of
cycles where it is dead. e.g.

bb1:
       = vr1204   (use / kill) <= new interval starts and ends here.
...
...
vr1204 =          (new def)   <= start a new interval here.
       = vr1204   (use)

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

16 years agoUpdate tests.
Evan Cheng [Thu, 29 Nov 2007 10:03:54 +0000 (10:03 +0000)]
Update tests.

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

16 years agoReplace the odd kill# hack with something less fragile.
Evan Cheng [Thu, 29 Nov 2007 09:49:23 +0000 (09:49 +0000)]
Replace the odd kill# hack with something less fragile.

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

16 years agoSmall parameter attributes cleanup.
Duncan Sands [Thu, 29 Nov 2007 08:30:15 +0000 (08:30 +0000)]
Small parameter attributes cleanup.

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

16 years agoPass the whole StringMapEntry into StringMapEntryInitializer::Initialize.
Chris Lattner [Thu, 29 Nov 2007 06:14:41 +0000 (06:14 +0000)]
Pass the whole StringMapEntry into StringMapEntryInitializer::Initialize.

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

16 years agoprovide an optional API to allow datatypes in a stringmap to be *gasp*
Chris Lattner [Thu, 29 Nov 2007 06:04:41 +0000 (06:04 +0000)]
provide an optional API to allow datatypes in a stringmap to be *gasp*
initialized with a value if they want, by specializing the
StringMapEntryInitializer class.

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

16 years agoFixed various live interval splitting bugs / compile time issues.
Evan Cheng [Thu, 29 Nov 2007 01:06:25 +0000 (01:06 +0000)]
Fixed various live interval splitting bugs / compile time issues.

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

16 years agoKill info update bug.
Evan Cheng [Thu, 29 Nov 2007 01:05:47 +0000 (01:05 +0000)]
Kill info update bug.

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

16 years agoNew testcase for PR1744
Chris Lattner [Wed, 28 Nov 2007 22:43:34 +0000 (22:43 +0000)]
New testcase for PR1744

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

16 years agoWork around a GCC bug, producing this code:
Chris Lattner [Wed, 28 Nov 2007 21:26:17 +0000 (21:26 +0000)]
Work around a GCC bug, producing this code:

  unsigned char *llvm_cbe_X;
...
  llvm_cbe_X = 0; *((void**)&llvm_cbe_X) = __builtin_stack_save();

instead of:

  llvm_cbe_X = __builtin_stack_save();

See PR1809 for details.

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

16 years agoAdd a note
Chris Lattner [Wed, 28 Nov 2007 19:26:42 +0000 (19:26 +0000)]
Add a note

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

16 years agoImplement ExpandOperationResult for ppc i64 fp->int, which fixes
Chris Lattner [Wed, 28 Nov 2007 18:44:47 +0000 (18:44 +0000)]
Implement ExpandOperationResult for ppc i64 fp->int, which fixes
CodeGen/Generic/fp_to_int.ll among others.  Its unclear why this
just started failing...

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

16 years agofor consistency, allow a fallthrough if the final check returns null.
Chris Lattner [Wed, 28 Nov 2007 18:30:18 +0000 (18:30 +0000)]
for consistency, allow a fallthrough if the final check returns null.

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

16 years agoupgrade this test
Chris Lattner [Wed, 28 Nov 2007 18:22:12 +0000 (18:22 +0000)]
upgrade this test

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

16 years agomake this test have a deterministic result.
Chris Lattner [Wed, 28 Nov 2007 18:20:49 +0000 (18:20 +0000)]
make this test have a deterministic result.

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

16 years agoAdd some convenience methods for querying attributes, and
Duncan Sands [Wed, 28 Nov 2007 17:07:01 +0000 (17:07 +0000)]
Add some convenience methods for querying attributes, and
use them.

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

16 years agoRevert previous "fix" - the breakage was due to some
Duncan Sands [Wed, 28 Nov 2007 16:50:29 +0000 (16:50 +0000)]
Revert previous "fix" - the breakage was due to some
local changes, not the "not".

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

16 years agoThis test somehow got an extra "not" during the
Duncan Sands [Wed, 28 Nov 2007 15:36:27 +0000 (15:36 +0000)]
This test somehow got an extra "not" during the
recent stderr updates.

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

16 years agoMy compiler complains that "x always evaluates to true"
Duncan Sands [Wed, 28 Nov 2007 10:36:19 +0000 (10:36 +0000)]
My compiler complains that "x always evaluates to true"
in this call:

Result.IntVal = APInt(80, 2, x);

What is x?

uint16_t x[8];

I deduce that the APInt constructor being used is this one:

  APInt(uint32_t numBits, uint64_t val, bool isSigned = false);

rather than this one:

  APInt(uint32_t numBits, uint32_t numWords, const uint64_t bigVal[]);

That doesn't seem right!  This fix compiles but is otherwise completely
untested.

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

16 years agoAdd missing newlines at EOF.
Duncan Sands [Wed, 28 Nov 2007 10:13:38 +0000 (10:13 +0000)]
Add missing newlines at EOF.

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

16 years agoxfail a test
Chris Lattner [Wed, 28 Nov 2007 05:37:13 +0000 (05:37 +0000)]
xfail a test

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

16 years agoupdate this test after the fmrrd fix
Chris Lattner [Wed, 28 Nov 2007 05:27:07 +0000 (05:27 +0000)]
update this test after the fmrrd fix

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

16 years agoFix typo
Tanya Lattner [Wed, 28 Nov 2007 05:14:49 +0000 (05:14 +0000)]
Fix typo

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

16 years agoModified instructions to configure llvm-test by configure llvm with the Path --with...
Tanya Lattner [Wed, 28 Nov 2007 05:13:45 +0000 (05:13 +0000)]
Modified instructions to configure llvm-test by configure llvm with the Path --with-llvmgccdir set.

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

16 years agoFix bug in regression tests that ignored stderr output in RUN lines. Updated tests...
Tanya Lattner [Wed, 28 Nov 2007 04:57:00 +0000 (04:57 +0000)]
Fix bug in regression tests that ignored stderr output in RUN lines. Updated tests and fixed broken run lines.
XFAILed 3 arm regressions (will file bugs)

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

16 years agoRecover compile time regression.
Evan Cheng [Wed, 28 Nov 2007 01:28:46 +0000 (01:28 +0000)]
Recover compile time regression.

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

16 years agoAdd MachineLoopInfo. This is not yet tested.
Owen Anderson [Tue, 27 Nov 2007 22:47:08 +0000 (22:47 +0000)]
Add MachineLoopInfo.  This is not yet tested.

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

16 years agocommit testcase I forgot to svn add.
Chris Lattner [Tue, 27 Nov 2007 22:43:37 +0000 (22:43 +0000)]
commit testcase I forgot to svn add.

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

16 years agoseveral entries got significantly better, though they still aren't done.
Chris Lattner [Tue, 27 Nov 2007 22:41:52 +0000 (22:41 +0000)]
several entries got significantly better, though they still aren't done.

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

16 years agoimplement a trivial readme entry.
Chris Lattner [Tue, 27 Nov 2007 22:36:16 +0000 (22:36 +0000)]
implement a trivial readme entry.

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

16 years agoFix a crash on invalid code due to memcpy lowering.
Chris Lattner [Tue, 27 Nov 2007 22:14:42 +0000 (22:14 +0000)]
Fix a crash on invalid code due to memcpy lowering.

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

16 years agoMake this actually work on systems that support ppc long double.
Chris Lattner [Tue, 27 Nov 2007 20:45:25 +0000 (20:45 +0000)]
Make this actually work on systems that support ppc long double.

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

16 years agoUnbreak all of the darwin/ppc32 JIT failures having to do
Chris Lattner [Tue, 27 Nov 2007 20:41:32 +0000 (20:41 +0000)]
Unbreak all of the darwin/ppc32 JIT failures having to do
with not being able to find printf.

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

16 years agoUpdated GenLibDeps.pl to employ "use strict" to help prevent uses of variables
Ted Kremenek [Tue, 27 Nov 2007 19:31:11 +0000 (19:31 +0000)]
Updated GenLibDeps.pl to employ "use strict" to help prevent uses of variables
that have not yet been defined.

Removed used of grep and sed when parsing the results of "nm". This was
originally motivated because if the user has specified options to grep using
the environment variable GREP_OPTIONS this could break the script. Piping
through grep/sed/sort/uniq is also (to my understanding) not necessary, and
the equivalent operations can be done much faster in the Perl script.

Using a crude benchmark, these changes resulted in a 3x speedup in the
execution of GenLibDeps.pl.

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

16 years agoSupport returning non-power-of-2 vectors to unblock some work
Nate Begeman [Tue, 27 Nov 2007 19:28:48 +0000 (19:28 +0000)]
Support returning non-power-of-2 vectors to unblock some work

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

16 years agosomething wrong with this opt
Andrew Lenharth [Tue, 27 Nov 2007 18:31:30 +0000 (18:31 +0000)]
something wrong with this opt

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

16 years agoAdd testcase for last llvm-gcc tweaks
Anton Korobeynikov [Tue, 27 Nov 2007 18:21:29 +0000 (18:21 +0000)]
Add testcase for last llvm-gcc tweaks

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

16 years agoAdded quotes around $(NM_PATH) argument to GenLibDeps.pl script so that
Ted Kremenek [Tue, 27 Nov 2007 17:53:54 +0000 (17:53 +0000)]
Added quotes around $(NM_PATH) argument to GenLibDeps.pl script so that
the "-p" option is actually seen by nm (it was being dropped as it was
considered as separate argument to the Perl script).

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

16 years agoUnbreak backwards compatibility with bytecode format. Regression
Chris Lattner [Tue, 27 Nov 2007 17:48:06 +0000 (17:48 +0000)]
Unbreak backwards compatibility with bytecode format.  Regression
introduced by this patch:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20071126/055824.html

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

16 years agoFix PR1146: parameter attributes are longer part of
Duncan Sands [Tue, 27 Nov 2007 13:23:08 +0000 (13:23 +0000)]
Fix PR1146: parameter attributes are longer part of
the function type, instead they belong to functions
and function calls.  This is an updated and slightly
corrected version of Reid Spencer's original patch.
The only known problem is that auto-upgrading of
bitcode files doesn't seem to work properly (see
test/Bitcode/AutoUpgradeIntrinsics.ll).  Hopefully
a bitcode guru (who might that be? :) ) will fix it.

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

16 years agoMake this pass for CYGWIN.
Zhou Sheng [Tue, 27 Nov 2007 06:23:59 +0000 (06:23 +0000)]
Make this pass for CYGWIN.

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

16 years agoMake this testcase compatible with CYGWIN.
Zhou Sheng [Tue, 27 Nov 2007 06:17:01 +0000 (06:17 +0000)]
Make this testcase compatible with CYGWIN.

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

16 years agoerr, no really.
Chris Lattner [Tue, 27 Nov 2007 06:14:32 +0000 (06:14 +0000)]
err, no really.

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