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

2007-02-27 Thread Reid Spencer
Changes in directory llvm/lib/VMCore: AsmWriter.cpp updated: 1.261 -> 1.262 --- Log message: Allow the AsmWriter to print out arbitrary precision integers. --- Diffs of the changes: (+1 -1) AsmWriter.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/VMCore/Asm

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

2007-02-27 Thread Jim Laskey
Changes in directory llvm/lib/Target/PowerPC: PPCMachineFunctionInfo.h updated: 1.4 -> 1.5 PPCRegisterInfo.cpp updated: 1.113 -> 1.114 PPCRegisterInfo.h updated: 1.30 -> 1.31 --- Log message: Duplicate use of LR, take 2. --- Diffs of the changes: (+42 -26) PPCMachineFunctionInfo.h |7 ++

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

2007-02-27 Thread Devang Patel
Changes in directory llvm/lib/Analysis/IPA: CallGraphSCCPass.cpp updated: 1.18 -> 1.19 --- Log message: Make getPassManagerType() const. --- Diffs of the changes: (+1 -1) CallGraphSCCPass.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Analysis/IPA/CallGraph

[llvm-commits] CVS: llvm/include/llvm/Analysis/LoopPass.h

2007-02-27 Thread Devang Patel
Changes in directory llvm/include/llvm/Analysis: LoopPass.h updated: 1.6 -> 1.7 --- Log message: Make getPassManagerType() const. --- Diffs of the changes: (+1 -1) LoopPass.h |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/include/llvm/Analysis/LoopPass.h diff -u ll

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

2007-02-27 Thread Devang Patel
Changes in directory llvm/include/llvm: PassManagers.h updated: 1.9 -> 1.10 --- Log message: Make getPassManagerType() const. --- Diffs of the changes: (+2 -2) PassManagers.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/include/llvm/PassManagers.h diff -u llv

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

2007-02-27 Thread Devang Patel
Changes in directory llvm/lib/VMCore: PassManager.cpp updated: 1.137 -> 1.138 --- Log message: Make getPassManagerType() const. --- Diffs of the changes: (+4 -2) PassManager.cpp |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) Index: llvm/lib/VMCore/PassManager.cpp diff -u

[llvm-commits] CVS: llvm/CREDITS.TXT

2007-02-27 Thread Nicolas Geoffray
Changes in directory llvm: CREDITS.TXT updated: 1.69 -> 1.70 --- Log message: Added myself --- Diffs of the changes: (+5 -0) CREDITS.TXT |5 + 1 files changed, 5 insertions(+) Index: llvm/CREDITS.TXT diff -u llvm/CREDITS.TXT:1.69 llvm/CREDITS.TXT:1.70 --- llvm/CREDITS.TXT:1.69

[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp

2007-02-27 Thread Nicolas Geoffray
Changes in directory llvm/lib/Target/PowerPC: PPCHazardRecognizers.cpp updated: 1.19 -> 1.20 --- Log message: Fix parenthesis for BCTRL_{ELF|Macho} test. --- Diffs of the changes: (+1 -1) PPCHazardRecognizers.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/

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

2007-02-27 Thread Nicolas Geoffray
Changes in directory llvm/lib/Target/PowerPC: PPCISelLowering.cpp updated: 1.257 -> 1.258 PPCISelLowering.h updated: 1.59 -> 1.60 PPCInstr64Bit.td updated: 1.40 -> 1.41 PPCInstrInfo.td updated: 1.275 -> 1.276 --- Log message: Differentiate between the MachO and the ELF ABI the CALL instruction.

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

2007-02-27 Thread Chris Lattner
On Feb 26, 2007, at 10:24 PM, Reid Spencer wrote: >case Instruction::FPToUI: > -if (const ConstantFP *FPC = dyn_cast(V)) > - return ConstantInt::get(DestTy,(uint64_t) FPC->getValue()); > +if (const ConstantFP *FPC = dyn_cast(V)) { > + APInt Val(APIntOps::RoundDoubleToAPInt(FP

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

2007-02-27 Thread Chris Lattner
> Index: llvm/lib/VMCore/Constants.cpp > diff -u llvm/lib/VMCore/Constants.cpp:1.222 llvm/lib/VMCore/ > Constants.cpp:1.223 > --- llvm/lib/VMCore/Constants.cpp:1.222 Mon Feb 26 21:05:06 2007 > +++ llvm/lib/VMCore/Constants.cpp Tue Feb 27 01:57:53 2007 > @@ -118,7 +118,7 @@ > if (ITy

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

2007-02-27 Thread Chris Lattner
> > Index: llvm/lib/VMCore/AsmWriter.cpp > diff -u llvm/lib/VMCore/AsmWriter.cpp:1.261 llvm/lib/VMCore/ > AsmWriter.cpp:1.262 > --- llvm/lib/VMCore/AsmWriter.cpp:1.261 Wed Feb 14 20:26:10 2007 > +++ llvm/lib/VMCore/AsmWriter.cpp Tue Feb 27 02:34:09 2007 > @@ -464,7 +464,7 @@ > if (C

[llvm-commits] CVS: llvm/lib/Target/X86/README-SSE.txt

2007-02-27 Thread Chris Lattner
Changes in directory llvm/lib/Target/X86: README-SSE.txt updated: 1.14 -> 1.15 --- Log message: a note --- Diffs of the changes: (+42 -0) README-SSE.txt | 42 ++ 1 files changed, 42 insertions(+) Index: llvm/lib/Target/X86/README-SSE.txt diff -u

[llvm-commits] llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp

2007-02-27 Thread Nicolas Geoffray
Here's a patch that fixes linux/PPC FramePointer. It reserves the offset of the frame pointer before calculating the offsets of callee saved registers. OK to commit? Index: PPCRegisterInfo.cpp === RCS file: /var/cvs/llvm/llvm/lib/Ta

[llvm-commits] frameaddress intrinsincs for PPC

2007-02-27 Thread Nicolas Geoffray
This patch implements the frameaddress intrinsincs for PPC. OK to commit? Index: PPCISelLowering.h === RCS file: /var/cvs/llvm/llvm/lib/Target/PowerPC/PPCISelLowering.h,v retrieving revision 1.60 diff -t -d -u -p -5 -r1.60 PPCISelLow

[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/Integer/APInt/gptest.cpp

2007-02-27 Thread Reid Spencer
Changes in directory llvm-test/SingleSource/UnitTests/Integer/APInt: gptest.cpp updated: 1.5 -> 1.6 --- Log message: Add tests for signed comparisons. Add tests for truncation and extension. Attempt to test ashr. This doesn't work right because gp doesn't have the concept of a signed shift righ

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

2007-02-27 Thread Reid Spencer
Changes in directory llvm/include/llvm/ADT: APInt.h updated: 1.24 -> 1.25 --- Log message: Allow the RoundDoubleToAPInt function to specify a width to use. --- Diffs of the changes: (+1 -1) APInt.h |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/include/llvm/ADT/API

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

2007-02-27 Thread Reid Spencer
Changes in directory llvm/lib/Support: APInt.cpp updated: 1.52 -> 1.53 --- Log message: 1. Fix three serious bugs in the comparison code. 2. Change RoundDoubleToAPInt to take a bit width parameter. Use that parameter to limit the bit width of the result. --- Diffs of the changes: (+22 -18

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

2007-02-27 Thread Reid Spencer
On Tue, 2007-02-27 at 09:08 -0800, Chris Lattner wrote: > On Feb 26, 2007, at 10:24 PM, Reid Spencer wrote: > > >case Instruction::FPToUI: > > -if (const ConstantFP *FPC = dyn_cast(V)) > > - return ConstantInt::get(DestTy,(uint64_t) FPC->getValue()); > > +if (const ConstantFP *FPC

[llvm-commits] [see] CVS: llvm-poolalloc/lib/DSA/Local.cpp

2007-02-27 Thread John Criswell
Changes in directory llvm-poolalloc/lib/DSA: Local.cpp updated: 1.158.2.4 -> 1.158.2.4.2.1 --- Log message: The llva_save_stackp() function returns the stack pointer. It should be marked with the incomplete, unknown, and stack flags. --- Diffs of the changes: (+3 -1) Local.cpp |4 +++-

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

2007-02-27 Thread Reid Spencer
Changes in directory llvm/test/Integer: a15.ll.out updated: 1.4 -> 1.5 a17.ll.out updated: 1.4 -> 1.5 a31.ll.out updated: 1.4 -> 1.5 a33.ll.out updated: 1.4 -> 1.5 a63.ll.out updated: 1.4 -> 1.5 a7.ll.out updated: 1.5 -> 1.6 a9.ll.out updated: 1.4 -> 1.5 --- Log message: Shifting by the bit wid

[llvm-commits] CVS: llvm/test/Integer/a1.ll a1.ll.out

2007-02-27 Thread Reid Spencer
Changes in directory llvm/test/Integer: a1.ll updated: 1.5 -> 1.6 a1.ll.out updated: 1.4 -> 1.5 --- Log message: Update for constant folding now generating undef and overflow correctly. --- Diffs of the changes: (+8 -8) a1.ll |6 +++--- a1.ll.out | 10 +- 2 files changed,

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

2007-02-27 Thread Reid Spencer
Changes in directory llvm/lib/VMCore: ConstantFold.cpp updated: 1.140 -> 1.141 --- Log message: For PR1205: http://llvm.org/PR1205 : Implement review feedback: 1. Use new APInt::RoundDoubleToAPInt interface to specify the bit width so that we don't have to truncate or extend in constant fold

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

2007-02-27 Thread Reid Spencer
Changes in directory llvm/lib/Support: APInt.cpp updated: 1.53 -> 1.54 --- Log message: Conform to single person attribution in file comment. --- Diffs of the changes: (+2 -3) APInt.cpp |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) Index: llvm/lib/Support/APInt.cpp diff

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

2007-02-27 Thread Reid Spencer
On Tue, 2007-02-27 at 09:10 -0800, Chris Lattner wrote: > > Index: llvm/lib/VMCore/Constants.cpp > > diff -u llvm/lib/VMCore/Constants.cpp:1.222 llvm/lib/VMCore/ > > Constants.cpp:1.223 > > --- llvm/lib/VMCore/Constants.cpp:1.222 Mon Feb 26 21:05:06 2007 > > +++ llvm/lib/VMCore/Constants.cpp

[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/Integer/APInt/arith.cpp

2007-02-27 Thread Reid Spencer
Changes in directory llvm-test/SingleSource/UnitTests/Integer/APInt: arith.cpp updated: 1.11 -> 1.12 --- Log message: Update for changes in APInt interface. --- Diffs of the changes: (+30 -24) arith.cpp | 54 ++ 1 files changed, 30 inse

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

2007-02-27 Thread Reid Spencer
Changes in directory llvm/lib/Support: APInt.cpp updated: 1.54 -> 1.55 --- Log message: Improve APInt interface: 1. Add unsigned and signed versions of methods so a "bool" argument doesn't need to be passed in. 2. Make the various getMin/getMax functions all be inline since they are so si

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

2007-02-27 Thread Reid Spencer
Changes in directory llvm/include/llvm/ADT: APInt.h updated: 1.25 -> 1.26 --- Log message: Improve APInt interface: 1. Add unsigned and signed versions of methods so a "bool" argument doesn't need to be passed in. 2. Make the various getMin/getMax functions all be inline since they are so

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

2007-02-27 Thread Reid Spencer
Changes in directory llvm/lib/VMCore: AsmWriter.cpp updated: 1.262 -> 1.263 ConstantFold.cpp updated: 1.141 -> 1.142 --- Log message: Adjust to changes in the APInt interface. --- Diffs of the changes: (+5 -5) AsmWriter.cpp|2 +- ConstantFold.cpp |8 2 files changed,

[llvm-commits] CVS: llvm/utils/TableGen/CodeGenTarget.cpp Record.cpp Record.h TableGen.cpp

2007-02-27 Thread Chris Lattner
Changes in directory llvm/utils/TableGen: CodeGenTarget.cpp updated: 1.82 -> 1.83 Record.cpp updated: 1.55 -> 1.56 Record.h updated: 1.59 -> 1.60 TableGen.cpp updated: 1.47 -> 1.48 --- Log message: initial support for calling convention generation, still unfinished. --- Diffs of the changes:

[llvm-commits] CVS: llvm/Makefile.rules

2007-02-27 Thread Chris Lattner
Changes in directory llvm: Makefile.rules updated: 1.426 -> 1.427 --- Log message: target for generating CC info --- Diffs of the changes: (+5 -0) Makefile.rules |5 + 1 files changed, 5 insertions(+) Index: llvm/Makefile.rules diff -u llvm/Makefile.rules:1.426 llvm/Makefile.rule

[llvm-commits] CVS: llvm/lib/Target/X86/Makefile

2007-02-27 Thread Chris Lattner
Changes in directory llvm/lib/Target/X86: Makefile updated: 1.31 -> 1.32 --- Log message: build cc info --- Diffs of the changes: (+1 -1) Makefile |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Target/X86/Makefile diff -u llvm/lib/Target/X86/Makefile:1.31 llvm/

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

2007-02-27 Thread Chris Lattner
Changes in directory llvm/lib/Target: TargetCallingConv.td updated: 1.1 -> 1.2 --- Log message: implement CCMatchIfCC in terms of CCMatchIf --- Diffs of the changes: (+4 -4) TargetCallingConv.td |8 1 files changed, 4 insertions(+), 4 deletions(-) Index: llvm/lib/Target/Targ

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

2007-02-27 Thread Reid Spencer
Changes in directory llvm/test/CodeGen/PowerPC: calls.ll updated: 1.4 -> 1.5 --- Log message: This test passes on x86/Linux now. --- Diffs of the changes: (+0 -1) calls.ll |1 - 1 files changed, 1 deletion(-) Index: llvm/test/CodeGen/PowerPC/calls.ll diff -u llvm/test/CodeGen/PowerPC

[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/Integer/APInt/gptest.cpp

2007-02-27 Thread Reid Spencer
Changes in directory llvm-test/SingleSource/UnitTests/Integer/APInt: gptest.cpp updated: 1.6 -> 1.7 --- Log message: Adjust to changes in the APInt interface. --- Diffs of the changes: (+7 -3) gptest.cpp | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) Index: llvm-test

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

2007-02-27 Thread Reid Spencer
Chris, Can't we just change this part of ConstantInt: /// getTrue/getFalse - Return the singleton true/false values. static inline ConstantInt *getTrue() { if (TheTrueVal) return TheTrueVal; return CreateTrueFalseVals(true); } static inline ConstantInt *getFalse() { if (TheFals

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

2007-02-27 Thread Evan Cheng
Changes in directory llvm/include/llvm/CodeGen: MachineInstr.h updated: 1.213 -> 1.214 --- Log message: Pass IsImp, IsKill, and IsDead to ChangeToRegister. --- Diffs of the changes: (+5 -4) MachineInstr.h |9 + 1 files changed, 5 insertions(+), 4 deletions(-) Index: llvm/inclu

[llvm-commits] CVS: llvm/include/llvm/Target/MRegisterInfo.h

2007-02-27 Thread Evan Cheng
Changes in directory llvm/include/llvm/Target: MRegisterInfo.h updated: 1.97 -> 1.98 --- Log message: Let MRegisterInfo owns RegScavenger. --- Diffs of the changes: (+10 -9) MRegisterInfo.h | 19 ++- 1 files changed, 10 insertions(+), 9 deletions(-) Index: llvm/include/l

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

2007-02-27 Thread Evan Cheng
Changes in directory llvm/include/llvm/CodeGen: RegisterScavenging.h updated: 1.2 -> 1.3 --- Log message: RegScavenger interface change to make it more flexible. --- Diffs of the changes: (+32 -4) RegisterScavenging.h | 36 1 files changed, 32 insertio

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

2007-02-27 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen: RegisterScavenging.cpp updated: 1.4 -> 1.5 --- Log message: RegScavenger interface change to make it more flexible. --- Diffs of the changes: (+18 -16) RegisterScavenging.cpp | 34 ++ 1 files changed, 18 insertions(+),

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

2007-02-27 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen: PrologEpilogInserter.cpp updated: 1.70 -> 1.71 --- Log message: Let MRegisterInfo now owns RegScavenger. --- Diffs of the changes: (+3 -3) PrologEpilogInserter.cpp |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Index: llvm/lib/CodeGe

[llvm-commits] CVS: llvm/lib/Target/ARM/ARMRegisterInfo.cpp ARMRegisterInfo.h

2007-02-27 Thread Evan Cheng
Changes in directory llvm/lib/Target/ARM: ARMRegisterInfo.cpp updated: 1.72 -> 1.73 ARMRegisterInfo.h updated: 1.12 -> 1.13 --- Log message: Let MRegisterInfo now owns RegScavenger; eliminateFrameIndex must preserve register kill info. --- Diffs of the changes: (+51 -30) ARMRegisterInfo.cp

[llvm-commits] CVS: llvm/utils/TableGen/CodeGenTarget.cpp Record.cpp Record.h TableGen.cpp

2007-02-27 Thread Evan Cheng
Changes in directory llvm/utils/TableGen: CodeGenTarget.cpp updated: 1.83 -> 1.84 Record.cpp updated: 1.56 -> 1.57 Record.h updated: 1.60 -> 1.61 TableGen.cpp updated: 1.48 -> 1.49 --- Log message: Backing out CodeGenTarget.cpp updated: 1.82 -> 1.83 Record.cpp updated: 1.55 -> 1.56 Record.h upd

[llvm-commits] CVS: llvm/lib/Target/X86/Makefile

2007-02-27 Thread Evan Cheng
Changes in directory llvm/lib/Target/X86: Makefile updated: 1.32 -> 1.33 --- Log message: Back out previous commit temporarily. --- Diffs of the changes: (+1 -1) Makefile |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Target/X86/Makefile diff -u llvm/lib/Target/

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

2007-02-27 Thread Reid Spencer
Changes in directory llvm/lib/Support: APInt.cpp updated: 1.55 -> 1.56 --- Log message: Implement countLeadingOnes() and getMinSignedBits(). This helps to minimize the bit width of negative numbers by computing the minimum bit width for a negative value. E.g. 0x1800 could be just 0x

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

2007-02-27 Thread Reid Spencer
Changes in directory llvm/include/llvm/ADT: APInt.h updated: 1.26 -> 1.27 --- Log message: Implement countLeadingOnes() and getMinSignedBits(). This helps to minimize the bit width of negative numbers by computing the minimum bit width for a negative value. E.g. 0x1800 could be just

[llvm-commits] CVS: llvm/utils/TableGen/CallingConvEmitter.h CallingConvEmitter.cpp

2007-02-27 Thread Chris Lattner
Changes in directory llvm/utils/TableGen: CallingConvEmitter.h added (r1.1) CallingConvEmitter.cpp added (r1.1) --- Log message: --- Diffs of the changes: (+166 -0) CallingConvEmitter.cpp | 128 + CallingConvEmitter.h | 38 ++

[llvm-commits] CVS: llvm/utils/TableGen/CallingConvEmitter.cpp CodeGenTarget.cpp Record.cpp Record.h TableGen.cpp

2007-02-27 Thread Chris Lattner
Changes in directory llvm/utils/TableGen: CallingConvEmitter.cpp updated: 1.1 -> 1.2 CodeGenTarget.cpp updated: 1.84 -> 1.85 Record.cpp updated: 1.57 -> 1.58 Record.h updated: 1.61 -> 1.62 TableGen.cpp updated: 1.49 -> 1.50 --- Log message: reapply --- Diffs of the changes: (+20 -8) Callin

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

2007-02-27 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen: RegisterScavenging.cpp updated: 1.5 -> 1.6 --- Log message: Oops. --- Diffs of the changes: (+4 -1) RegisterScavenging.cpp |5 - 1 files changed, 4 insertions(+), 1 deletion(-) Index: llvm/lib/CodeGen/RegisterScavenging.cpp diff -u llvm/lib/C

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

2007-02-27 Thread Evan Cheng
Changes in directory llvm/include/llvm/CodeGen: RegisterScavenging.h updated: 1.3 -> 1.4 --- Log message: Oops. --- Diffs of the changes: (+2 -3) RegisterScavenging.h |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) Index: llvm/include/llvm/CodeGen/RegisterScavenging.h diff

[llvm-commits] CVS: llvm/lib/Target/X86/Makefile

2007-02-27 Thread Chris Lattner
Changes in directory llvm/lib/Target/X86: Makefile updated: 1.33 -> 1.34 --- Log message: reenable generation of CC info --- Diffs of the changes: (+1 -1) Makefile |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Target/X86/Makefile diff -u llvm/lib/Target/X86/Ma

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

2007-02-27 Thread Chris Lattner
On Feb 27, 2007, at 11:34 AM, Reid Spencer wrote: > On Tue, 2007-02-27 at 09:10 -0800, Chris Lattner wrote: >>> Index: llvm/lib/VMCore/Constants.cpp >>> diff -u llvm/lib/VMCore/Constants.cpp:1.222 llvm/lib/VMCore/ >>> Constants.cpp:1.223 >>> --- llvm/lib/VMCore/Constants.cpp:1.222 Mon Feb 26

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

2007-02-27 Thread Chris Lattner
>> This seems like a poor choice of API. RoundDoubleToAPInt should take >> a result bitwidth. Without this, this appears like it could make a >> "large" APInt, then truncate it down to a small one when converting >> from double, which is very inefficient. > > Done. Thanks, but why the default ar

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

2007-02-27 Thread Chris Lattner
> @@ -464,7 +464,7 @@ > if (CI->getType() == Type::Int1Ty) >Out << (CI->getZExtValue() ? "true" : "false"); > else > - Out << CI->getValue().toString(10,/*wantSigned=*/true); > + Out << CI->getValue().toStringSigned(10); Thanks! >case Instruction::UIToFP: > i

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

2007-02-27 Thread Chris Lattner
On Feb 27, 2007, at 12:51 PM, Reid Spencer wrote: > Can't we just change this part of ConstantInt: > > /// getTrue/getFalse - Return the singleton true/false values. > static inline ConstantInt *getTrue() { > if (TheTrueVal) return TheTrueVal; > return CreateTrueFalseVals(true); > } >

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

2007-02-27 Thread Evan Cheng
Changes in directory llvm/include/llvm/CodeGen: RegisterScavenging.h updated: 1.4 -> 1.5 --- Log message: Some more code clean up. --- Diffs of the changes: (+6 -5) RegisterScavenging.h | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) Index: llvm/include/llvm/CodeGen/R

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

2007-02-27 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen: RegisterScavenging.cpp updated: 1.6 -> 1.7 --- Log message: Some more code clean up. --- Diffs of the changes: (+29 -23) RegisterScavenging.cpp | 52 +++-- 1 files changed, 29 insertions(+), 23 deletions(-)

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

2007-02-27 Thread Evan Cheng
Changes in directory llvm/lib/Target/ARM: ARMRegisterInfo.td updated: 1.10 -> 1.11 --- Log message: Minor tweak. Allocate r0 to r3 in reverse order, r3 is least likely to be livein to a function. --- Diffs of the changes: (+5 -5) ARMRegisterInfo.td | 10 +- 1 files changed, 5 ins

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

2007-02-27 Thread Reid Spencer
On Tue, 2007-02-27 at 14:20 -0800, Chris Lattner wrote: > On Feb 27, 2007, at 12:51 PM, Reid Spencer wrote: > > Can't we just change this part of ConstantInt: .. snip .. > > > > into: .. snip .. > Yes we could. I would like to do that, but we should do (compile > time) timings to see if it i

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

2007-02-27 Thread Reid Spencer
Changes in directory llvm/lib/VMCore: Constants.cpp updated: 1.223 -> 1.224 --- Log message: Remove some redundancy. --- Diffs of the changes: (+1 -4) Constants.cpp |5 + 1 files changed, 1 insertion(+), 4 deletions(-) Index: llvm/lib/VMCore/Constants.cpp diff -u llvm/lib/VMCore/

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

2007-02-27 Thread Reid Spencer
Changes in directory llvm/lib/VMCore: ConstantFold.cpp updated: 1.142 -> 1.143 --- Log message: Pull out the stops. --- Diffs of the changes: (+2 -4) ConstantFold.cpp |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) Index: llvm/lib/VMCore/ConstantFold.cpp diff -u llvm/lib/

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

2007-02-27 Thread Reid Spencer
On Tue, 2007-02-27 at 14:17 -0800, Chris Lattner wrote: > >> This seems like a poor choice of API. RoundDoubleToAPInt should take > >> a result bitwidth. Without this, this appears like it could make a > >> "large" APInt, then truncate it down to a small one when converting > >> from double, whic

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

2007-02-27 Thread Chris Lattner
On Feb 27, 2007, at 3:35 PM, Reid Spencer wrote: > On Tue, 2007-02-27 at 14:17 -0800, Chris Lattner wrote: This seems like a poor choice of API. RoundDoubleToAPInt should take a result bitwidth. Without this, this appears like it could make a "large" APInt, then truncate it

[llvm-commits] LowerSwitch improvement patch for review

2007-02-27 Thread Anton Korobeynikov
Hello, Everyone. Please review attached patch for LowerSwitch. Actually, it just "merges" adjacent cases with same destination in one big "case cluster". During emiting comparison tree such clusters result to range comparisons. This is pretty cheap but useful transformation. The same technique is

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

2007-02-27 Thread Reid Spencer
Changes in directory llvm/include/llvm/ADT: APInt.h updated: 1.27 -> 1.28 --- Log message: Add some syntactic sugar. --- Diffs of the changes: (+31 -0) APInt.h | 31 +++ 1 files changed, 31 insertions(+) Index: llvm/include/llvm/ADT/APInt.h diff -u llvm/incl

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

2007-02-27 Thread Reid Spencer
Changes in directory llvm/lib/Support: APInt.cpp updated: 1.56 -> 1.57 --- Log message: Join two lines that can be joined. --- Diffs of the changes: (+1 -2) APInt.cpp |3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) Index: llvm/lib/Support/APInt.cpp diff -u llvm/lib/Support/AP

[llvm-commits] CVS: llvm/include/llvm/Target/MRegisterInfo.h

2007-02-27 Thread Evan Cheng
Changes in directory llvm/include/llvm/Target: MRegisterInfo.h updated: 1.98 -> 1.99 --- Log message: MRegisterInfo disowns RegScavenger. It's immutable. --- Diffs of the changes: (+8 -7) MRegisterInfo.h | 15 --- 1 files changed, 8 insertions(+), 7 deletions(-) Index: llvm/

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

2007-02-27 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen: PrologEpilogInserter.cpp updated: 1.71 -> 1.72 --- Log message: MRegisterInfo disowns RegScavenger. It's immutable. --- Diffs of the changes: (+2 -2) PrologEpilogInserter.cpp |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/l

[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp AlphaRegisterInfo.h

2007-02-27 Thread Evan Cheng
Changes in directory llvm/lib/Target/Alpha: AlphaRegisterInfo.cpp updated: 1.62 -> 1.63 AlphaRegisterInfo.h updated: 1.21 -> 1.22 --- Log message: PEI now passes a RegScavenger ptr to eliminateFrameIndex. --- Diffs of the changes: (+4 -3) AlphaRegisterInfo.cpp |4 ++-- AlphaRegisterInfo

[llvm-commits] CVS: llvm/lib/Target/IA64/IA64RegisterInfo.cpp IA64RegisterInfo.h

2007-02-27 Thread Evan Cheng
Changes in directory llvm/lib/Target/IA64: IA64RegisterInfo.cpp updated: 1.33 -> 1.34 IA64RegisterInfo.h updated: 1.15 -> 1.16 --- Log message: PEI now passes a RegScavenger ptr to eliminateFrameIndex. --- Diffs of the changes: (+4 -2) IA64RegisterInfo.cpp |3 ++- IA64RegisterInfo.h |

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

2007-02-27 Thread Evan Cheng
Changes in directory llvm/lib/Target/PowerPC: PPCRegisterInfo.cpp updated: 1.114 -> 1.115 PPCRegisterInfo.h updated: 1.31 -> 1.32 --- Log message: PEI now passes a RegScavenger ptr to eliminateFrameIndex. --- Diffs of the changes: (+4 -3) PPCRegisterInfo.cpp |4 ++-- PPCRegisterInfo.h

[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcRegisterInfo.cpp SparcRegisterInfo.h

2007-02-27 Thread Evan Cheng
Changes in directory llvm/lib/Target/Sparc: SparcRegisterInfo.cpp updated: 1.56 -> 1.57 SparcRegisterInfo.h updated: 1.21 -> 1.22 --- Log message: PEI now passes a RegScavenger ptr to eliminateFrameIndex. --- Diffs of the changes: (+4 -3) SparcRegisterInfo.cpp |4 ++-- SparcRegisterInfo

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

2007-02-27 Thread Evan Cheng
Changes in directory llvm/lib/Target/X86: X86RegisterInfo.cpp updated: 1.205 -> 1.206 X86RegisterInfo.h updated: 1.49 -> 1.50 --- Log message: PEI now passes a RegScavenger ptr to eliminateFrameIndex. --- Diffs of the changes: (+4 -2) X86RegisterInfo.cpp |3 ++- X86RegisterInfo.h |

[llvm-commits] CVS: llvm/lib/Target/ARM/ARMRegisterInfo.h

2007-02-27 Thread Evan Cheng
Changes in directory llvm/lib/Target/ARM: ARMRegisterInfo.h updated: 1.13 -> 1.14 --- Log message: PEI now passes a RegScavenger ptr to eliminateFrameIndex. --- Diffs of the changes: (+4 -3) ARMRegisterInfo.h |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) Index: llvm/lib

[llvm-commits] CVS: llvm/lib/Target/ARM/ARMRegisterInfo.cpp

2007-02-27 Thread Evan Cheng
Changes in directory llvm/lib/Target/ARM: ARMRegisterInfo.cpp updated: 1.73 -> 1.74 --- Log message: Start making use of RegScavenger. --- Diffs of the changes: (+12 -8) ARMRegisterInfo.cpp | 20 1 files changed, 12 insertions(+), 8 deletions(-) Index: llvm/lib/Targ

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

2007-02-27 Thread Evan Cheng
Changes in directory llvm/lib/Target/ARM: ARMRegisterInfo.td updated: 1.11 -> 1.12 --- Log message: Temporary: make R12 available in ARM mode if RegScavenger is being used. --- Diffs of the changes: (+53 -12) ARMRegisterInfo.td | 65 +++-- 1

[llvm-commits] CVS: llvm/test/CodeGen/ARM/shifter_operand.ll

2007-02-27 Thread Evan Cheng
Changes in directory llvm/test/CodeGen/ARM: shifter_operand.ll updated: 1.1 -> 1.2 --- Log message: Fix test case. --- Diffs of the changes: (+2 -2) shifter_operand.ll |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/test/CodeGen/ARM/shifter_operand.ll diff -u llv

[llvm-commits] CVS: llvm/include/llvm/Target/MRegisterInfo.h

2007-02-27 Thread Evan Cheng
Changes in directory llvm/include/llvm/Target: MRegisterInfo.h updated: 1.99 -> 1.100 --- Log message: Make requiresRegisterScavenging determination on a per MachineFunction basis. --- Diffs of the changes: (+1 -1) MRegisterInfo.h |2 +- 1 files changed, 1 insertion(+), 1 deletion(-)

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

2007-02-27 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen: PrologEpilogInserter.cpp updated: 1.72 -> 1.73 --- Log message: Make requiresRegisterScavenging determination on a per MachineFunction basis. --- Diffs of the changes: (+1 -1) PrologEpilogInserter.cpp |2 +- 1 files changed, 1 insertion(+), 1 delet

[llvm-commits] CVS: llvm/lib/Target/ARM/ARMRegisterInfo.cpp ARMRegisterInfo.h ARMRegisterInfo.td

2007-02-27 Thread Evan Cheng
Changes in directory llvm/lib/Target/ARM: ARMRegisterInfo.cpp updated: 1.74 -> 1.75 ARMRegisterInfo.h updated: 1.14 -> 1.15 ARMRegisterInfo.td updated: 1.12 -> 1.13 --- Log message: Make requiresRegisterScavenging determination on a per MachineFunction basis. --- Diffs of the changes: (+13 -1

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

2007-02-27 Thread Reid Spencer
Changes in directory llvm/lib/Support: APInt.cpp updated: 1.57 -> 1.58 --- Log message: Fix a bug in RoundDoubleToAPInt where it would force the size to 64 bits instead of honoring the client's requested bit width. --- Diffs of the changes: (+1 -1) APInt.cpp |2 +- 1 files changed, 1 i

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

2007-02-27 Thread Reid Spencer
Changes in directory llvm/include/llvm/ADT: APInt.h updated: 1.28 -> 1.29 --- Log message: getActiveWords should return the number of words, not the index of the highest active words. Increment its result by one. --- Diffs of the changes: (+1 -1) APInt.h |2 +- 1 files changed, 1 inser

[llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y

2007-02-27 Thread Reid Spencer
Changes in directory llvm/lib/AsmParser: llvmAsmParser.y updated: 1.325 -> 1.326 --- Log message: Implement support for aribrary precision integers by creating two new tokens: ESAPINTVAL and EUAPINTVAL and adding an APInt* as a semantic value. This allows us to extend the definition of an inte

[llvm-commits] CVS: llvm/lib/AsmParser/Lexer.l

2007-02-27 Thread Reid Spencer
Changes in directory llvm/lib/AsmParser: Lexer.l updated: 1.98 -> 1.99 --- Log message: Implement arbitrary integer constants through the use of APInt values. Positive, negative, and hexadecimal integer constants will now return an APInt for values having > 64 bits of precision. --- Diffs of

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/Writer.cpp

2007-02-27 Thread Reid Spencer
Changes in directory llvm/lib/Bytecode/Writer: Writer.cpp updated: 1.168 -> 1.169 --- Log message: Implement writing of arbitrary precision integers. --- Diffs of the changes: (+14 -4) Writer.cpp | 18 ++ 1 files changed, 14 insertions(+), 4 deletions(-) Index: llvm/lib

[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp

2007-02-27 Thread Reid Spencer
Changes in directory llvm/lib/Bytecode/Reader: Reader.cpp updated: 1.241 -> 1.242 --- Log message: Implement reading of arbitrary precision integers. --- Diffs of the changes: (+9 -4) Reader.cpp | 13 + 1 files changed, 9 insertions(+), 4 deletions(-) Index: llvm/lib/Byteco

[llvm-commits] CVS: llvm/docs/BytecodeFormat.html

2007-02-27 Thread Reid Spencer
Changes in directory llvm/docs: BytecodeFormat.html updated: 1.66 -> 1.67 --- Log message: Describe how arbitrary precision integers are written to the bytecode. --- Diffs of the changes: (+13 -5) BytecodeFormat.html | 18 +- 1 files changed, 13 insertions(+), 5 deletions

[llvm-commits] GEP's too?

2007-02-27 Thread Reid Spencer
Chris, How far do we want to go with conversion to APInt? Does this include GEP indices too? For example, consider this code from lib/Analysis/ConstantFolding.cpp >if (isFoldableGEP) { > uint64_t Offset = TD->getIndexedOffset(Ptr->getType(), >

Re: [llvm-commits] GEP's too?

2007-02-27 Thread Chris Lattner
On Feb 27, 2007, at 6:52 PM, Reid Spencer wrote: > Chris, > > How far do we want to go with conversion to APInt? Does this > include GEP > indices too? For example, consider this code from > lib/Analysis/ConstantFolding.cpp > >>if (isFoldableGEP) { >> uint64_t Offset = TD->getIndexedO

[llvm-commits] CVS: llvm/utils/TableGen/CallingConvEmitter.cpp

2007-02-27 Thread Chris Lattner
Changes in directory llvm/utils/TableGen: CallingConvEmitter.cpp updated: 1.2 -> 1.3 --- Log message: implement CCPromoteToType --- Diffs of the changes: (+13 -8) CallingConvEmitter.cpp | 21 + 1 files changed, 13 insertions(+), 8 deletions(-) Index: llvm/utils/Tabl

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

2007-02-27 Thread Chris Lattner
Changes in directory llvm/lib/Target/X86: X86CallingConv.td updated: 1.5 -> 1.6 --- Log message: make subtarget references work. --- Diffs of the changes: (+7 -3) X86CallingConv.td | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) Index: llvm/lib/Target/X86/X86CallingCo

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

2007-02-27 Thread Chris Lattner
Changes in directory llvm/lib/Target/X86: X86ISelLowering.cpp updated: 1.345 -> 1.346 --- Log message: switch return value passing and the x86-64 calling convention information over to being autogenerated from the X86CallingConv.td file. --- Diffs of the changes: (+9 -137) X86ISelLowering.

[llvm-commits] CVS: llvm/Makefile.rules

2007-02-27 Thread Chris Lattner
Changes in directory llvm: Makefile.rules updated: 1.427 -> 1.428 --- Log message: correct dependency --- Diffs of the changes: (+1 -0) Makefile.rules |1 + 1 files changed, 1 insertion(+) Index: llvm/Makefile.rules diff -u llvm/Makefile.rules:1.427 llvm/Makefile.rules:1.428 --- llvm

[llvm-commits] CVS: llvm/utils/TableGen/CallingConvEmitter.cpp

2007-02-27 Thread Chris Lattner
Changes in directory llvm/utils/TableGen: CallingConvEmitter.cpp updated: 1.3 -> 1.4 --- Log message: rename some CCActions --- Diffs of the changes: (+2 -2) CallingConvEmitter.cpp |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/utils/TableGen/CallingConvEmitter

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

2007-02-27 Thread Chris Lattner
Changes in directory llvm/lib/Target: TargetCallingConv.td updated: 1.2 -> 1.3 --- Log message: rename some CCActions, add CCIfInReg --- Diffs of the changes: (+12 -7) TargetCallingConv.td | 19 --- 1 files changed, 12 insertions(+), 7 deletions(-) Index: llvm/lib/Targe

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

2007-02-27 Thread Chris Lattner
Changes in directory llvm/lib/Target/X86: X86CallingConv.td updated: 1.6 -> 1.7 --- Log message: rename stuff --- Diffs of the changes: (+24 -24) X86CallingConv.td | 48 1 files changed, 24 insertions(+), 24 deletions(-) Index: llvm/lib/

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

2007-02-27 Thread Chris Lattner
Changes in directory llvm/lib/Target/X86: X86CallingConv.td updated: 1.7 -> 1.8 X86ISelLowering.cpp updated: 1.346 -> 1.347 --- Log message: switch LowerallTo over to using an autogenerated callingconv --- Diffs of the changes: (+71 -110) X86CallingConv.td | 28 + X86ISelLo

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

2007-02-27 Thread Chris Lattner
Changes in directory llvm/lib/Target/X86: X86ISelLowering.cpp updated: 1.347 -> 1.348 --- Log message: simplify sret handling --- Diffs of the changes: (+5 -13) X86ISelLowering.cpp | 18 +- 1 files changed, 5 insertions(+), 13 deletions(-) Index: llvm/lib/Target/X86/X86

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

2007-02-27 Thread Chris Lattner
Changes in directory llvm/lib/Target/X86: X86ISelLowering.cpp updated: 1.348 -> 1.349 --- Log message: switch LowerCCCArguments over to using autogenerated CC. --- Diffs of the changes: (+62 -94) X86ISelLowering.cpp | 156 1 files chang

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

2007-02-27 Thread Chris Lattner
Changes in directory llvm/lib/Target/X86: X86ISelLowering.cpp updated: 1.349 -> 1.350 X86ISelLowering.h updated: 1.89 -> 1.90 --- Log message: remove fastcc (not fastcall) support --- Diffs of the changes: (+26 -58) X86ISelLowering.cpp | 65 ---

  1   2   >