oota-llvm.git
16 years agoeliminate residual cruft related to recognizing bytecode
Gabor Greif [Fri, 6 Jul 2007 13:38:17 +0000 (13:38 +0000)]
eliminate residual cruft related to recognizing bytecode
files.
bitcode files are the only LLVM format left.

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

16 years agoFix a comment so that the element numbering match the actual element
Dan Gohman [Fri, 6 Jul 2007 13:27:33 +0000 (13:27 +0000)]
Fix a comment so that the element numbering match the actual element
operand numbering.

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

16 years agoAdd an explicit triple to the big-endian tests so that the assembly
Dan Gohman [Fri, 6 Jul 2007 13:15:51 +0000 (13:15 +0000)]
Add an explicit triple to the big-endian tests so that the assembly
output format is always consistent with what the greps are looking for.

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

16 years agoIndexes into the list of filter ids cannot be output
Duncan Sands [Fri, 6 Jul 2007 12:46:24 +0000 (12:46 +0000)]
Indexes into the list of filter ids cannot be output
directly: they need to be turned into byte offsets
(often the same, but may not be if there are many
type infos).

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

16 years agoTest that byte offsets are used to index into the list
Duncan Sands [Fri, 6 Jul 2007 12:38:27 +0000 (12:38 +0000)]
Test that byte offsets are used to index into the list
of filter ids, and not simply the id index.  Testing
this requires at least 128 type infos!

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

16 years agoAdd the byval attribute
Rafael Espindola [Fri, 6 Jul 2007 10:57:03 +0000 (10:57 +0000)]
Add the byval attribute

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

16 years agoSolaris 2.x does not have RLIMIT_RSS, check for this symbol (analog NetBSD below...
Gabor Greif [Fri, 6 Jul 2007 10:31:27 +0000 (10:31 +0000)]
Solaris 2.x does not have RLIMIT_RSS, check for this symbol (analog NetBSD below), should subsume Cygwin

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

16 years agoRemove propagateEHRegister in favour of a more limited
Duncan Sands [Fri, 6 Jul 2007 09:18:59 +0000 (09:18 +0000)]
Remove propagateEHRegister in favour of a more limited
fix, that is adequate while PR1508 remains unresolved.

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

16 years agoRemove ExtractGlobalVariable - use StripPointerCasts
Duncan Sands [Fri, 6 Jul 2007 09:10:03 +0000 (09:10 +0000)]
Remove ExtractGlobalVariable - use StripPointerCasts
instead.

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

16 years agoCorrect a typo.
Zhou Sheng [Fri, 6 Jul 2007 06:01:16 +0000 (06:01 +0000)]
Correct a typo.

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

16 years agoWorkaround of getCopyToRegs and getCopyFromRegs bugs for big-endian machines.
Evan Cheng [Fri, 6 Jul 2007 01:47:35 +0000 (01:47 +0000)]
Workaround of getCopyToRegs and getCopyFromRegs bugs for big-endian machines.

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

16 years agoChange CalculateHeights and CalculateDepths to be non-recursive.
Evan Cheng [Fri, 6 Jul 2007 01:37:28 +0000 (01:37 +0000)]
Change CalculateHeights and CalculateDepths to be non-recursive.

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

16 years agoRefactor code to add initial support for OptionalDefOperand.
Evan Cheng [Fri, 6 Jul 2007 01:05:26 +0000 (01:05 +0000)]
Refactor code to add initial support for OptionalDefOperand.

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

16 years agoPrint the s bit if the instruction is toggled to its CPSR setting form.
Evan Cheng [Fri, 6 Jul 2007 01:01:34 +0000 (01:01 +0000)]
Print the s bit if the instruction is toggled to its CPSR setting form.

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

16 years agoPredicateDefOperand -> OptionalDefOperand.
Evan Cheng [Fri, 6 Jul 2007 01:00:49 +0000 (01:00 +0000)]
PredicateDefOperand -> OptionalDefOperand.

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

16 years agoAdd OptionalDefOperand to stand for optionally defined result.
Evan Cheng [Fri, 6 Jul 2007 01:00:16 +0000 (01:00 +0000)]
Add OptionalDefOperand to stand for optionally defined result.

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

16 years agoFix a bunch of issues found in a testcase from 400.perlbench.
Owen Anderson [Thu, 5 Jul 2007 23:11:26 +0000 (23:11 +0000)]
Fix a bunch of issues found in a testcase from 400.perlbench.

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

16 years agoFix test.
Evan Cheng [Thu, 5 Jul 2007 23:00:50 +0000 (23:00 +0000)]
Fix test.

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

16 years agoavoid ambiguity in target selection
Chris Lattner [Thu, 5 Jul 2007 22:16:19 +0000 (22:16 +0000)]
avoid ambiguity in target selection

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

16 years agoInitial ARM JIT support by Raul Fernandes Herbster.
Evan Cheng [Thu, 5 Jul 2007 21:15:40 +0000 (21:15 +0000)]
Initial ARM JIT support by Raul Fernandes Herbster.

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

16 years agoAdd explicit keywords.
Dan Gohman [Thu, 5 Jul 2007 20:40:15 +0000 (20:40 +0000)]
Add explicit keywords.

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

16 years agoMake MachineFunctionPass::runOnFunction non-virtual. Subclasses override
Dan Gohman [Thu, 5 Jul 2007 20:39:35 +0000 (20:39 +0000)]
Make MachineFunctionPass::runOnFunction non-virtual. Subclasses override
the virtual function runOnMachineFunction instead. And add access specifiers.

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

16 years agoProper flag __alloca call
Anton Korobeynikov [Thu, 5 Jul 2007 20:36:08 +0000 (20:36 +0000)]
Proper flag __alloca call

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

16 years agoMake the debug string for ISD::MERGE_VALUES consistent with the others.
Dan Gohman [Thu, 5 Jul 2007 20:15:43 +0000 (20:15 +0000)]
Make the debug string for ISD::MERGE_VALUES consistent with the others.

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

16 years agoAdd a parameter to getCopyToParts and getCopyFromParts to specify whether
Dan Gohman [Thu, 5 Jul 2007 20:12:34 +0000 (20:12 +0000)]
Add a parameter to getCopyToParts and getCopyFromParts to specify whether
endian swapping should be done, and update the code to use it. This fixes
some register ordering issues on big-endian systems, such as PowerPC,
introduced by the recent illegal by-val arguments changes.

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

16 years agoThis enum is dead
Chris Lattner [Thu, 5 Jul 2007 17:28:01 +0000 (17:28 +0000)]
This enum is dead

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

16 years agoupdate the .cvs files.
Chris Lattner [Thu, 5 Jul 2007 17:27:31 +0000 (17:27 +0000)]
update the .cvs files.

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

16 years agoupdate the .cvs files
Chris Lattner [Thu, 5 Jul 2007 17:26:49 +0000 (17:26 +0000)]
update the .cvs files

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

16 years agoDoh
Evan Cheng [Thu, 5 Jul 2007 17:21:33 +0000 (17:21 +0000)]
Doh

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

16 years agoremove a dead case
Chris Lattner [Thu, 5 Jul 2007 17:18:32 +0000 (17:18 +0000)]
remove a dead case

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

16 years agoUnbreak the build.
Evan Cheng [Thu, 5 Jul 2007 17:13:56 +0000 (17:13 +0000)]
Unbreak the build.

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

16 years agoUnbreak the build.
Evan Cheng [Thu, 5 Jul 2007 17:13:19 +0000 (17:13 +0000)]
Unbreak the build.

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

16 years agoHere is the bulk of the sanitizing.
Gabor Greif [Thu, 5 Jul 2007 17:07:56 +0000 (17:07 +0000)]
Here is the bulk of the sanitizing.
Almost all occurrences of "bytecode" in the sources have been eliminated.

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

16 years agoRecord my recent work.
Dale Johannesen [Thu, 5 Jul 2007 16:56:24 +0000 (16:56 +0000)]
Record my recent work.

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

16 years agothe arm backend is not building, temporarily disable it.
Chris Lattner [Thu, 5 Jul 2007 16:11:52 +0000 (16:11 +0000)]
the arm backend is not building, temporarily disable it.

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

16 years agoFix PR1539. Add LoopPassPrinter.
Devang Patel [Thu, 5 Jul 2007 15:32:03 +0000 (15:32 +0000)]
Fix PR1539.  Add LoopPassPrinter.

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

16 years agoMake sure only one copy of a filter is placed in the
Duncan Sands [Thu, 5 Jul 2007 15:15:01 +0000 (15:15 +0000)]
Make sure only one copy of a filter is placed in the
exception handling table if we encounter it multiple
times.  Filters could be folded harder than this, but
that would mean a lot more work for not much gain.

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

16 years agoTest commit.
Duncan Sands [Thu, 5 Jul 2007 10:32:33 +0000 (10:32 +0000)]
Test commit.

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

16 years agoAdd a note about llvm2cpp's dubious future.
Reid Spencer [Thu, 5 Jul 2007 10:12:19 +0000 (10:12 +0000)]
Add a note about llvm2cpp's dubious future.

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

16 years agoGet the version number right, finally.
Reid Spencer [Thu, 5 Jul 2007 10:00:19 +0000 (10:00 +0000)]
Get the version number right, finally.

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

16 years agoTeach DAGISelEmitter about zero_reg.
Evan Cheng [Thu, 5 Jul 2007 07:19:45 +0000 (07:19 +0000)]
Teach DAGISelEmitter about zero_reg.

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

16 years agoInstructions with ImmutablePredicateOperand aren't really predicable since their...
Evan Cheng [Thu, 5 Jul 2007 07:19:29 +0000 (07:19 +0000)]
Instructions with ImmutablePredicateOperand aren't really predicable since their predicates are fixed at isel time.

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

16 years agoReflects the chanegs made to PredicateOperand.
Evan Cheng [Thu, 5 Jul 2007 07:18:20 +0000 (07:18 +0000)]
Reflects the chanegs made to PredicateOperand.

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

16 years agoAdded ARM::CPSR to represent ARM CPSR status register.
Evan Cheng [Thu, 5 Jul 2007 07:17:13 +0000 (07:17 +0000)]
Added ARM::CPSR to represent ARM CPSR status register.

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

16 years agoUnfortunately we now require C++ code to isel Bcc, conditional moves, etc.
Evan Cheng [Thu, 5 Jul 2007 07:15:27 +0000 (07:15 +0000)]
Unfortunately we now require C++ code to isel Bcc, conditional moves, etc.

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

16 years agoEach ARM use predicate operand is now made up of two components. The new component...
Evan Cheng [Thu, 5 Jul 2007 07:13:32 +0000 (07:13 +0000)]
Each ARM use predicate operand is now made up of two components. The new component is the CPSR register.

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

16 years agoAdded ARM::CPSR to represent ARM CPSR status register.
Evan Cheng [Thu, 5 Jul 2007 07:11:03 +0000 (07:11 +0000)]
Added ARM::CPSR to represent ARM CPSR status register.

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

16 years agoPPC conditional branch predicate does not change after isel.
Evan Cheng [Thu, 5 Jul 2007 07:09:50 +0000 (07:09 +0000)]
PPC conditional branch predicate does not change after isel.

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

16 years ago- Added zero_reg def to stand for register 0.
Evan Cheng [Thu, 5 Jul 2007 07:09:09 +0000 (07:09 +0000)]
- Added zero_reg def to stand for register 0.
- Added two variants of PredicateOperand: ImmutablePredicateOperand, whose predicate does not change after isel; PredicateDefOperand, which represent a predicate defintion operand.

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

16 years agoDo not check isPredicated() on non-predicable instructions.
Evan Cheng [Thu, 5 Jul 2007 07:06:46 +0000 (07:06 +0000)]
Do not check isPredicated() on non-predicable instructions.

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

16 years agoBetter assertion messages.
Evan Cheng [Thu, 5 Jul 2007 07:05:38 +0000 (07:05 +0000)]
Better assertion messages.

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

16 years agoBreak "variable canonicalization" out of InequalityGraph and into its own class
Nick Lewycky [Thu, 5 Jul 2007 03:15:00 +0000 (03:15 +0000)]
Break "variable canonicalization" out of InequalityGraph and into its own class
"ValueNumbering".

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

16 years agoFix another bug, this time in PREing select instructions.
Owen Anderson [Wed, 4 Jul 2007 22:33:23 +0000 (22:33 +0000)]
Fix another bug, this time in PREing select instructions.

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

16 years agoPretty straightforward replacement of "bytecode" by "bitcode"
Gabor Greif [Wed, 4 Jul 2007 21:55:50 +0000 (21:55 +0000)]
Pretty straightforward replacement of "bytecode" by "bitcode"
performed on tools/ first, in order not to cause lethal damage

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

16 years agoRefactor X87 instructions. As a side effect, all
Dale Johannesen [Wed, 4 Jul 2007 21:07:47 +0000 (21:07 +0000)]
Refactor X87 instructions.  As a side effect, all
their names are changed.

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

16 years agoExtend eh.selector to support both catches and filters.
Duncan Sands [Wed, 4 Jul 2007 20:52:51 +0000 (20:52 +0000)]
Extend eh.selector to support both catches and filters.
Drop the eh.filter intrinsic.

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

16 years agoNested try-catch-filter testcase.
Duncan Sands [Wed, 4 Jul 2007 20:48:48 +0000 (20:48 +0000)]
Nested try-catch-filter testcase.

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

16 years agoMake the GSG actually work.
Chris Lattner [Wed, 4 Jul 2007 18:42:47 +0000 (18:42 +0000)]
Make the GSG actually work.

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

16 years agoFix a typo that was killing GVNPRE of select instructions.
Owen Anderson [Wed, 4 Jul 2007 18:26:18 +0000 (18:26 +0000)]
Fix a typo that was killing GVNPRE of select instructions.

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

16 years agoFix an error in phi translation of GEPs that was causing failures.
Owen Anderson [Wed, 4 Jul 2007 04:51:16 +0000 (04:51 +0000)]
Fix an error in phi translation of GEPs that was causing failures.

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

16 years agoIgnore the .svn directories so countloc.sh and llvmgrep won't traverse them.
Reid Spencer [Wed, 4 Jul 2007 01:35:32 +0000 (01:35 +0000)]
Ignore the .svn directories so countloc.sh and llvmgrep won't traverse them.

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

16 years agoSupport generation of GR64 to MMX code in the JIT.
Bill Wendling [Wed, 4 Jul 2007 01:29:22 +0000 (01:29 +0000)]
Support generation of GR64 to MMX code in the JIT.

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

16 years agoRemove unused method - getIDomBlock().
Devang Patel [Wed, 4 Jul 2007 01:11:19 +0000 (01:11 +0000)]
Remove unused method - getIDomBlock().

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

16 years agoFix typo in assertion check.
Devang Patel [Wed, 4 Jul 2007 01:05:22 +0000 (01:05 +0000)]
Fix typo in assertion check.

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

16 years agoAllow a GR64 to be moved into an MMX register via the "movd" instruction.
Bill Wendling [Wed, 4 Jul 2007 00:19:54 +0000 (00:19 +0000)]
Allow a GR64 to be moved into an MMX register via the "movd" instruction.

Still need to have JIT generate this code.

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

16 years agoAdd support for performing GVNPRE on GEP instructions.
Owen Anderson [Tue, 3 Jul 2007 23:51:19 +0000 (23:51 +0000)]
Add support for performing GVNPRE on GEP instructions.

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

16 years agoChange the place where man pages are installed to ${prefix}/share/man1. This
Bill Wendling [Tue, 3 Jul 2007 23:04:11 +0000 (23:04 +0000)]
Change the place where man pages are installed to ${prefix}/share/man1. This
puts them in a more standardized place.

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

16 years agoAdd functionality to value number GEP instructions. This also provides the infrastru...
Owen Anderson [Tue, 3 Jul 2007 22:50:56 +0000 (22:50 +0000)]
Add functionality to value number GEP instructions.  This also provides the infrastructure that will
be used for function calls.  NOTE: This does not yet do any transformation of GEPs or function calls.

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

16 years agoTest modified svn mailer
Anton Korobeynikov [Tue, 3 Jul 2007 21:57:50 +0000 (21:57 +0000)]
Test modified svn mailer

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

16 years agoRemove BFtoLLVM. It was old, and a poor example because it didn't use best practices...
Owen Anderson [Tue, 3 Jul 2007 21:36:47 +0000 (21:36 +0000)]
Remove BFtoLLVM.  It was old, and a poor example because it didn't use best practices for making
a LLVM frontend in C++.  Maybe someday it will be rewritten..

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

16 years agoMake the unary operator case a bit faster, since casts are the only kind of unary...
Owen Anderson [Tue, 3 Jul 2007 19:01:42 +0000 (19:01 +0000)]
Make the unary operator case a bit faster, since casts are the only kind of unary operation.

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

16 years agoAdd support for performing GVNPRE on cast instructions, and add a testcase for this.
Owen Anderson [Tue, 3 Jul 2007 18:37:08 +0000 (18:37 +0000)]
Add support for performing GVNPRE on cast instructions, and add a testcase for this.

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

16 years agoWe really should not have this version number in SO many makefiles. This should...
Tanya Lattner [Tue, 3 Jul 2007 18:11:20 +0000 (18:11 +0000)]
We really should not have this version number in  SO many makefiles. This should also probably change to svn instead of cvs, but leaving it for now.

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

16 years agoRevert last change until issue reported by Owen, won't be fixed.
Anton Korobeynikov [Tue, 3 Jul 2007 17:16:46 +0000 (17:16 +0000)]
Revert last change until issue reported by Owen, won't be fixed.

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

16 years agoSome spacing fixes. Cosmetic.
Dale Johannesen [Tue, 3 Jul 2007 17:07:33 +0000 (17:07 +0000)]
Some spacing fixes.  Cosmetic.

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

16 years agoRename llvm-test => test-suite. By Dave Greene.
Anton Korobeynikov [Tue, 3 Jul 2007 17:01:58 +0000 (17:01 +0000)]
Rename llvm-test => test-suite. By Dave Greene.

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

16 years agoFix several over-aggressive folds for undef nodes in dagcombine, to
Dan Gohman [Tue, 3 Jul 2007 14:03:57 +0000 (14:03 +0000)]
Fix several over-aggressive folds for undef nodes in dagcombine, to
follow the rules for undef used in instcombine.

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

16 years agonote where to get steens-aa and ds-aa
Chris Lattner [Tue, 3 Jul 2007 04:41:50 +0000 (04:41 +0000)]
note where to get steens-aa and ds-aa

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

16 years agoTest commit.
Owen Anderson [Tue, 3 Jul 2007 02:28:17 +0000 (02:28 +0000)]
Test commit.

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

16 years agoNew testcases for rev 37847 (PR's 1489 and 1505).
Dale Johannesen [Tue, 3 Jul 2007 00:58:37 +0000 (00:58 +0000)]
New testcases for rev 37847 (PR's 1489 and 1505).

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

16 years agoFix for PR 1505 (and 1489). Rewrite X87 register
Dale Johannesen [Tue, 3 Jul 2007 00:53:03 +0000 (00:53 +0000)]
Fix for PR 1505 (and 1489).  Rewrite X87 register
model to include f32 variants.  Some factoring
improvments forthcoming.

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

16 years agoTesting commit.
Tanya Lattner [Mon, 2 Jul 2007 18:10:52 +0000 (18:10 +0000)]
Testing commit.

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

16 years agoAdd a basic test-case for passing and returning <4 x double> and
Dan Gohman [Mon, 2 Jul 2007 16:23:47 +0000 (16:23 +0000)]
Add a basic test-case for passing and returning <4 x double> and
<8 x float> values on X86.

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

16 years agoVector results may be returned in XMM0 and XMM1, not just XMM0. With
Dan Gohman [Mon, 2 Jul 2007 16:21:53 +0000 (16:21 +0000)]
Vector results may be returned in XMM0 and XMM1, not just XMM0. With
the recent lowering changes, this allows types like <4 x double> to
be returned, using two vector registers.

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

16 years agoReplace ExpandScalarFormalArgs and ExpandScalarCallArgs with the newly
Dan Gohman [Mon, 2 Jul 2007 16:18:06 +0000 (16:18 +0000)]
Replace ExpandScalarFormalArgs and ExpandScalarCallArgs with the newly
refactored getCopyFromParts and getCopyToParts, which are more general.
This effectively adds support for lowering illegal by-val vector call
arguments.

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

16 years agoTeach GetNegatedExpression to negate 0-B to B in UnsafeFPMath mode, and
Dan Gohman [Mon, 2 Jul 2007 15:48:56 +0000 (15:48 +0000)]
Teach GetNegatedExpression to negate 0-B to B in UnsafeFPMath mode, and
visitFSUB to fold 0-B to -B in UnsafeFPMath mode. Also change visitFNEG
to use isNegatibleForFree/GetNegatedExpression instead of doing a subset
of the same thing manually.

This fixes test/CodeGen/X86/negative-sin.ll.

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

16 years agoNew test case. DAGCombiner should be able to fold -sin(-x)
Dan Gohman [Mon, 2 Jul 2007 15:43:20 +0000 (15:43 +0000)]
New test case. DAGCombiner should be able to fold -sin(-x)
in -enable-unsafe-fp-math mode.

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

16 years agoRemove declarations for code no longer in the tree, to avoid confusion.
Dan Gohman [Mon, 2 Jul 2007 15:06:26 +0000 (15:06 +0000)]
Remove declarations for code no longer in the tree, to avoid confusion.

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

16 years agoAdd explicit keywords.
Dan Gohman [Mon, 2 Jul 2007 14:53:37 +0000 (14:53 +0000)]
Add explicit keywords.

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

16 years agoTest case for recent patch for IndVarSimplify.cpp
Zhou Sheng [Mon, 2 Jul 2007 08:02:14 +0000 (08:02 +0000)]
Test case for recent patch for IndVarSimplify.cpp

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

16 years agoRemove the last vestiges of -usesvn.
Reid Spencer [Mon, 2 Jul 2007 06:19:57 +0000 (06:19 +0000)]
Remove the last vestiges of -usesvn.
Implement -usecvs just in case we need to go back to cvs for some reason.

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

16 years agoWe want the Subversion checkout to succeed even if we don't specify
Reid Spencer [Mon, 2 Jul 2007 06:16:32 +0000 (06:16 +0000)]
We want the Subversion checkout to succeed even if we don't specify
the -verbose option! Doh!

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

16 years agoTerminate the document with the right end tags.
Reid Spencer [Sun, 1 Jul 2007 17:02:22 +0000 (17:02 +0000)]
Terminate the document with the right end tags.

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

16 years agoFix undefined behaviour reported by the new --enable-expensive-checks option.
Nick Lewycky [Sun, 1 Jul 2007 03:06:30 +0000 (03:06 +0000)]
Fix undefined behaviour reported by the new --enable-expensive-checks option.

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

16 years agotake blame for bigblock RA (test SVN commit)
Duraid Madina [Sat, 30 Jun 2007 15:47:36 +0000 (15:47 +0000)]
take blame for bigblock RA (test SVN commit)

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

16 years agoBe slightly more explanatory about the work I've done on LLVM.
Reid Spencer [Sat, 30 Jun 2007 06:56:50 +0000 (06:56 +0000)]
Be slightly more explanatory about the work I've done on LLVM.

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

16 years agotest commit
Chris Lattner [Sat, 30 Jun 2007 06:53:56 +0000 (06:53 +0000)]
test commit

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

16 years ago(For Chris): Fix failure where we rejected compiling stubs when lazy compilation...
Evan Cheng [Sat, 30 Jun 2007 00:10:37 +0000 (00:10 +0000)]
(For Chris): Fix failure where we rejected compiling stubs when lazy compilation is disabled.

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

16 years agoRemove labels again
Anton Korobeynikov [Sat, 30 Jun 2007 00:00:57 +0000 (00:00 +0000)]
Remove labels again

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

16 years agoNew test.
Evan Cheng [Fri, 29 Jun 2007 23:17:15 +0000 (23:17 +0000)]
New test.

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