[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-12-18 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.24 - 1.25 --- Log message: Remove a call to Type::isSigned(). --- Diffs of the changes: (+1 -3) CppWriter.cpp |4 +--- 1 files changed, 1 insertion(+), 3 deletions(-) Index: llvm/tools/llvm2cpp/CppWriter.cpp diff -u

[llvm-commits] CVS: llvm/lib/Transforms/ExprTypeConvert.cpp

2006-12-18 Thread Reid Spencer
Changes in directory llvm/lib/Transforms: ExprTypeConvert.cpp updated: 1.115 - 1.116 --- Log message: Convert the last use of two-argument ConstantExpr::getCast into another form so we can remove that method from ConstantExpr. --- Diffs of the changes: (+3 -1) ExprTypeConvert.cpp |4

[llvm-commits] CVS: llvm/include/llvm/Constants.h

2006-12-18 Thread Reid Spencer
Changes in directory llvm/include/llvm: Constants.h updated: 1.108 - 1.109 --- Log message: Remove the two-argument (inferred cast) form of ConstantExpr::getCast now that its last uses have been removed. --- Diffs of the changes: (+0 -2) Constants.h |2 -- 1 files changed, 2

[llvm-commits] CVS: llvm/lib/VMCore/Instructions.cpp

2006-12-18 Thread Reid Spencer
Changes in directory llvm/lib/VMCore: Instructions.cpp updated: 1.55 - 1.56 --- Log message: Remove the createInferredCast methods now that their last uses have been removed. All casting is now explicit and not inferred by VMCore. --- Diffs of the changes: (+0 -14) Instructions.cpp | 14

[llvm-commits] CVS: llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp

2006-12-18 Thread Reid Spencer
Changes in directory llvm/lib/Transforms/Instrumentation: ProfilingUtils.cpp updated: 1.10 - 1.11 --- Log message: 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

Re: [llvm-commits] CVS: llvm/include/llvm/Constants.h

2006-12-18 Thread Jim Laskey
Did I miss a patch for llvm-gcc? Cheers, -- Jim On 18-Dec-06, at 4:19 AM, Reid Spencer wrote: Changes in directory llvm/include/llvm: Constants.h updated: 1.108 - 1.109 --- Log message: Remove the two-argument (inferred cast) form of ConstantExpr::getCast now that its last uses

Re: [llvm-commits] CVS: llvm/lib/CodeGen/IntrinsicLowering.cpp

2006-12-18 Thread Chris Lattner
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. Ah, ok, I get it now :)

Re: [llvm-commits] CVS: llvm/lib/Transforms/ExprTypeConvert.cpp

2006-12-18 Thread Chris Lattner
On Dec 18, 2006, at 12:16 AM, Reid Spencer wrote: Convert the last use of two-argument ConstantExpr::getCast into another form so we can remove that method from ConstantExpr. --- Diffs of the changes: (+3 -1) ExprTypeConvert.cpp |4 +++- 1 files changed, 3 insertions(+), 1

Re: [llvm-commits] CVS: llvm/lib/Transforms/ExprTypeConvert.cpp

2006-12-18 Thread Reid Spencer
On Mon, 2006-12-18 at 08:56 -0800, Chris Lattner wrote: On Dec 18, 2006, at 12:16 AM, Reid Spencer wrote: Convert the last use of two-argument ConstantExpr::getCast into another form so we can remove that method from ConstantExpr. --- Diffs of the changes: (+3 -1)

[llvm-commits] [llvm-gcc] CastFix For PPC (untested)

2006-12-18 Thread Reid Spencer
Jim, Attached is the casting fix for gcc/config/rs6000/rs6000.h. As I don't have a Mac here, I can't even compile this. Could you please compile and test it, and submit a new version of the patch back to llvm-commits if there are any necessary adjustments? Thanks, Reid. Index:

[llvm-commits] [llvm-commit][llvm-gcc]Patches from Scott Michel to build on older system

2006-12-18 Thread Jim Laskey
Index: gcc/config/darwin.h === --- gcc/config/darwin.h (revision 121525) +++ gcc/config/darwin.h (working copy) @@ -433,8 +433,8 @@ %{Zinit*:-init %*} \ /* APPLE LOCAL mainline 2005-09-01 3449986 */\

[llvm-commits] [llvm-commit][llvm-gcc]Merge of Reid's changes for cast changes.

2006-12-18 Thread Jim Laskey
Combined.patch Description: Binary data smime.p7s Description: S/MIME cryptographic signature ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Re: [llvm-commits] CVS: llvm/lib/VMCore/Verifier.cpp

2006-12-18 Thread Bill Wendling
On 12/18/06, Reid Spencer [EMAIL PROTECTED] wrote: -if (Bad) { +if (!Bad) { Bad = false; Isn't the above statement not needed then? -bw for (pred_iterator PI = pred_begin(OpBlock), E = pred_end(OpBlock); PI != E;

Re: [llvm-commits] [llvm-gcc] Cast Fix

2006-12-18 Thread Reid Spencer
On Mon, 2006-12-18 at 14:50 -0800, Chris Lattner wrote: On Dec 18, 2006, at 11:25 AM, Reid Spencer wrote: All, This patch is needed to update llvm-gcc to avoid inferred casts as LLVM no longer supports them. This patch is sufficient for getting llvm- gcc to compile/work for an

Re: [llvm-commits] CVS: llvm/lib/VMCore/Verifier.cpp

2006-12-18 Thread Reid Spencer
On Mon, 2006-12-18 at 14:14 -0800, Bill Wendling wrote: On 12/18/06, Reid Spencer [EMAIL PROTECTED] wrote: -if (Bad) { +if (!Bad) { Bad = false; Isn't the above statement not needed then? Yup. I'll remove it. -bw for

[llvm-commits] CVS: llvm/lib/VMCore/Verifier.cpp

2006-12-18 Thread Reid Spencer
Changes in directory llvm/lib/VMCore: Verifier.cpp updated: 1.175 - 1.176 --- Log message: Remove a useless statement. --- Diffs of the changes: (+0 -1) Verifier.cpp |1 - 1 files changed, 1 deletion(-) Index: llvm/lib/VMCore/Verifier.cpp diff -u llvm/lib/VMCore/Verifier.cpp:1.175

Re: [llvm-commits] CVS: llvm/lib/VMCore/Verifier.cpp

2006-12-18 Thread Bill Wendling
On 12/18/06, Reid Spencer [EMAIL PROTECTED] wrote: On Mon, 2006-12-18 at 14:14 -0800, Bill Wendling wrote: On 12/18/06, Reid Spencer [EMAIL PROTECTED] wrote: -if (Bad) { +if (!Bad) { Bad = false; Isn't the above statement not needed then?

[llvm-commits] CVS: llvm/include/llvm/Support/MathExtras.h

2006-12-18 Thread Chris Lattner
Changes in directory llvm/include/llvm/Support: MathExtras.h updated: 1.36 - 1.37 --- Log message: Doxgenate comments. Add GreatestCommonDivisor64 --- Diffs of the changes: (+85 -75) MathExtras.h | 160 +++ 1 files changed, 85

[llvm-commits] CVS: llvm/lib/Analysis/ScalarEvolution.cpp

2006-12-18 Thread Chris Lattner
Changes in directory llvm/lib/Analysis: ScalarEvolution.cpp updated: 1.72 - 1.73 --- Log message: Fix a bug in GetConstantFactor for affine expressions, in which the existing code was wrong for things like 3+4*i. --- Diffs of the changes: (+9 -5) ScalarEvolution.cpp | 14 +-

[llvm-commits] CVS: llvm/include/llvm/Constants.h

2006-12-18 Thread Reid Spencer
Changes in directory llvm/include/llvm: Constants.h updated: 1.109 - 1.110 --- Log message: 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.

[llvm-commits] CVS: llvm/lib/VMCore/Constants.cpp

2006-12-18 Thread Reid Spencer
Changes in directory llvm/lib/VMCore: Constants.cpp updated: 1.189 - 1.190 --- Log message: 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.

[llvm-commits] ppc linux patch 2

2006-12-18 Thread Nick Lewycky
To GNU as, register classes are determined by context. This patch changes the asm printed to print just the register number alone on non-Darwin platforms. The getRegisterPrefix function might be a little too magical. I'd be happy to hear any suggestions. Nick Lewycky Index:

[llvm-commits] ppc linux patch 1

2006-12-18 Thread Nick Lewycky
I've done some work on a Linux subtarget for the PPC target. Since I can't test how these affect Darwin PPC, I'm going to email them here starting with little changes and building up. Note that I will not be submitting complete PPC/Linux support; this is just a start that someone else can

[llvm-commits] CVS: llvm/test/Regression/CodeGen/Generic/2003-05-27-phifcmpd.ll 2003-05-28-ManyArgs.ll 2003-07-06-BadIntCmp.ll 2003-07-29-BadConstSbyte.ll badCallArgLRLLVM.ll badarg6.ll badlive.ll

2006-12-18 Thread Reid Spencer
Changes in directory llvm/test/Regression/CodeGen/Generic: 2003-05-27-phifcmpd.ll updated: 1.3 - 1.4 2003-05-28-ManyArgs.ll updated: 1.4 - 1.5 2003-07-06-BadIntCmp.ll updated: 1.3 - 1.4 2003-07-29-BadConstSbyte.ll updated: 1.4 - 1.5 badCallArgLRLLVM.ll updated: 1.2 - 1.3 badarg6.ll updated: 1.3

[llvm-commits] CVS: llvm/test/Regression/ExecutionEngine/2003-01-04-LoopTest.ll 2003-06-04-bzip2-bug.ll test-branch.ll test-cast.ll test-loop.ll test-setcond-int.ll

2006-12-18 Thread Reid Spencer
Changes in directory llvm/test/Regression/ExecutionEngine: 2003-01-04-LoopTest.ll updated: 1.2 - 1.3 2003-06-04-bzip2-bug.ll updated: 1.2 - 1.3 test-branch.ll updated: 1.6 - 1.7 test-cast.ll updated: 1.11 - 1.12 test-loop.ll updated: 1.2 - 1.3 test-setcond-int.ll updated: 1.5 - 1.6 --- Log

[llvm-commits] CVS: llvm/test/Regression/Linker/2003-04-26-NullPtrLinkProblem.ll

2006-12-18 Thread Reid Spencer
Changes in directory llvm/test/Regression/Linker: 2003-04-26-NullPtrLinkProblem.ll updated: 1.3 - 1.4 --- Log message: For PR950: http://llvm.org/PR950 : Upgrade this test in preparation for the SETCC patch. --- Diffs of the changes: (+1 -1) 2003-04-26-NullPtrLinkProblem.ll |2 +- 1

[llvm-commits] CVS: llvm/test/Regression/Transforms/GlobalOpt/2006-07-07-InlineAsmCrash.ll

2006-12-18 Thread Reid Spencer
Changes in directory llvm/test/Regression/Transforms/GlobalOpt: 2006-07-07-InlineAsmCrash.ll updated: 1.1 - 1.2 --- Log message: For PR950: http://llvm.org/PR950 : Upgrade this test in preparation for the SETCC patch. --- Diffs of the changes: (+1 -1) 2006-07-07-InlineAsmCrash.ll |2

[llvm-commits] CVS: llvm/test/Regression/Transforms/IndVarsSimplify/tripcount_infinite.llx

2006-12-18 Thread Reid Spencer
Changes in directory llvm/test/Regression/Transforms/IndVarsSimplify: tripcount_infinite.llx updated: 1.2 - 1.3 --- Log message: For PR950: http://llvm.org/PR950 : Upgrade this test in preparation for the SETCC patch. --- Diffs of the changes: (+2 -2) tripcount_infinite.llx |4 ++-- 1

[llvm-commits] CVS: llvm/test/Regression/Transforms/IndVarsSimplify/tripcount_infinite.llx

2006-12-18 Thread Reid Spencer
Changes in directory llvm/test/Regression/Transforms/IndVarsSimplify: tripcount_infinite.llx updated: 1.3 - 1.4 --- Log message: Back out last revision, a bit premature, its not an upgrade-only change. --- Diffs of the changes: (+2 -2) tripcount_infinite.llx |4 ++-- 1 files changed,

[llvm-commits] CVS: llvm/lib/VMCore/ConstantFolding.cpp

2006-12-18 Thread Reid Spencer
Changes in directory llvm/lib/VMCore: ConstantFolding.cpp updated: 1.116 - 1.117 --- Log message: 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

Re: [llvm-commits] CVS: llvm/lib/VMCore/ConstantFolding.cpp

2006-12-18 Thread Chris Lattner
On Dec 18, 2006, at 7:16 PM, Reid Spencer wrote: 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. Nice! case Instruction::UIToFP: {

Re: [llvm-commits] [llvm-gcc] Cast Fix

2006-12-18 Thread Chris Lattner
You're basing all of the checks here on whether or not the LLVM types are signed. I understand that this is the most expedient way to get stuff working in the short term, but this isn't going to work long term, as the -isSigned() methods are not going to exist any more. You should eventually

Re: [llvm-commits] SETCC Patches #2

2006-12-18 Thread Chris Lattner
It would be better to split up the EqualTo predicate here so that there was one for FP and one for integers. When the FP part of this lands, you'll want Unordered Equal and LessThan instead of just LessThan + Equal. Okay, good idea. Could you please review the CF.patch file which is attached.

[llvm-commits] CVS: llvm/lib/VMCore/ConstantFolding.cpp

2006-12-18 Thread Reid Spencer
Changes in directory llvm/lib/VMCore: ConstantFolding.cpp updated: 1.117 - 1.118 --- Log message: Clean up ConstantFoldCastInstruction. --- Diffs of the changes: (+30 -53) ConstantFolding.cpp | 83 ++-- 1 files changed, 30 insertions(+),