[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelLowering.cpp

2007-02-26 Thread Chris Lattner
Changes in directory llvm/lib/Target/X86: X86ISelLowering.cpp updated: 1.340 -> 1.341 --- Log message: switch to smallvector --- Diffs of the changes: (+1 -3) X86ISelLowering.cpp |4 +--- 1 files changed, 1 insertion(+), 3 deletions(-) Index: llvm/lib/Target/X86/X86ISelLowering.cpp d

[llvm-commits] CVS: llvm/lib/Support/APInt.cpp

2007-02-26 Thread Reid Spencer
Changes in directory llvm/lib/Support: APInt.cpp updated: 1.47 -> 1.48 --- Log message: Re-enable this. The header was committed. --- Diffs of the changes: (+0 -4) APInt.cpp |4 1 files changed, 4 deletions(-) Index: llvm/lib/Support/APInt.cpp diff -u llvm/lib/Support/APInt.cpp:

[llvm-commits] [124234] Change LLVM_TARGET_INTRINSIC_LOWER to not implicitly return.

2007-02-26 Thread clattner
Revision: 124234 Author: clattner Date: 2007-02-23 20:15:35 -0800 (Fri, 23 Feb 2007) Log Message: --- Change LLVM_TARGET_INTRINSIC_LOWER to not implicitly return. Change LLVM_TARGET_INTRINSIC_LOWER to pass in the exp of the call. Change llvm-i386.c to emit an error on a bogus _mm_shu

[llvm-commits] CVS: llvm/include/llvm/ADT/APInt.h

2007-02-26 Thread Reid Spencer
Changes in directory llvm/include/llvm/ADT: APInt.h updated: 1.21 -> 1.22 --- Log message: Implement inline methods that make transition of ConstantInt to use APInt easier to comprehend and might be useful elsewhere. --- Diffs of the changes: (+38 -2) APInt.h | 40 +++

[llvm-commits] CVS: llvm/lib/Target/X86/X86CallingConv.td X86.td

2007-02-26 Thread Chris Lattner
Changes in directory llvm/lib/Target/X86: X86CallingConv.td added (r1.1) X86.td updated: 1.28 -> 1.29 --- Log message: Add a description of the X86-64 calling convention and the return conventions. This doesn't do anything yet, but may in the future. --- Diffs of the changes: (+143 -0) X8

[llvm-commits] ConstantInt Patch

2007-02-26 Thread Reid Spencer
Hi, I would like to commit this small patch but thought I should send it out first. This changes ConstantInt to use an APInt object as its value instead of a uint64_t. The interface to ConstantInt still uses uint64_t so the APInt is just being used as a glorified uint64_t as all bit widths are <=

[llvm-commits] CVS: llvm/lib/Target/X86/X86CallingConv.td

2007-02-26 Thread Chris Lattner
Changes in directory llvm/lib/Target/X86: X86CallingConv.td updated: 1.1 -> 1.2 --- Log message: fix attribution --- Diffs of the changes: (+1 -1) X86CallingConv.td |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Target/X86/X86CallingConv.td diff -u llvm/lib/Tar

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

2007-02-26 Thread Devang Patel
Changes in directory llvm/lib/Transforms/Scalar: LoopUnswitch.cpp updated: 1.61 -> 1.62 --- Log message: Do not unswitch loop on same value again and again. --- Diffs of the changes: (+7 -0) LoopUnswitch.cpp |7 +++ 1 files changed, 7 insertions(+) Index: llvm/lib/Transforms/Sca

[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCISelLowering.cpp PPCInstrInfo.td

2007-02-26 Thread Chris Lattner
Changes in directory llvm/lib/Target/PowerPC: PPCISelLowering.cpp updated: 1.256 -> 1.257 PPCInstrInfo.td updated: 1.274 -> 1.275 --- Log message: always lower to RETFLAG, never leave it as just ret. --- Diffs of the changes: (+7 -11) PPCISelLowering.cpp | 15 +++ PPCInstrInf

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

2007-02-26 Thread Devang Patel
Changes in directory llvm/lib/Transforms/Scalar: LoopUnswitch.cpp updated: 1.62 -> 1.63 --- Log message: Use efficient container SmallPtrSet --- Diffs of the changes: (+4 -3) LoopUnswitch.cpp |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) Index: llvm/lib/Transforms/Scal

Re: [llvm-commits] ConstantInt Patch

2007-02-26 Thread Reid Spencer
Chris, Here is round two. This is a slightly larger patch that also includes the following changes: * APInt::getValue() -> getSExtValue() and getZExtValue() * const APInt& ConstantInt::getValue() const { return Val; } * ConstantInt::get(const Type*, const APInt&) * APInt c

[llvm-commits] CVS: llvm/include/llvm/ADT/APInt.h

2007-02-26 Thread Reid Spencer
Changes in directory llvm/include/llvm/ADT: APInt.h updated: 1.22 -> 1.23 --- Log message: 1. Split getValue() into getSExtValue() and getZExtValue() to match ConstantInt better. 2. Add a getHashValue() method. --- Diffs of the changes: (+25 -9) APInt.h | 34 +-

[llvm-commits] CVS: llvm/lib/Support/APInt.cpp

2007-02-26 Thread Reid Spencer
Changes in directory llvm/lib/Support: APInt.cpp updated: 1.48 -> 1.49 --- Log message: Implement the getHashValue method. Fix toString use of getValue to use getZExtValue() --- Diffs of the changes: (+16 -1) APInt.cpp | 17 - 1 files changed, 16 insertions(+), 1 deletion

[llvm-commits] CVS: llvm/include/llvm/ADT/APInt.h

2007-02-26 Thread Reid Spencer
Changes in directory llvm/include/llvm/ADT: APInt.h updated: 1.23 -> 1.24 --- Log message: Fix indentation. --- Diffs of the changes: (+1 -1) APInt.h |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/include/llvm/ADT/APInt.h diff -u llvm/include/llvm/ADT/APInt.h:1.23

[llvm-commits] [124163] Backport mingw32 support from FSF GCC mainline.

2007-02-26 Thread dpatel
Revision: 124163 Author: dpatel Date: 2007-02-21 12:19:03 -0800 (Wed, 21 Feb 2007) Log Message: --- Backport mingw32 support from FSF GCC mainline. This patch is prepared by Anton Korobeynikov. Modified Paths: -- apple-local/branches/llvm/gcc/config/i386/cygming.h

[llvm-commits] [124325] llvm_get_type cannot be extern inline since it' s externally referenced.

2007-02-26 Thread echeng
Revision: 124325 Author: echeng Date: 2007-02-26 13:23:54 -0800 (Mon, 26 Feb 2007) Log Message: --- llvm_get_type cannot be extern inline since it's externally referenced. Modified Paths: -- apple-local/branches/llvm/gcc/llvm-types.cpp Modified: apple-local/branches

[llvm-commits] [see] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp

2007-02-26 Thread Andrew Lenharth
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.536.2.1.2.2 -> 1.536.2.1.2.3 --- Log message: This happens a lot in the kernel. Getting rid of the int to ptr casts really helps DSA --- Diffs of the changes: (+11 -0) InstructionCombining.cpp | 11

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

2007-02-26 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen: LiveIntervalAnalysis.cpp updated: 1.215 -> 1.216 --- Log message: Joining an interval with a dead copy instruction. Shorten the live range to the last use. --- Diffs of the changes: (+46 -20) LiveIntervalAnalysis.cpp | 66 +++

[llvm-commits] CVS: llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h

2007-02-26 Thread Evan Cheng
Changes in directory llvm/include/llvm/CodeGen: LiveIntervalAnalysis.h updated: 1.74 -> 1.75 --- Log message: Joining an interval with a dead copy instruction. Shorten the live range to the last use. --- Diffs of the changes: (+5 -3) LiveIntervalAnalysis.h |8 +--- 1 files changed,

Re: [llvm-commits] ConstantInt Patch #3

2007-02-26 Thread Reid Spencer
One more time .. This one avoids collisions in the IntConstants map by using APInt directly in the DenseMap. This was made possible by relaxing APInt::operator= and using a small structure for the key type so that we can do operator== correctly for APInt (handling different bit widths). This pass

Re: [llvm-commits] ConstantInt Patch #3

2007-02-26 Thread Chris Lattner
On Feb 26, 2007, at 3:09 PM, Reid Spencer wrote: > This one avoids collisions in the IntConstants map by using APInt > directly in the DenseMap. This was made possible by relaxing > APInt::operator= and using a small structure for the key type so > that we > can do operator== correctly for APInt

Re: [llvm-commits] ConstantInt Patch #3

2007-02-26 Thread Chris Lattner
On Feb 26, 2007, at 3:15 PM, Chris Lattner wrote: > +return second == that.second && > +this->first.getBitWidth() == that.first.getBitWidth > () && > +this->first == that.first; > > If the 'second's match, how could the types not match. More coherently, you

[llvm-commits] CVS: llvm/lib/Support/APInt.cpp

2007-02-26 Thread Reid Spencer
Changes in directory llvm/lib/Support: APInt.cpp updated: 1.49 -> 1.50 --- Log message: 1. Make sure all delete operators of arrays use the array form of delete. 2. Rewrite operator=(const APInt& RHS) to allow the RHS to be a different bit width than the LHS. This makes it possible to use AP

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

2007-02-26 Thread Reid Spencer
Changes in directory llvm/lib/VMCore: Constants.cpp updated: 1.220 -> 1.221 --- Log message: For PR1205: http://llvm.org/PR1205 : Implement the first step towards arbitrary precision integer support in LLVM. The APInt class provides arbitrary precision arithmetic and value representation. This

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

2007-02-26 Thread Reid Spencer
Changes in directory llvm/include/llvm: Constants.h updated: 1.132 -> 1.133 --- Log message: For PR1205: http://llvm.org/PR1205 : Implement the first step towards arbitrary precision integer support in LLVM. The APInt class provides arbitrary precision arithmetic and value representation. This

[llvm-commits] CVS: llvm/lib/Support/APInt.cpp

2007-02-26 Thread Reid Spencer
Changes in directory llvm/lib/Support: APInt.cpp updated: 1.50 -> 1.51 --- Log message: Simplify and document RoundDoubleToAPInt. --- Diffs of the changes: (+15 -3) APInt.cpp | 18 +++--- 1 files changed, 15 insertions(+), 3 deletions(-) Index: llvm/lib/Support/APInt.cpp di

[llvm-commits] CVS: llvm/lib/CodeGen/PrologEpilogInserter.cpp RegisterScavenging.cpp

2007-02-26 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen: PrologEpilogInserter.cpp updated: 1.69 -> 1.70 RegisterScavenging.cpp updated: 1.3 -> 1.4 --- Log message: forward() should not increment internal iterator. Its client may insert instruction between now and next forward() call. --- Diffs of the changes:

[llvm-commits] CVS: llvm/include/llvm/CodeGen/RegisterScavenging.h

2007-02-26 Thread Evan Cheng
Changes in directory llvm/include/llvm/CodeGen: RegisterScavenging.h updated: 1.1 -> 1.2 --- Log message: forward() should not increment internal iterator. Its client may insert instruction between now and next forward() call. --- Diffs of the changes: (+6 -0) RegisterScavenging.h |6 +

[llvm-commits] CVS: llvm/test/Integer/a1.ll a1.ll.out a15.ll a15.ll.out a17.ll a17.ll.out a31.ll a31.ll.out a33.ll a33.ll.out a63.ll a63.ll.out a7.ll a7.ll.out a9.ll a9.ll.out

2007-02-26 Thread Reid Spencer
Changes in directory llvm/test/Integer: a1.ll updated: 1.4 -> 1.5 a1.ll.out updated: 1.3 -> 1.4 a15.ll updated: 1.4 -> 1.5 a15.ll.out updated: 1.3 -> 1.4 a17.ll updated: 1.4 -> 1.5 a17.ll.out updated: 1.3 -> 1.4 a31.ll updated: 1.4 -> 1.5 a31.ll.out updated: 1.3 -> 1.4 a33.ll updated: 1.4 -> 1.5

[llvm-commits] CVS: llvm/test/CodeGen/PowerPC/calls.ll

2007-02-26 Thread Reid Spencer
Changes in directory llvm/test/CodeGen/PowerPC: calls.ll updated: 1.3 -> 1.4 --- Log message: XFAIL this on x86-Linux until its fixed. --- Diffs of the changes: (+1 -0) calls.ll |1 + 1 files changed, 1 insertion(+) Index: llvm/test/CodeGen/PowerPC/calls.ll diff -u llvm/test/CodeGen/

[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.h PPCRegisterInfo.cpp PPCRegisterInfo.h

2007-02-26 Thread Evan Cheng
Changes in directory llvm/lib/Target/PowerPC: PPCMachineFunctionInfo.h updated: 1.3 -> 1.4 PPCRegisterInfo.cpp updated: 1.112 -> 1.113 PPCRegisterInfo.h updated: 1.29 -> 1.30 --- Log message: Backing out Jim's LR spill changes. This was causing llvm-gcc bootstrapping to infinite loop: PPCMachin

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

2007-02-26 Thread Chris Lattner
Changes in directory llvm/lib/VMCore: ConstantFold.cpp updated: 1.138 -> 1.139 Constants.cpp updated: 1.221 -> 1.222 ConstantFolding.h (r1.53) removed --- Log message: ConstantFolding.cpp/h -> ConstantFold.cpp/h to avoid confusion with lib/Analysis/ConstantFolding. --- Diffs of the changes:

[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelLowering.cpp

2007-02-26 Thread Chris Lattner
Changes in directory llvm/lib/Target/X86: X86ISelLowering.cpp updated: 1.341 -> 1.342 --- Log message: refactor x86-64 argument lowering yet again, this time eliminating templates, 'clients', etc, and adding CCValAssign instead. --- Diffs of the changes: (+179 -166) X86ISelLowering.cpp |

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

2007-02-26 Thread Chris Lattner
Changes in directory llvm/lib/CodeGen: CallingConvLower.cpp added (r1.1) --- Log message: move CC Lowering stuff to its own public interface --- Diffs of the changes: (+34 -0) CallingConvLower.cpp | 34 ++ 1 files changed, 34 insertions(+) Index: llvm/li

[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelLowering.cpp

2007-02-26 Thread Chris Lattner
Changes in directory llvm/lib/Target/X86: X86ISelLowering.cpp updated: 1.342 -> 1.343 --- Log message: move CC Lowering stuff to its own public interface --- Diffs of the changes: (+17 -146) X86ISelLowering.cpp | 163 +--- 1 files changed, 1

[llvm-commits] CVS: llvm/include/llvm/CodeGen/CallingConvLower.h

2007-02-26 Thread Chris Lattner
Changes in directory llvm/include/llvm/CodeGen: CallingConvLower.h added (r1.1) --- Log message: move CC Lowering stuff to its own public interface --- Diffs of the changes: (+149 -0) CallingConvLower.h | 149 + 1 files changed, 149 inse

[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelLowering.cpp

2007-02-26 Thread Chris Lattner
Changes in directory llvm/lib/Target/X86: X86ISelLowering.cpp updated: 1.343 -> 1.344 --- Log message: Minor refactoring of CC Lowering interfaces --- Diffs of the changes: (+24 -22) X86ISelLowering.cpp | 46 -- 1 files changed, 24 insertions(+

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

2007-02-26 Thread Chris Lattner
Changes in directory llvm/lib/CodeGen: CallingConvLower.cpp updated: 1.1 -> 1.2 --- Log message: Minor refactoring of CC Lowering interfaces --- Diffs of the changes: (+4 -1) CallingConvLower.cpp |5 - 1 files changed, 4 insertions(+), 1 deletion(-) Index: llvm/lib/CodeGen/Callin

[llvm-commits] CVS: llvm/include/llvm/CodeGen/CallingConvLower.h

2007-02-26 Thread Chris Lattner
Changes in directory llvm/include/llvm/CodeGen: CallingConvLower.h updated: 1.1 -> 1.2 --- Log message: Minor refactoring of CC Lowering interfaces --- Diffs of the changes: (+79 -55) CallingConvLower.h | 134 +++-- 1 files changed, 79 inser

[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelLowering.cpp

2007-02-26 Thread Chris Lattner
Changes in directory llvm/lib/Target/X86: X86ISelLowering.cpp updated: 1.344 -> 1.345 --- Log message: switch x86-64 return value lowering over to using same mechanism as argument lowering uses. --- Diffs of the changes: (+88 -68) X86ISelLowering.cpp | 156 +---

[llvm-commits] CVS: llvm/lib/Target/X86/X86CallingConv.td

2007-02-26 Thread Chris Lattner
Changes in directory llvm/lib/Target/X86: X86CallingConv.td updated: 1.2 -> 1.3 --- Log message: fill in some holes --- Diffs of the changes: (+33 -7) X86CallingConv.td | 40 +--- 1 files changed, 33 insertions(+), 7 deletions(-) Index: llvm/lib/Targ

[llvm-commits] CVS: llvm/lib/Target/TargetCallingConv.td

2007-02-26 Thread Chris Lattner
Changes in directory llvm/lib/Target: TargetCallingConv.td added (r1.1) --- Log message: move target independent calling convention stuff to TargetCallingConv.td --- Diffs of the changes: (+71 -0) TargetCallingConv.td | 71 +++ 1 files chan

[llvm-commits] CVS: llvm/lib/Target/X86/X86CallingConv.td

2007-02-26 Thread Chris Lattner
Changes in directory llvm/lib/Target/X86: X86CallingConv.td updated: 1.3 -> 1.4 --- Log message: move target independent calling convention stuff to TargetCallingConv.td --- Diffs of the changes: (+0 -56) X86CallingConv.td | 56 -- 1 fi

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

2007-02-26 Thread Reid Spencer
Changes in directory llvm/lib/VMCore: ConstantFold.cpp updated: 1.139 -> 1.140 --- Log message: For PR1205: http://llvm.org/PR1205 : Implement constant folding via APInt instead of uint64_t. --- Diffs of the changes: (+135 -102) ConstantFold.cpp | 237 +++--

[llvm-commits] CVS: llvm/lib/Target/Target.td

2007-02-26 Thread Chris Lattner
Changes in directory llvm/lib/Target: Target.td updated: 1.93 -> 1.94 --- Log message: Add calling convention info --- Diffs of the changes: (+6 -1) Target.td |7 ++- 1 files changed, 6 insertions(+), 1 deletion(-) Index: llvm/lib/Target/Target.td diff -u llvm/lib/Target/Target.t

[llvm-commits] CVS: llvm/lib/Target/X86/X86CallingConv.td

2007-02-26 Thread Chris Lattner
Changes in directory llvm/lib/Target/X86: X86CallingConv.td updated: 1.4 -> 1.5 --- Log message: Add calling convention info --- Diffs of the changes: (+5 -1) X86CallingConv.td |6 +- 1 files changed, 5 insertions(+), 1 deletion(-) Index: llvm/lib/Target/X86/X86CallingConv.td dif

[llvm-commits] CVS: llvm/lib/Support/APInt.cpp

2007-02-26 Thread Reid Spencer
Changes in directory llvm/lib/Support: APInt.cpp updated: 1.51 -> 1.52 --- Log message: Get rid of extraneous // in file comment. --- Diffs of the changes: (+1 -1) APInt.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Support/APInt.cpp diff -u llvm/lib/Suppo

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

2007-02-26 Thread Reid Spencer
Changes in directory llvm/lib/VMCore: Constants.cpp updated: 1.222 -> 1.223 --- Log message: Correct the implelmentation of ConstantInt::getAllOnesValue() for bit widths > 64 bits. --- Diffs of the changes: (+1 -1) Constants.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) I