[llvm-commits] [llvm] r45656 - in /llvm/trunk: include/llvm/ include/llvm/Target/ include/llvm/Transforms/ lib/CodeGen/ lib/Target/ lib/Target/ARM/ lib/Target/IA64/ lib/Target/PowerPC/ utils/TableGen/

2008-01-06 Thread Chris Lattner
Author: lattner Date: Sun Jan 6 02:36:04 2008 New Revision: 45656 URL: http://llvm.org/viewvc/llvm-project?rev=45656&view=rev Log: rename isStore -> mayStore to more accurately reflect what it captures. Modified: llvm/trunk/include/llvm/LinkAllPasses.h llvm/trunk/include/llvm/Target/Tar

[llvm-commits] [llvm] r45657 - in /llvm/trunk: include/llvm/InstrTypes.h lib/Transforms/Scalar/InstructionCombining.cpp lib/VMCore/Instructions.cpp test/Transforms/InstCombine/2008-01-06-CastCrash.ll

2008-01-06 Thread Duncan Sands
Author: baldrick Date: Sun Jan 6 04:12:28 2008 New Revision: 45657 URL: http://llvm.org/viewvc/llvm-project?rev=45657&view=rev Log: When transforming a call to a bitcast function into a direct call with cast parameters and cast return value (if any), instcombine was prepared to cast any non-void

Re: [llvm-commits] [llvm] r45027 - in /llvm/trunk: include/llvm/IntrinsicsX86.td lib/VMCore/AutoUpgrade.cpp test/Assembler/AutoUpgradeIntrinsics.ll

2008-01-06 Thread Bill Wendling
Here's a potential patch as a follow-up for this patch: mmx.patch Description: Binary data It's not tested (I got a compiler error during compilation of LLVM...not LLVM-GCC). What do you think? -bw On Dec 13, 2007, at 10:38 PM, Anders Carlsson wrote: Author: andersca Date: Fri Dec 14

[llvm-commits] [llvm] r45658 - in /llvm/trunk: include/llvm/ParameterAttributes.h lib/Transforms/IPO/DeadArgumentElimination.cpp lib/Transforms/Scalar/InstructionCombining.cpp lib/VMCore/ParameterAttr

2008-01-06 Thread Duncan Sands
Author: baldrick Date: Sun Jan 6 12:27:01 2008 New Revision: 45658 URL: http://llvm.org/viewvc/llvm-project?rev=45658&view=rev Log: The transform that tries to turn calls to bitcast functions into direct calls bails out unless caller and callee have essentially equivalent parameter attributes. T

[llvm-commits] [llvm] r45659 - /llvm/trunk/include/llvm/LinkAllPasses.h

2008-01-06 Thread Chris Lattner
Author: lattner Date: Sun Jan 6 13:18:52 2008 New Revision: 45659 URL: http://llvm.org/viewvc/llvm-project?rev=45659&view=rev Log: fix an accidental commit that broke all the testers :( Modified: llvm/trunk/include/llvm/LinkAllPasses.h Modified: llvm/trunk/include/llvm/LinkAllPasses.h URL:

[llvm-commits] [llvm] r45660 - /llvm/trunk/include/llvm/Transforms/Scalar.h

2008-01-06 Thread Chris Lattner
Author: lattner Date: Sun Jan 6 13:19:32 2008 New Revision: 45660 URL: http://llvm.org/viewvc/llvm-project?rev=45660&view=rev Log: back out accidental commit. Modified: llvm/trunk/include/llvm/Transforms/Scalar.h Modified: llvm/trunk/include/llvm/Transforms/Scalar.h URL: http://llvm.org/vi

[llvm-commits] [llvm] r45661 - /llvm/trunk/docs/LangRef.html

2008-01-06 Thread Chris Lattner
Author: lattner Date: Sun Jan 6 13:51:52 2008 New Revision: 45661 URL: http://llvm.org/viewvc/llvm-project?rev=45661&view=rev Log: Fix typo noticed by 'Danny' in PR1901 Modified: llvm/trunk/docs/LangRef.html Modified: llvm/trunk/docs/LangRef.html URL: http://llvm.org/viewvc/llvm-project/ll

[llvm-commits] CVS: llvm-www/OpenProjects.html

2008-01-06 Thread Chris Lattner
Changes in directory llvm-www: OpenProjects.html updated: 1.31 -> 1.32 --- Log message: add some open projects. --- Diffs of the changes: (+13 -1) OpenProjects.html | 14 +- 1 files changed, 13 insertions(+), 1 deletion(-) Index: llvm-www/OpenProjects.html diff -u llvm-www/

[llvm-commits] [llvm] r45662 - /llvm/trunk/docs/LangRef.html

2008-01-06 Thread Chris Lattner
Author: lattner Date: Sun Jan 6 15:04:43 2008 New Revision: 45662 URL: http://llvm.org/viewvc/llvm-project?rev=45662&view=rev Log: improve description of alignment, patch by Alain Frisch. Modified: llvm/trunk/docs/LangRef.html Modified: llvm/trunk/docs/LangRef.html URL: http://llvm.org/vie

[llvm-commits] [llvm] r45663 - in /llvm/trunk: Makefile.rules bindings/ocaml/Makefile.ocaml

2008-01-06 Thread Gordon Henriksen
Author: gordon Date: Sun Jan 6 15:54:35 2008 New Revision: 45663 URL: http://llvm.org/viewvc/llvm-project?rev=45663&view=rev Log: Modify Makefile.rules to allow makefiles to prepend to C.Flags and fiends. Change Makefile.ocaml to not touch CFLAGS. Modified: llvm/trunk/Makefile.rules llvm

[llvm-commits] [llvm] r45667 - in /llvm/trunk: include/llvm/Target/ lib/CodeGen/ lib/Target/ lib/Target/ARM/ lib/Target/Alpha/ lib/Target/CellSPU/ lib/Target/IA64/ lib/Target/Mips/ lib/Target/PowerPC/

2008-01-06 Thread Chris Lattner
Author: lattner Date: Sun Jan 6 17:38:27 2008 New Revision: 45667 URL: http://llvm.org/viewvc/llvm-project?rev=45667&view=rev Log: rename isLoad -> isSimpleLoad due to evan's desire to have such a predicate. Modified: llvm/trunk/include/llvm/Target/TargetInstrInfo.h llvm/trunk/lib/CodeGe

[llvm-commits] [llvm] r45668 - /llvm/trunk/lib/Target/X86/X86InstrInfo.td

2008-01-06 Thread Chris Lattner
Author: lattner Date: Sun Jan 6 17:49:32 2008 New Revision: 45668 URL: http://llvm.org/viewvc/llvm-project?rev=45668&view=rev Log: The pic base can't be duplicated. Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.td Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.td URL: http://llvm.org/

[llvm-commits] [llvm] r45670 - in /llvm/trunk: include/llvm/CodeGen/LinkAllCodegenComponents.h include/llvm/LinkAllPasses.h include/llvm/Transforms/Scalar.h lib/CodeGen/ShadowStackCollector.cpp lib/Tr

2008-01-06 Thread Gordon Henriksen
Author: gordon Date: Sun Jan 6 19:30:53 2008 New Revision: 45670 URL: http://llvm.org/viewvc/llvm-project?rev=45670&view=rev Log: With this patch, the LowerGC transformation becomes the ShadowStackCollector, which additionally has reduced overhead with no sacrifice in portability. Considering a

[llvm-commits] [llvm] r45669 - in /llvm/trunk: include/llvm/CodeGen/AsmPrinter.h include/llvm/CodeGen/SelectionDAGISel.h lib/CodeGen/AsmPrinter.cpp lib/CodeGen/README.txt lib/CodeGen/SelectionDAG/Sele

2008-01-06 Thread Gordon Henriksen
Author: gordon Date: Sun Jan 6 19:30:38 2008 New Revision: 45669 URL: http://llvm.org/viewvc/llvm-project?rev=45669&view=rev Log: Enabling the target-independent garbage collection infrastructure by hooking it up to the various compiler pipelines. This doesn't actually add support for any GC alg

[llvm-commits] [llvm] r45671 - /llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp

2008-01-06 Thread Gordon Henriksen
Author: gordon Date: Sun Jan 6 19:33:09 2008 New Revision: 45671 URL: http://llvm.org/viewvc/llvm-project?rev=45671&view=rev Log: Ammending r45669 with a missing file. Modified: llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp Modified: llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp URL: http://

[llvm-commits] [llvm] r45673 - in /llvm/trunk/lib/CodeGen: LiveIntervalAnalysis.cpp RegAllocBigBlock.cpp RegAllocLocal.cpp SelectionDAG/ScheduleDAGRRList.cpp VirtRegMap.cpp

2008-01-06 Thread Owen Anderson
Author: resistor Date: Sun Jan 6 19:35:56 2008 New Revision: 45673 URL: http://llvm.org/viewvc/llvm-project?rev=45673&view=rev Log: Update CodeGen for MRegisterInfo --> TargetInstrInfo changes. Modified: llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp llvm/trunk/lib/CodeGen/RegAllocBigBl

[llvm-commits] [llvm] r45674 - in /llvm/trunk: include/llvm/CodeGen/ include/llvm/Target/ lib/CodeGen/ lib/CodeGen/SelectionDAG/ lib/Target/ lib/Target/ARM/ lib/Target/Mips/ lib/Target/PowerPC/ lib/Ta

2008-01-06 Thread Chris Lattner
Author: lattner Date: Sun Jan 6 19:56:04 2008 New Revision: 45674 URL: http://llvm.org/viewvc/llvm-project?rev=45674&view=rev Log: Rename MachineInstr::getInstrDescriptor -> getDesc(), which reflects that it is cheap and efficient to get. Move a variety of predicates from TargetInstrInfo into T

Re: [llvm-commits] [llvm] r45626 - /llvm/trunk/lib/Target/X86/X86InstrInfo.cpp

2008-01-06 Thread Evan Cheng
On Jan 5, 2008, at 3:37 PM, Bill Wendling wrote: > On Jan 5, 2008, at 2:49 AM, Evan Cheng wrote: >> On Jan 5, 2008, at 1:18 AM, Bill Wendling <[EMAIL PROTECTED]> wrote: >> >>> --- llvm/trunk/lib/Target/X86/X86InstrInfo.cpp (original) >>> +++ llvm/trunk/lib/Target/X86/X86InstrInfo.cpp Sat Jan 5 0

[llvm-commits] [llvm] r45675 - /llvm/trunk/lib/Transforms/Scalar/LowerGC.cpp

2008-01-06 Thread Gordon Henriksen
Author: gordon Date: Sun Jan 6 20:29:04 2008 New Revision: 45675 URL: http://llvm.org/viewvc/llvm-project?rev=45675&view=rev Log: Deleting an empty file. Thanks, /usr/bin/patch! Removed: llvm/trunk/lib/Transforms/Scalar/LowerGC.cpp Removed: llvm/trunk/lib/Transforms/Scalar/LowerGC.cpp URL:

[llvm-commits] [llvm] r45676 - in /llvm/trunk: include/llvm/CallingConv.h include/llvm/CodeGen/LinkAllCodegenComponents.h lib/CodeGen/OcamlCollector.cpp test/CodeGen/Generic/GC/frame_size.ll test/Code

2008-01-06 Thread Gordon Henriksen
Author: gordon Date: Sun Jan 6 20:31:11 2008 New Revision: 45676 URL: http://llvm.org/viewvc/llvm-project?rev=45676&view=rev Log: Setting GlobalDirective in TargetAsmInfo by default rather than providing a misleading facility. It's used once in the MIPS backend and hardcoded as "\t.globl\t" every

[llvm-commits] [llvm] r45677 - in /llvm/trunk: include/llvm/Target/TargetInstrInfo.h lib/CodeGen/MachineInstr.cpp lib/CodeGen/SelectionDAG/ScheduleDAG.cpp lib/CodeGen/TargetInstrInfoImpl.cpp lib/Targe

2008-01-06 Thread Chris Lattner
Author: lattner Date: Sun Jan 6 20:39:19 2008 New Revision: 45677 URL: http://llvm.org/viewvc/llvm-project?rev=45677&view=rev Log: Add predicates methods to TargetOperandInfo, and switch all clients over to using them, instead of diddling Flags directly. Change the various flags from const vari

[llvm-commits] [llvm] r45678 - in /llvm/trunk: include/llvm/Target/TargetInstrInfo.h lib/CodeGen/SelectionDAG/ScheduleDAG.cpp

2008-01-06 Thread Chris Lattner
Author: lattner Date: Sun Jan 6 20:46:03 2008 New Revision: 45678 URL: http://llvm.org/viewvc/llvm-project?rev=45678&view=rev Log: remove some uses of MachineOpCode, move getSchedClass into TargetInstrDescriptor from TargetInstrInfo. Modified: llvm/trunk/include/llvm/Target/TargetInstrInfo

Re: [llvm-commits] [llvm] r45626 - /llvm/trunk/lib/Target/X86/X86InstrInfo.cpp

2008-01-06 Thread Evan Cheng
By the way. This check is still not quite right. // Loads from stubs of global addresses are side effect free. if (Reg != 0 && MRegisterInfo::isVirtualRegister(Reg) && In dynamic-no-pic mode, Reg can be 0. So it should be Reg == 0 || ... Evan On Jan 5, 2008, at 3:37 PM, Bill Wendl

[llvm-commits] [llvm] r45679 - in /llvm/trunk: include/llvm/Target/TargetInstrInfo.h lib/Target/ARM/ARMInstrInfo.cpp lib/Target/Alpha/AlphaInstrInfo.cpp lib/Target/CellSPU/SPUInstrInfo.cpp lib/Target/

2008-01-06 Thread Chris Lattner
Author: lattner Date: Sun Jan 6 20:48:55 2008 New Revision: 45679 URL: http://llvm.org/viewvc/llvm-project?rev=45679&view=rev Log: remove MachineOpCode typedef. Modified: llvm/trunk/include/llvm/Target/TargetInstrInfo.h llvm/trunk/lib/Target/ARM/ARMInstrInfo.cpp llvm/trunk/lib/Target

[llvm-commits] [llvm] r45680 - in /llvm/trunk: include/llvm/Target/ lib/CodeGen/ lib/CodeGen/SelectionDAG/ lib/Target/ lib/Target/ARM/ lib/Target/Mips/ lib/Target/PowerPC/ lib/Target/X86/

2008-01-06 Thread Chris Lattner
Author: lattner Date: Sun Jan 6 21:13:06 2008 New Revision: 45680 URL: http://llvm.org/viewvc/llvm-project?rev=45680&view=rev Log: Move a bunch more accessors from TargetInstrInfo to TargetInstrDescriptor Modified: llvm/trunk/include/llvm/Target/TargetInstrInfo.h llvm/trunk/lib/CodeGen/L

[llvm-commits] [llvm] r45681 - /llvm/trunk/include/llvm/CallingConv.h

2008-01-06 Thread Gordon Henriksen
Author: gordon Date: Sun Jan 6 21:23:52 2008 New Revision: 45681 URL: http://llvm.org/viewvc/llvm-project?rev=45681&view=rev Log: Removing a leaked file. Modified: llvm/trunk/include/llvm/CallingConv.h Modified: llvm/trunk/include/llvm/CallingConv.h URL: http://llvm.org/viewvc/llvm-project

[llvm-commits] CVS: llvm-www/OpenProjects.html

2008-01-06 Thread Chris Lattner
Changes in directory llvm-www: OpenProjects.html updated: 1.32 -> 1.33 --- Log message: add a project. --- Diffs of the changes: (+6 -1) OpenProjects.html |7 ++- 1 files changed, 6 insertions(+), 1 deletion(-) Index: llvm-www/OpenProjects.html diff -u llvm-www/OpenProjects.html:

[llvm-commits] [llvm] r45683 - in /llvm/trunk/lib/Target: CellSPU/SPUInstrFormats.td PowerPC/PPCInstrFormats.td

2008-01-06 Thread Chris Lattner
Author: lattner Date: Sun Jan 6 22:55:09 2008 New Revision: 45683 URL: http://llvm.org/viewvc/llvm-project?rev=45683&view=rev Log: no need to explicitly clear these fields. Modified: llvm/trunk/lib/Target/CellSPU/SPUInstrFormats.td llvm/trunk/lib/Target/PowerPC/PPCInstrFormats.td Modifi

[llvm-commits] [llvm] r45685 - /llvm/trunk/lib/Target/Target.td

2008-01-06 Thread Chris Lattner
Author: lattner Date: Sun Jan 6 22:57:42 2008 New Revision: 45685 URL: http://llvm.org/viewvc/llvm-project?rev=45685&view=rev Log: remove a dead field. Modified: llvm/trunk/lib/Target/Target.td Modified: llvm/trunk/lib/Target/Target.td URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/li

[llvm-commits] [llvm] r45684 - in /llvm/trunk/utils/TableGen: CodeGenInstruction.cpp CodeGenInstruction.h InstrInfoEmitter.cpp

2008-01-06 Thread Chris Lattner
Author: lattner Date: Sun Jan 6 22:57:31 2008 New Revision: 45684 URL: http://llvm.org/viewvc/llvm-project?rev=45684&view=rev Log: the name field of instructions is never set to a non-empty string, just unconditionally use the def name of the instruction. Modified: llvm/trunk/utils/TableGen

[llvm-commits] [llvm] r45686 - in /llvm/trunk: include/llvm/Target/TargetInstrInfo.h utils/TableGen/InstrInfoEmitter.cpp

2008-01-06 Thread Chris Lattner
Author: lattner Date: Sun Jan 6 23:06:49 2008 New Revision: 45686 URL: http://llvm.org/viewvc/llvm-project?rev=45686&view=rev Log: Move M_* flags down in the file. Move SchedClass up in the TargetInstrDescriptor class and shrink to 16-bits, saving a word in TargetInstrDescriptor. Add some com

[llvm-commits] [llvm] r45687 - in /llvm/trunk: include/llvm/Target/TargetInstrInfo.h lib/CodeGen/MachineInstr.cpp lib/CodeGen/SelectionDAG/ScheduleDAG.cpp lib/Target/X86/X86CodeEmitter.cpp utils/Table

2008-01-06 Thread Chris Lattner
Author: lattner Date: Sun Jan 6 23:19:29 2008 New Revision: 45687 URL: http://llvm.org/viewvc/llvm-project?rev=45687&view=rev Log: rename hasVariableOperands() -> isVariadic(). Add some comments. Evan, please review the comments I added to getNumDefs to make sure that they are accurate, thx. Mo

[llvm-commits] [llvm] r45688 - /llvm/trunk/include/llvm/Target/TargetInstrInfo.h

2008-01-06 Thread Chris Lattner
Author: lattner Date: Sun Jan 6 23:38:38 2008 New Revision: 45688 URL: http://llvm.org/viewvc/llvm-project?rev=45688&view=rev Log: add some mroe comments, add a isImplicitDef() method, add isConditionalBranch() and isUnconditionalBranch() methods. Modified: llvm/trunk/include/llvm/Target/Ta

[llvm-commits] [llvm] r45689 - in /llvm/trunk/lib/CodeGen: IfConversion.cpp LiveIntervalAnalysis.cpp

2008-01-06 Thread Chris Lattner
Author: lattner Date: Sun Jan 6 23:40:58 2008 New Revision: 45689 URL: http://llvm.org/viewvc/llvm-project?rev=45689&view=rev Log: simplify some code using new predicates Modified: llvm/trunk/lib/CodeGen/IfConversion.cpp llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp Modified: llvm/tr

Re: [llvm-commits] [llvm] r45676 - in /llvm/trunk: include/llvm/CallingConv.h include/llvm/CodeGen/LinkAllCodegenComponents.h lib/CodeGen/OcamlCollector.cpp test/CodeGen/Generic/GC/frame_size.ll test/

2008-01-06 Thread Chris Lattner
On Jan 6, 2008, at 6:31 PM, Gordon Henriksen wrote: > URL: http://llvm.org/viewvc/llvm-project?rev=45676&view=rev > Log: > Setting GlobalDirective in TargetAsmInfo by default rather than > providing a misleading facility. It's used once in the MIPS backend > and hardcoded as "\t.globl\t" everywhere

Re: [llvm-commits] [llvm] r45626 - /llvm/trunk/lib/Target/X86/X86InstrInfo.cpp

2008-01-06 Thread Chris Lattner
On Jan 6, 2008, at 6:45 PM, Evan Cheng wrote: > By the way. This check is still not quite right. > > // Loads from stubs of global addresses are side effect free. > if (Reg != 0 && MRegisterInfo::isVirtualRegister(Reg) && > > In dynamic-no-pic mode, Reg can be 0. So it should be Reg ==

[llvm-commits] [llvm] r45690 - in /llvm/trunk: include/llvm/Target/TargetInstrInfo.h lib/CodeGen/SelectionDAG/ScheduleDAG.cpp lib/CodeGen/TwoAddressInstructionPass.cpp

2008-01-06 Thread Chris Lattner
Author: lattner Date: Mon Jan 7 00:21:53 2008 New Revision: 45690 URL: http://llvm.org/viewvc/llvm-project?rev=45690&view=rev Log: add more and significantly better comments to the rest of the machineinstr flags that can be set. Add predicates for the ones lacking it, and switch some clients ove

[llvm-commits] [llvm] r45691 - /llvm/trunk/lib/Target/PowerPC/PPCHazardRecognizers.cpp

2008-01-06 Thread Chris Lattner
Author: lattner Date: Mon Jan 7 00:37:29 2008 New Revision: 45691 URL: http://llvm.org/viewvc/llvm-project?rev=45691&view=rev Log: use predicate. Modified: llvm/trunk/lib/Target/PowerPC/PPCHazardRecognizers.cpp Modified: llvm/trunk/lib/Target/PowerPC/PPCHazardRecognizers.cpp URL: http://ll

[llvm-commits] [llvm] r45692 - in /llvm/trunk: include/llvm/Target/TargetInstrInfo.h lib/CodeGen/SelectionDAG/ScheduleDAG.cpp lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp lib/CodeGen/TwoAddressInstr

2008-01-06 Thread Chris Lattner
Author: lattner Date: Mon Jan 7 00:42:05 2008 New Revision: 45692 URL: http://llvm.org/viewvc/llvm-project?rev=45692&view=rev Log: Rename all the M_* flags to be namespace qualified enums, and switch all clients over to using predicates instead of these flags directly. These are now private valu

[llvm-commits] [llvm] r45693 - /llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp

2008-01-06 Thread Chris Lattner
Author: lattner Date: Mon Jan 7 00:47:00 2008 New Revision: 45693 URL: http://llvm.org/viewvc/llvm-project?rev=45693&view=rev Log: simplify some code. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp URL:

[llvm-commits] [llvm] r45694 - /llvm/trunk/include/llvm/Target/TargetInstrInfo.h

2008-01-06 Thread Chris Lattner
Author: lattner Date: Mon Jan 7 00:47:10 2008 New Revision: 45694 URL: http://llvm.org/viewvc/llvm-project?rev=45694&view=rev Log: remove a dead method. Modified: llvm/trunk/include/llvm/Target/TargetInstrInfo.h Modified: llvm/trunk/include/llvm/Target/TargetInstrInfo.h URL: http://llvm.or