oota-llvm.git
17 years agoPartly fixed JITing on mingw32 platform. The support is not full due to
Anton Korobeynikov [Tue, 19 Dec 2006 15:24:18 +0000 (15:24 +0000)]
Partly fixed JITing on mingw32 platform. The support is not full due to
absence of dllimport JIT codegen.

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

17 years agoClean up ConstantFoldCastInstruction.
Reid Spencer [Tue, 19 Dec 2006 07:41:40 +0000 (07:41 +0000)]
Clean up ConstantFoldCastInstruction.

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

17 years agoRewrite ConstantFoldCastInstruction so that it doesn't use any of the
Reid Spencer [Tue, 19 Dec 2006 03:15:47 +0000 (03:15 +0000)]
Rewrite ConstantFoldCastInstruction so that it doesn't use any of the
ConstRules. Remove the casting rules from ConstRules and subclasses. This
cleans up ConstantFolding significantly. Passes all tests.

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

17 years agoBack out last revision, a bit premature, its not an upgrade-only change.
Reid Spencer [Tue, 19 Dec 2006 02:17:23 +0000 (02:17 +0000)]
Back out last revision, a bit premature, its not an upgrade-only change.

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

17 years agoFor PR950:
Reid Spencer [Tue, 19 Dec 2006 02:14:08 +0000 (02:14 +0000)]
For PR950:
Upgrade this test in preparation for the SETCC patch.

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

17 years agoFor PR950:
Reid Spencer [Tue, 19 Dec 2006 02:09:20 +0000 (02:09 +0000)]
For PR950:
These tests need to be upgraded in preparation for the SETCC patch.

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

17 years agoThis test needs to be upgraded in preparation for the SETCC patch.
Reid Spencer [Tue, 19 Dec 2006 02:07:11 +0000 (02:07 +0000)]
This test needs to be upgraded in preparation for the SETCC patch.

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

17 years agoThis test needs to be upgraded.
Reid Spencer [Tue, 19 Dec 2006 02:03:04 +0000 (02:03 +0000)]
This test needs to be upgraded.

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

17 years agoMay need to promote the operand (either sign_extend_inreg or and) before
Evan Cheng [Tue, 19 Dec 2006 01:44:04 +0000 (01:44 +0000)]
May need to promote the operand (either sign_extend_inreg or and) before
expanding a {s|u}int_to_fp.

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

17 years agoCorrect the description of ConstantInt::isValueValidForType.
Reid Spencer [Tue, 19 Dec 2006 01:34:39 +0000 (01:34 +0000)]
Correct the description of ConstantInt::isValueValidForType.

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

17 years agoMake ConstantInt not care about sign any more. To ensure the AsmParser can
Reid Spencer [Tue, 19 Dec 2006 01:28:19 +0000 (01:28 +0000)]
Make ConstantInt not care about sign any more. To ensure the AsmParser can
still check the validity of signed values an overload to isValueValidForType
was added to allow passing in an int64_t to check.

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

17 years agoFix a bug in GetConstantFactor for affine expressions, in which the existing
Chris Lattner [Tue, 19 Dec 2006 01:16:02 +0000 (01:16 +0000)]
Fix a bug in GetConstantFactor for affine expressions, in which the existing
code was wrong for things like 3+4*i.

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

17 years agoDoxgenate comments.
Chris Lattner [Tue, 19 Dec 2006 01:11:32 +0000 (01:11 +0000)]
Doxgenate comments.
Add GreatestCommonDivisor64

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

17 years agoRemove a useless statement.
Reid Spencer [Mon, 18 Dec 2006 23:40:19 +0000 (23:40 +0000)]
Remove a useless statement.

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

17 years agoLegalizeSetCCOperands() may end up inserting libcalls. They need to be
Evan Cheng [Mon, 18 Dec 2006 22:55:34 +0000 (22:55 +0000)]
LegalizeSetCCOperands() may end up inserting libcalls. They need to be
properly serialized. Do not clear LastCallSEQ_END until that is done.

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

17 years agoRemoved llvm_ostream and used std::ostream instead.
Bill Wendling [Mon, 18 Dec 2006 21:59:00 +0000 (21:59 +0000)]
Removed llvm_ostream and used std::ostream instead.

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

17 years agoFor PR1042:
Reid Spencer [Mon, 18 Dec 2006 21:56:29 +0000 (21:56 +0000)]
For PR1042:
Fix a thinko. We want to check the second case if the first cast *didn't*
trigger.

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

17 years agomacros -> Inline functions
Rafael Espindola [Mon, 18 Dec 2006 11:07:09 +0000 (11:07 +0000)]
macros -> Inline functions
Lauros's patch

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

17 years agoRemove the createInferredCast methods now that their last uses have been
Reid Spencer [Mon, 18 Dec 2006 08:52:59 +0000 (08:52 +0000)]
Remove the createInferredCast methods now that their last uses have been
removed. All casting is now explicit and not inferred by VMCore.

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

17 years agoConvert the last uses of CastInst::createInferredCast to a normal cast
Reid Spencer [Mon, 18 Dec 2006 08:47:13 +0000 (08:47 +0000)]
Convert the last uses of CastInst::createInferredCast to a normal cast
creation. These changes are still temporary but at least this pushes
knowledge of signedness out closer to where it can be determined properly
and allows signedness to be removed from VMCore.

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

17 years agoRemove the two-argument (inferred cast) form of ConstantExpr::getCast now
Reid Spencer [Mon, 18 Dec 2006 08:18:46 +0000 (08:18 +0000)]
Remove the two-argument (inferred cast) form of ConstantExpr::getCast now
that its last uses have been removed.

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

17 years agoConvert the last use of two-argument ConstantExpr::getCast into another
Reid Spencer [Mon, 18 Dec 2006 08:16:27 +0000 (08:16 +0000)]
Convert the last use of two-argument ConstantExpr::getCast into another
form so we can remove that method from ConstantExpr.

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

17 years agoRemove a call to Type::isSigned().
Reid Spencer [Mon, 18 Dec 2006 07:58:01 +0000 (07:58 +0000)]
Remove a call to Type::isSigned().

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

17 years agoRevert last patch. ConstantInt isn't quite ready for signlessness.
Reid Spencer [Mon, 18 Dec 2006 04:22:56 +0000 (04:22 +0000)]
Revert last patch. ConstantInt isn't quite ready for signlessness.

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

17 years agoDetermine if the -enable-pic option was given.
Reid Spencer [Mon, 18 Dec 2006 04:11:16 +0000 (04:11 +0000)]
Determine if the -enable-pic option was given.

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

17 years agomove ExtWeakSymbols to AsmPrinter
Rafael Espindola [Mon, 18 Dec 2006 03:37:18 +0000 (03:37 +0000)]
move ExtWeakSymbols to AsmPrinter

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

17 years agoAdd a couple little tests for SExt/ZExt of constants of a sign that doesn't
Reid Spencer [Mon, 18 Dec 2006 01:11:46 +0000 (01:11 +0000)]
Add a couple little tests for SExt/ZExt of constants of a sign that doesn't
match.

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

17 years agoRemove the last use of getUnsignedVersion and getSignedVersion from VMCore.
Reid Spencer [Mon, 18 Dec 2006 01:11:03 +0000 (01:11 +0000)]
Remove the last use of getUnsignedVersion and getSignedVersion from VMCore.
ConstantInt doesn't care about the sign of the type it represents. It only
cares about the bitwidth so there is no need to make the sign of the type
match the SExt or ZExt constant expression.

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

17 years agoRemove some clutter and make it keep going instead of stopping at the
Reid Spencer [Mon, 18 Dec 2006 00:37:37 +0000 (00:37 +0000)]
Remove some clutter and make it keep going instead of stopping at the
first difference.

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

17 years agoFix PR1057 (compilation on macos 10.3), patch by Scott Michel!
Chris Lattner [Sun, 17 Dec 2006 21:04:02 +0000 (21:04 +0000)]
Fix PR1057 (compilation on macos 10.3), patch by Scott Michel!

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

17 years agoUse a predicate function to identify bitcast of fp and integer instead of
Reid Spencer [Sun, 17 Dec 2006 20:24:50 +0000 (20:24 +0000)]
Use a predicate function to identify bitcast of fp and integer instead of
repeating the logic in two different parts of the code.

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

17 years agoFix PR1058:
Reid Spencer [Sun, 17 Dec 2006 18:50:51 +0000 (18:50 +0000)]
Fix PR1058:
Generate the BITCAST_TEMPORARY regardless of the uses or inlinability of
the instruction. This temporary is needed to perform the instruction, not
provide storage for its results.

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

17 years agoAdded example of how to code print() methods so that they will disappear
Bill Wendling [Sun, 17 Dec 2006 11:40:40 +0000 (11:40 +0000)]
Added example of how to code print() methods so that they will disappear
from the code if "cnull" is passed into them.

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

17 years agoFixed so that it dereferences the ostream pointer.
Bill Wendling [Sun, 17 Dec 2006 11:15:53 +0000 (11:15 +0000)]
Fixed so that it dereferences the ostream pointer.

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

17 years agoAccidental submission.
Bill Wendling [Sun, 17 Dec 2006 11:13:13 +0000 (11:13 +0000)]
Accidental submission.

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

17 years agoThis snuck in. Reverted.
Bill Wendling [Sun, 17 Dec 2006 11:11:10 +0000 (11:11 +0000)]
This snuck in. Reverted.

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

17 years agoFix problems in the CBE and InstructionCombining which use the isMaxValue
Reid Spencer [Sun, 17 Dec 2006 06:07:30 +0000 (06:07 +0000)]
Fix problems in the CBE and InstructionCombining which use the isMaxValue
and isMinValue methods of ConstantInt. These have been broken since the
isSigned parameter was added. It is necessary to use the signed version
of the type in the call to isValueValidForType or else incorrect results
are returned.

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

17 years agoAdded an automatic cast to "std::ostream*" etc. from OStream. We then can
Bill Wendling [Sun, 17 Dec 2006 05:15:13 +0000 (05:15 +0000)]
Added an automatic cast to "std::ostream*" etc. from OStream. We then can
rework the hacks that had us passing OStream in. We pass in std::ostream*
instead, check for null, and then dispatch to the correct print() method.

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

17 years agoAllow an --enable-pic option to turn on -fPIC compiler option when building.
Reid Spencer [Sat, 16 Dec 2006 22:07:52 +0000 (22:07 +0000)]
Allow an --enable-pic option to turn on -fPIC compiler option when building.
The default is disabled until we know this doesn't break anyone.

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

17 years agowhen inserting a dummy argument to work-around the CBE not supporting
Chris Lattner [Sat, 16 Dec 2006 21:21:53 +0000 (21:21 +0000)]
when inserting a dummy argument to work-around the CBE not supporting
zero arg vararg functions, pass undef instead of 'int 0', which is cheaper.

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

17 years agoFix PR1049 and CodeGen/Generic/2006-12-16-InlineAsmCrash.ll
Chris Lattner [Sat, 16 Dec 2006 21:14:48 +0000 (21:14 +0000)]
Fix PR1049 and CodeGen/Generic/2006-12-16-InlineAsmCrash.ll
by producing target constants instead of constants.  Constants can get
selected to li/movri instructions, which causes the scheduler to explode.

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

17 years agotestcase for pr1049
Chris Lattner [Sat, 16 Dec 2006 21:12:49 +0000 (21:12 +0000)]
testcase for pr1049

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

17 years agoFix one more broken testcase
Chris Lattner [Sat, 16 Dec 2006 20:27:43 +0000 (20:27 +0000)]
Fix one more broken testcase

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

17 years agoApply B. Scott Michel's patch for PR1054, thanks!
Chris Lattner [Sat, 16 Dec 2006 20:23:42 +0000 (20:23 +0000)]
Apply B. Scott Michel's patch for PR1054, thanks!

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

17 years agoCannot combine an indexed load / store any further.
Evan Cheng [Sat, 16 Dec 2006 06:25:23 +0000 (06:25 +0000)]
Cannot combine an indexed load / store any further.

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

17 years agoTypo.
Evan Cheng [Sat, 16 Dec 2006 06:21:55 +0000 (06:21 +0000)]
Typo.

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

17 years agoFix borken testcase
Chris Lattner [Sat, 16 Dec 2006 02:30:24 +0000 (02:30 +0000)]
Fix borken testcase

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

17 years agofix buggy testcase
Chris Lattner [Sat, 16 Dec 2006 02:29:22 +0000 (02:29 +0000)]
fix buggy testcase

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

17 years agotestcases for PR1042
Chris Lattner [Sat, 16 Dec 2006 02:26:57 +0000 (02:26 +0000)]
testcases for PR1042

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

17 years agoFix PR1042, by tightening up the subtle rules with invoke value use.
Chris Lattner [Sat, 16 Dec 2006 02:25:35 +0000 (02:25 +0000)]
Fix PR1042, by tightening up the subtle rules with invoke value use.

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

17 years agoExpand FP undef
Evan Cheng [Sat, 16 Dec 2006 02:20:50 +0000 (02:20 +0000)]
Expand FP undef

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

17 years agoThe best unbreakage yet, addressing Bill's concerns.
Jeff Cohen [Sat, 16 Dec 2006 02:15:42 +0000 (02:15 +0000)]
The best unbreakage yet, addressing Bill's concerns.

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

17 years agoAllow promoted FP_TO_UINT / FP_TO_SINT to expand operand.
Evan Cheng [Sat, 16 Dec 2006 02:10:30 +0000 (02:10 +0000)]
Allow promoted FP_TO_UINT / FP_TO_SINT to expand operand.

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

17 years agoAdd getNumContainedPasses() and getContainedPass() inteface and use
Devang Patel [Sat, 16 Dec 2006 00:56:26 +0000 (00:56 +0000)]
Add getNumContainedPasses() and getContainedPass() inteface and use
it instead of passVectorBegin/End().

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

17 years agoExpand fabs / fneg to and / xor.
Evan Cheng [Sat, 16 Dec 2006 00:52:40 +0000 (00:52 +0000)]
Expand fabs / fneg to and / xor.

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

17 years agoCosmetic changes, based on Chris's review.
Devang Patel [Fri, 15 Dec 2006 22:57:49 +0000 (22:57 +0000)]
Cosmetic changes, based on Chris's review.

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

17 years agoAn even better unbreakage...
Jeff Cohen [Fri, 15 Dec 2006 22:57:14 +0000 (22:57 +0000)]
An even better unbreakage...

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

17 years agoFix select_cc, select expansion to soft-fp bugs.
Evan Cheng [Fri, 15 Dec 2006 22:42:55 +0000 (22:42 +0000)]
Fix select_cc, select expansion to soft-fp bugs.

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

17 years agoComplete unbreak of VC++ (Chris identified the simple fix).
Jeff Cohen [Fri, 15 Dec 2006 22:06:08 +0000 (22:06 +0000)]
Complete unbreak of VC++ (Chris identified the simple fix).

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

17 years agoPartial unbreak of VC++ (stream stuff has no easy fix).
Jeff Cohen [Fri, 15 Dec 2006 21:47:01 +0000 (21:47 +0000)]
Partial unbreak of VC++ (stream stuff has no easy fix).

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

17 years agoRemove an extraneous { at the end of a block.
Reid Spencer [Fri, 15 Dec 2006 21:46:37 +0000 (21:46 +0000)]
Remove an extraneous { at the end of a block.

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

17 years agoPatterns no longer needed due to fix in the DAG combiner.
Jim Laskey [Fri, 15 Dec 2006 21:39:31 +0000 (21:39 +0000)]
Patterns no longer needed due to fix in the DAG combiner.

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

17 years agoThis code was usurping the sextload expand in teh legalizer. Just make
Jim Laskey [Fri, 15 Dec 2006 21:38:30 +0000 (21:38 +0000)]
This code was usurping the sextload expand in teh legalizer.  Just make
sure the right conditions are checked.

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

17 years agoMark dump* routines const routines.
Devang Patel [Fri, 15 Dec 2006 20:13:01 +0000 (20:13 +0000)]
Mark dump* routines const routines.

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

17 years agoSome AT&T syntax assembler (e.g. Mac OS X) does not recognize the movq alias for...
Evan Cheng [Fri, 15 Dec 2006 19:58:58 +0000 (19:58 +0000)]
Some AT&T syntax assembler (e.g. Mac OS X) does not recognize the movq alias for i64 <-> XMM moves.

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

17 years agoFix long standing issue with propagating error message back to caller. This
Reid Spencer [Fri, 15 Dec 2006 19:49:23 +0000 (19:49 +0000)]
Fix long standing issue with propagating error message back to caller. This
has been a problem since exceptions were removed from the BytecodeReader.
Error messages are now captured from ModuleProvider::releaseModule as well
as after a longjmp.

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

17 years agoFor PR1050:
Reid Spencer [Fri, 15 Dec 2006 19:44:51 +0000 (19:44 +0000)]
For PR1050:
Convert asserts into error messages.

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

17 years agoMove PMTopLevelManager and TImingInfo into anon namespace.
Devang Patel [Fri, 15 Dec 2006 19:39:30 +0000 (19:39 +0000)]
Move PMTopLevelManager and TImingInfo into anon namespace.

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

17 years agoNot all test cases are created equal. This fix is needed.
Jim Laskey [Fri, 15 Dec 2006 18:51:01 +0000 (18:51 +0000)]
Not all test cases are created equal.  This fix is needed.

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

17 years agoNot needed. Misinterpreted error message from other bug (Missing load/store
Jim Laskey [Fri, 15 Dec 2006 18:45:32 +0000 (18:45 +0000)]
Not needed.  Misinterpreted error message from other bug (Missing load/store
relocations.)

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

17 years agoextern_weak linkage. fixes PR1038
Andrew Lenharth [Fri, 15 Dec 2006 17:35:32 +0000 (17:35 +0000)]
extern_weak linkage.  fixes PR1038

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

17 years agoextern_weak link test
Andrew Lenharth [Fri, 15 Dec 2006 17:34:37 +0000 (17:34 +0000)]
extern_weak link test

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

17 years agoMissing load/store relocations.
Jim Laskey [Fri, 15 Dec 2006 16:44:10 +0000 (16:44 +0000)]
Missing load/store relocations.

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

17 years agoProvide 64-bit support for i64 sextload<i8>.
Jim Laskey [Fri, 15 Dec 2006 14:34:11 +0000 (14:34 +0000)]
Provide 64-bit support for i64 sextload<i8>.

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

17 years agoProvide support for FP_TO_UINT.
Jim Laskey [Fri, 15 Dec 2006 14:32:57 +0000 (14:32 +0000)]
Provide support for FP_TO_UINT.

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

17 years agoPass html validation.
Jim Laskey [Fri, 15 Dec 2006 10:40:48 +0000 (10:40 +0000)]
Pass html validation.

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

17 years agosilence a bogus warning
Chris Lattner [Fri, 15 Dec 2006 07:36:19 +0000 (07:36 +0000)]
silence a bogus warning

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

17 years agoreenable these
Chris Lattner [Fri, 15 Dec 2006 07:32:49 +0000 (07:32 +0000)]
reenable these

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

17 years agore-enable a temporarily-reverted patch
Chris Lattner [Fri, 15 Dec 2006 07:32:38 +0000 (07:32 +0000)]
re-enable a temporarily-reverted patch

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

17 years agoNew testcase for llvm-gcc bugfix
Chris Lattner [Fri, 15 Dec 2006 06:49:20 +0000 (06:49 +0000)]
New testcase for llvm-gcc bugfix

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

17 years agoMinor clean up.
Evan Cheng [Fri, 15 Dec 2006 06:41:01 +0000 (06:41 +0000)]
Minor clean up.

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

17 years agoSilly assertion. Forgot variable_ops instructions can have arbitrary number of
Evan Cheng [Fri, 15 Dec 2006 06:37:08 +0000 (06:37 +0000)]
Silly assertion. Forgot variable_ops instructions can have arbitrary number of
operands.

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

17 years agoThis is done.
Evan Cheng [Fri, 15 Dec 2006 05:50:39 +0000 (05:50 +0000)]
This is done.

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

17 years agoExpand FP compares to soft-fp call(s)
Evan Cheng [Fri, 15 Dec 2006 02:59:56 +0000 (02:59 +0000)]
Expand FP compares to soft-fp call(s)

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

17 years agos/ForcedLastUses/TransferLastUses/g
Devang Patel [Fri, 15 Dec 2006 00:08:26 +0000 (00:08 +0000)]
s/ForcedLastUses/TransferLastUses/g

Register pass has the its last user, otherwise sometimes no one will claim
LastUse.

Handle transferred last uses from child pass manager.

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

17 years agoSimplify the fetching of relocation mode.
Jim Laskey [Thu, 14 Dec 2006 22:53:42 +0000 (22:53 +0000)]
Simplify the fetching of relocation  mode.

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

17 years agof64 <-> i64 bit_convert using movq in 64-bit mode.
Evan Cheng [Thu, 14 Dec 2006 21:55:39 +0000 (21:55 +0000)]
f64 <-> i64 bit_convert using movq in 64-bit mode.

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

17 years agoFile missing from last check in.
Jim Laskey [Thu, 14 Dec 2006 21:03:17 +0000 (21:03 +0000)]
File missing from last check in.

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

17 years agoFix a couple of typo's.
Evan Cheng [Thu, 14 Dec 2006 19:46:06 +0000 (19:46 +0000)]
Fix a couple of typo's.

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

17 years agoThis is done.
Evan Cheng [Thu, 14 Dec 2006 19:45:32 +0000 (19:45 +0000)]
This is done.

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

17 years agoAdded MOVSS2DIrr and MOVDI2SSrr to foldMemeoryOperand().
Evan Cheng [Thu, 14 Dec 2006 19:44:45 +0000 (19:44 +0000)]
Added MOVSS2DIrr and MOVDI2SSrr to foldMemeoryOperand().

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

17 years ago- Rename MOVDSS2DIrr to MOVSS2DIrr for consistency sake.
Evan Cheng [Thu, 14 Dec 2006 19:43:11 +0000 (19:43 +0000)]
- Rename MOVDSS2DIrr to MOVSS2DIrr for consistency sake.
- Add MOVDI2SSrm and MOVSS2DImr to fold load / store for i32 <-> f32 bit_convert
  patterns.

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

17 years ago1. Tidy up jump table info.
Jim Laskey [Thu, 14 Dec 2006 19:17:33 +0000 (19:17 +0000)]
1. Tidy up jump table info.
2. Allow the jit to handle PIC relocable jump tables.

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

17 years agoavoid using a constant table when a constant can be used inline
Rafael Espindola [Thu, 14 Dec 2006 18:58:37 +0000 (18:58 +0000)]
avoid using a constant table when a constant can be used inline

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

17 years agorandom minor typographical changes
Chris Lattner [Thu, 14 Dec 2006 18:22:14 +0000 (18:22 +0000)]
random minor typographical changes

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

17 years agoStart of PowerPC info.
Jim Laskey [Thu, 14 Dec 2006 17:19:50 +0000 (17:19 +0000)]
Start of PowerPC info.

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

17 years agoAvoid creating invalid sub/add instructions on the prolog/epilog
Rafael Espindola [Thu, 14 Dec 2006 13:31:27 +0000 (13:31 +0000)]
Avoid creating invalid sub/add instructions on the prolog/epilog
patch by Lauro

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

17 years agoFix a long-standing spiller bug:
Evan Cheng [Thu, 14 Dec 2006 07:54:05 +0000 (07:54 +0000)]
Fix a long-standing spiller bug:
If a spillslot value is available in a register, and there is a noop copy that
targets that register, the spiller correctly decide not to invalidate the
spillslot register.

However, even though the noop copy does not clobbers the value. It does start a
new intersecting live range. That means the spillslot register is available for
use but should not be reused for a two-address instruction modref operand which
would clobber the new live range.

When we remove the noop copy, update the available information by clearing the
canClobber bit.

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

17 years agoAdd -time-passes support.
Devang Patel [Thu, 14 Dec 2006 00:59:42 +0000 (00:59 +0000)]
Add -time-passes support.

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

17 years agoAdd debug-pass=Details support to print Required and Preserved Set info.
Devang Patel [Thu, 14 Dec 2006 00:25:06 +0000 (00:25 +0000)]
Add debug-pass=Details support to print Required and Preserved Set info.

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