[llvm-commits] [llvm-gcc-4.0] r40622 - in /llvm-gcc-4.0/trunk/gcc: llvm-backend.cpp llvm-convert.cpp llvm-internal.h llvm-types.cpp

2007-07-30 Thread Christopher Lamb
Author: clamb Date: Tue Jul 31 01:50:25 2007 New Revision: 40622 URL: http://llvm.org/viewvc/llvm-project?rev=40622&view=rev Log: Add support for scraping the function decl for restrict qualifiers to handle restrict function parameters for both C/C++. Thanks to Sheng Zhou for pointing the way...

[llvm-commits] [llvm] r40619 - /llvm/trunk/lib/AsmParser/llvmAsmParser.y

2007-07-30 Thread Reid Spencer
Author: reid Date: Tue Jul 31 01:37:27 2007 New Revision: 40619 URL: http://llvm.org/viewvc/llvm-project?rev=40619&view=rev Log: Allow the INREG parameter attribute to be added to functions. This permits the function result to be passed in a register. This implements the GCC regparm function attri

[llvm-commits] [llvm] r40618 - /llvm/trunk/lib/VMCore/Verifier.cpp

2007-07-30 Thread Reid Spencer
Author: reid Date: Tue Jul 31 01:33:37 2007 New Revision: 40618 URL: http://llvm.org/viewvc/llvm-project?rev=40618&view=rev Log: The InReg parameter attribute is valid on function results. The llvm-gcc-4.0 front end converts regparm attribute on the gcc function into InReg attribute on the llvm f

[llvm-commits] [llvm] r40617 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

2007-07-30 Thread Evan Cheng
Author: evancheng Date: Tue Jul 31 01:21:44 2007 New Revision: 40617 URL: http://llvm.org/viewvc/llvm-project?rev=40617&view=rev Log: This isn't safe when there are uses of load's chain result. Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Modified: llvm/trunk/lib/Target/X86/X86ISe

[llvm-commits] [llvm] r40616 - /llvm/trunk/lib/System/DynamicLibrary.cpp

2007-07-30 Thread Chris Lattner
Author: lattner Date: Tue Jul 31 01:00:51 2007 New Revision: 40616 URL: http://llvm.org/viewvc/llvm-project?rev=40616&view=rev Log: Fix PR1581, patch by Timo Savola Modified: llvm/trunk/lib/System/DynamicLibrary.cpp Modified: llvm/trunk/lib/System/DynamicLibrary.cpp URL: http://llvm.org/vi

[llvm-commits] [llvm] r40613 - in /llvm/trunk/lib/AsmParser: Lexer.cpp.cvs Lexer.l.cvs

2007-07-30 Thread Reid Spencer
Author: reid Date: Mon Jul 30 22:55:56 2007 New Revision: 40613 URL: http://llvm.org/viewvc/llvm-project?rev=40613&view=rev Log: Regenerate (again). Modified: llvm/trunk/lib/AsmParser/Lexer.cpp.cvs llvm/trunk/lib/AsmParser/Lexer.l.cvs Modified: llvm/trunk/lib/AsmParser/Lexer.cpp.cvs URL:

[llvm-commits] [llvm] r40612 - /llvm/trunk/lib/AsmParser/Lexer.l

2007-07-30 Thread Reid Spencer
Author: reid Date: Mon Jul 30 22:55:43 2007 New Revision: 40612 URL: http://llvm.org/viewvc/llvm-project?rev=40612&view=rev Log: Don't include newlines in the whitespace before newline (WSNL) rule. Fix the comment for WSNL to describe its actual function. Modified: llvm/trunk/lib/AsmParser/Le

[llvm-commits] [llvm] r40610 - in /llvm/trunk: lib/AsmParser/Lexer.l lib/AsmParser/llvmAsmParser.y test/Assembler/2007-07-30-AutoUpgradeZextSext.ll

2007-07-30 Thread Reid Spencer
Author: reid Date: Mon Jul 30 21:57:37 2007 New Revision: 40610 URL: http://llvm.org/viewvc/llvm-project?rev=40610&view=rev Log: For PR1553: Make the AsmParser auto-upgrade the old zext and sext keywords for parameter attributes and handle the end-of-line ambiguity. Added: llvm/trunk/test/As

[llvm-commits] [llvm] r40609 - /llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp

2007-07-30 Thread Devang Patel
Author: dpatel Date: Mon Jul 30 18:07:10 2007 New Revision: 40609 URL: http://llvm.org/viewvc/llvm-project?rev=40609&view=rev Log: If loop can be unswitched again, then do it yourself. Modified: llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp Modified: llvm/trunk/lib/Transforms/Scalar/Loo

[llvm-commits] [llvm] r40608 - /llvm/trunk/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp

2007-07-30 Thread Anton Korobeynikov
Author: asl Date: Mon Jul 30 18:03:25 2007 New Revision: 40608 URL: http://llvm.org/viewvc/llvm-project?rev=40608&view=rev Log: Add a comment: don't expect from external function resolver in interpreter things, it wasn't designed to handle. Modified: llvm/trunk/lib/ExecutionEngine/Interpreter

Re: [llvm-commits] Patch for X86 to use subregs

2007-07-30 Thread Christopher Lamb
On Jul 30, 2007, at 2:40 PM, Evan Cheng wrote: > > I appreciate you're trying to think of ways to expand the use of > subreg work. But x86-64 implicit zero-extension is not the same > problem. Trying to solve the x86-64 optimization issue this way is > a unacceptable hack. Your subreg pass

Re: [llvm-commits] Patch for X86 to use subregs

2007-07-30 Thread Evan Cheng
On Jul 30, 2007, at 12:42 PM, Christopher Lamb wrote: I contend that insert_subreg is target specific already. It currently requires a target specific subreg index, which is a kind of target specific hook, that tells coalescing how to deal with it. A two operand insert_subreg (or an inse

[llvm-commits] [llvm] r40607 - /llvm/trunk/lib/Transforms/Scalar/GVN.cpp

2007-07-30 Thread Owen Anderson
Author: resistor Date: Mon Jul 30 16:26:39 2007 New Revision: 40607 URL: http://llvm.org/viewvc/llvm-project?rev=40607&view=rev Log: Avoid potential iterator invalidation problems. Modified: llvm/trunk/lib/Transforms/Scalar/GVN.cpp Modified: llvm/trunk/lib/Transforms/Scalar/GVN.cpp URL: htt

[llvm-commits] [llvm] r40606 - /llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp

2007-07-30 Thread Devang Patel
Author: dpatel Date: Mon Jul 30 16:10:44 2007 New Revision: 40606 URL: http://llvm.org/viewvc/llvm-project?rev=40606&view=rev Log: Remove dead code. Modified: llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp Modified: llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp URL: http://llvm.org/

[llvm-commits] [llvm] r40605 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

2007-07-30 Thread Scott Michel
Author: pingbak Date: Mon Jul 30 16:00:31 2007 New Revision: 40605 URL: http://llvm.org/viewvc/llvm-project?rev=40605&view=rev Log: - Allow custom lowering for CTPOP, CTTZ, CTLZ. - Fixed an existing unexpanded tab. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Modified: llvm/

[llvm-commits] [llvm] r40604 - /llvm/trunk/lib/Transforms/Utils/LCSSA.cpp

2007-07-30 Thread Devang Patel
Author: dpatel Date: Mon Jul 30 15:23:45 2007 New Revision: 40604 URL: http://llvm.org/viewvc/llvm-project?rev=40604&view=rev Log: LCSSA preserves dom info. Modified: llvm/trunk/lib/Transforms/Utils/LCSSA.cpp Modified: llvm/trunk/lib/Transforms/Utils/LCSSA.cpp URL: http://llvm.org/viewvc/l

[llvm-commits] [llvm] r40603 - /llvm/trunk/lib/Transforms/Scalar/LoopRotation.cpp

2007-07-30 Thread Devang Patel
Author: dpatel Date: Mon Jul 30 15:22:53 2007 New Revision: 40603 URL: http://llvm.org/viewvc/llvm-project?rev=40603&view=rev Log: Loop Rotation pass preserves dominator tree and frontier. Modified: llvm/trunk/lib/Transforms/Scalar/LoopRotation.cpp Modified: llvm/trunk/lib/Transforms/Scalar/

[llvm-commits] [llvm] r40602 - /llvm/trunk/lib/Transforms/Scalar/LICM.cpp

2007-07-30 Thread Devang Patel
Author: dpatel Date: Mon Jul 30 15:19:59 2007 New Revision: 40602 URL: http://llvm.org/viewvc/llvm-project?rev=40602&view=rev Log: LICM preserves scalar evolution and dom frontier. Modified: llvm/trunk/lib/Transforms/Scalar/LICM.cpp Modified: llvm/trunk/lib/Transforms/Scalar/LICM.cpp URL:

[llvm-commits] [llvm] r40601 - /llvm/trunk/configure

2007-07-30 Thread Reid Spencer
Author: reid Date: Mon Jul 30 15:13:24 2007 New Revision: 40601 URL: http://llvm.org/viewvc/llvm-project?rev=40601&view=rev Log: Regenerate for __dso_handle, per Anton's request. Modified: llvm/trunk/configure Modified: llvm/trunk/configure URL: http://llvm.org/viewvc/llvm-project/llvm/trun

[llvm-commits] [llvm] r40600 - in /llvm/trunk: autoconf/configure.ac include/llvm/Config/config.h.in lib/ExecutionEngine/JIT/JIT.cpp

2007-07-30 Thread Anton Korobeynikov
Author: asl Date: Mon Jul 30 15:02:02 2007 New Revision: 40600 URL: http://llvm.org/viewvc/llvm-project?rev=40600&view=rev Log: Add detection of __dso_handle presence during configure. Use this information in the JITer (short path is added for darwin). This is needed to properly JIT llvm-gcc-4.2

[llvm-commits] [llvm] r40599 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

2007-07-30 Thread Reid Spencer
Author: reid Date: Mon Jul 30 14:53:57 2007 New Revision: 40599 URL: http://llvm.org/viewvc/llvm-project?rev=40599&view=rev Log: Fix a typo/thinko. Modified: llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp Modified: llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp URL: ht

Re: [llvm-commits] Patch for X86 to use subregs

2007-07-30 Thread Christopher Lamb
On Jul 30, 2007, at 11:06 AM, Evan Cheng wrote: On Jul 30, 2007, at 12:02 AM, Christopher Lamb wrote: On Jul 29, 2007, at 10:20 PM, Evan Cheng wrote: On Jul 29, 2007, at 9:37 PM, Christopher Lamb wrote: On Jul 29, 2007, at 6:20 PM, Evan Cheng wrote: Sent from my iPhone On Jul 28, 2

Re: [llvm-commits] Patch: JIT support for ARM

2007-07-30 Thread Evan Cheng
Very nice! +def NoneFormat : Format<0>; def Pseudo: Format<1>; +def Multiply: Format<2>; def Branch: Format<3>; Some naming suggestions. NoneFormat -> Pseudo, Multiply -> MultiplyFrm (or MulFrm). +class AIlist pattern> + : Iasm,"",pattern>; Please watch out for "80 col vio

[llvm-commits] [llvm] r40598 - in /llvm/trunk: lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp test/CodeGen/Alpha/illegal-element-type.ll test/CodeGen/PowerPC/illegal-element-type.ll

2007-07-30 Thread Dan Gohman
Author: djg Date: Mon Jul 30 14:09:17 2007 New Revision: 40598 URL: http://llvm.org/viewvc/llvm-project?rev=40598&view=rev Log: Fix a bug in getCopyFromParts turned up in the testcase for PR1132. Added: llvm/trunk/test/CodeGen/Alpha/illegal-element-type.ll llvm/trunk/test/CodeGen/PowerPC/

Re: [llvm-commits] [llvm-gcc-4.2] r40571 - in /llvm-gcc-4.2/trunk/gcc: llvm-backend.cpp toplev.c

2007-07-30 Thread Devang Patel
On Jul 28, 2007, at 11:28 AM, Anton Korobeynikov wrote: > -- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original) > +++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Sat Jul 28 13:28:30 2007 > @@ -234,7 +234,11 @@ > delete PerModulePasses; > delete CodeGenPasses; > > -createOptimizationPasses

Re: [llvm-commits] Patch for X86 to use subregs

2007-07-30 Thread Evan Cheng
On Jul 30, 2007, at 12:02 AM, Christopher Lamb wrote: On Jul 29, 2007, at 10:20 PM, Evan Cheng wrote: On Jul 29, 2007, at 9:37 PM, Christopher Lamb wrote: On Jul 29, 2007, at 6:20 PM, Evan Cheng wrote: Sent from my iPhone On Jul 28, 2007, at 4:36 PM, Christopher Lamb <[EMAIL PROTECT

Re: [llvm-commits] [llvm] r40069 - in /llvm/trunk: docs/ lib/AsmParser/ lib/VMCore/ test/ test/Assembler/ test/CFrontend/ test/CodeGen/ARM/ test/CodeGen/Alpha/ test/CodeGen/PowerPC/ test/CodeGen/X86/

2007-07-30 Thread Chris Lattner
On Jul 19, 2007, at 8:53 PM, Reid Spencer wrote: > On Thu, 2007-07-19 at 20:32 -0700, Chris Lattner wrote: >> On Jul 19, 2007, at 4:13 PM, Reid Spencer wrote: >> >>> Author: reid >>> Date: Thu Jul 19 18:13:04 2007 >>> New Revision: 40069 >>> >>> URL: http://llvm.org/viewvc/llvm-project?rev=40069&

[llvm-commits] [llvm] r40596 - in /llvm/trunk/lib: Analysis/MemoryDependenceAnalysis.cpp Transforms/Scalar/GVN.cpp

2007-07-30 Thread Owen Anderson
Author: resistor Date: Mon Jul 30 12:29:24 2007 New Revision: 40596 URL: http://llvm.org/viewvc/llvm-project?rev=40596&view=rev Log: Use more caching when computing non-local dependence. This makes bzip2 not use up the entire 32-bit address space. Modified: llvm/trunk/lib/Analysis/MemoryDepe

[llvm-commits] [llvm] r40595 - in /llvm/trunk: lib/Transforms/Scalar/GVN.cpp test/Transforms/GVN/2007-07-30-PredIDom.ll

2007-07-30 Thread Owen Anderson
Author: resistor Date: Mon Jul 30 11:57:08 2007 New Revision: 40595 URL: http://llvm.org/viewvc/llvm-project?rev=40595&view=rev Log: Fix a bug caused by indiscriminantly asking for the dominators of a predecessor. Added: llvm/trunk/test/Transforms/GVN/2007-07-30-PredIDom.ll Modified: llvm

[llvm-commits] [llvm] r40594 - in /llvm/trunk/lib/Target/X86: X86ATTAsmPrinter.cpp X86AsmPrinter.cpp

2007-07-30 Thread Dan Gohman
Author: djg Date: Mon Jul 30 10:08:02 2007 New Revision: 40594 URL: http://llvm.org/viewvc/llvm-project?rev=40594&view=rev Log: Use tabs more consistently in assembler pseudo-ops. Modified: llvm/trunk/lib/Target/X86/X86ATTAsmPrinter.cpp llvm/trunk/lib/Target/X86/X86AsmPrinter.cpp Modifie

[llvm-commits] [llvm] r40593 - /llvm/trunk/lib/CodeGen/AsmPrinter.cpp

2007-07-30 Thread Dan Gohman
Author: djg Date: Mon Jul 30 10:06:25 2007 New Revision: 40593 URL: http://llvm.org/viewvc/llvm-project?rev=40593&view=rev Log: Print a space between the comment character and the basic block name, for prettiness. Modified: llvm/trunk/lib/CodeGen/AsmPrinter.cpp Modified: llvm/trunk/lib/CodeG

[llvm-commits] [llvm] r40592 - /llvm/trunk/include/llvm/Target/TargetMachine.h

2007-07-30 Thread Dan Gohman
Author: djg Date: Mon Jul 30 10:04:59 2007 New Revision: 40592 URL: http://llvm.org/viewvc/llvm-project?rev=40592&view=rev Log: Fix the comments for the 'fast' parameter in addPassesToEmitFile. Modified: llvm/trunk/include/llvm/Target/TargetMachine.h Modified: llvm/trunk/include/llvm/Target/

[llvm-commits] [llvm] r40591 - /llvm/trunk/tools/opt/opt.cpp

2007-07-30 Thread Dan Gohman
Author: djg Date: Mon Jul 30 10:01:09 2007 New Revision: 40591 URL: http://llvm.org/viewvc/llvm-project?rev=40591&view=rev Log: Remove a FIXME comment that wasn't removed when the code it accompanied was removed. Modified: llvm/trunk/tools/opt/opt.cpp Modified: llvm/trunk/tools/opt/opt.cpp U

[llvm-commits] [llvm] r40590 - in /llvm/trunk: include/llvm/Target/TargetMachineRegistry.h lib/Target/TargetMachineRegistry.cpp

2007-07-30 Thread Dan Gohman
Author: djg Date: Mon Jul 30 09:58:59 2007 New Revision: 40590 URL: http://llvm.org/viewvc/llvm-project?rev=40590&view=rev Log: Fix the comment for getClosestTargetForJIT to reflect the fact that it does not have a Module parameter. Modified: llvm/trunk/include/llvm/Target/TargetMachineRegist

[llvm-commits] [llvm] r40589 - in /llvm/trunk: include/llvm/Target/TargetData.h lib/ExecutionEngine/Interpreter/Interpreter.h lib/Target/ARM/ARMFrameInfo.h utils/TableGen/CallingConvEmitter.h

2007-07-30 Thread Dan Gohman
Author: djg Date: Mon Jul 30 09:51:59 2007 New Revision: 40589 URL: http://llvm.org/viewvc/llvm-project?rev=40589&view=rev Log: More explicit keywords. Modified: llvm/trunk/include/llvm/Target/TargetData.h llvm/trunk/lib/ExecutionEngine/Interpreter/Interpreter.h llvm/trunk/lib/Target/

[llvm-commits] [llvm] r40588 - in /llvm/trunk: include/llvm/PassManager.h include/llvm/PassManagers.h lib/VMCore/PassManager.cpp

2007-07-30 Thread Dan Gohman
Author: djg Date: Mon Jul 30 09:51:13 2007 New Revision: 40588 URL: http://llvm.org/viewvc/llvm-project?rev=40588&view=rev Log: Fix pastos in comments for doFinalization functions. Modified: llvm/trunk/include/llvm/PassManager.h llvm/trunk/include/llvm/PassManagers.h llvm/trunk/lib/VM

Re: [llvm-commits] [llvm-gcc-4.0] r40582 - /llvm-gcc-4.0/trunk/gcc/llvm-types.cpp

2007-07-30 Thread Anton Korobeynikov
Hello, Christopher. > URL: http://llvm.org/viewvc/llvm-project?rev=40582&view=rev > Log: > Add support to emit noalias attribute on function parameters when the > __restrict qualifier is used. Please, don't forget, that we have two llvm-gcc versions now. -- With best regards, Anton Korobeynikov

[llvm-commits] [llvm] r40587 - /llvm/trunk/test/CodeGen/PowerPC/vec_fneg.ll

2007-07-30 Thread Evan Cheng
Author: evancheng Date: Mon Jul 30 02:52:03 2007 New Revision: 40587 URL: http://llvm.org/viewvc/llvm-project?rev=40587&view=rev Log: New test case. Added: llvm/trunk/test/CodeGen/PowerPC/vec_fneg.ll Added: llvm/trunk/test/CodeGen/PowerPC/vec_fneg.ll URL: http://llvm.org/viewvc/llvm-project

[llvm-commits] [llvm] r40586 - in /llvm/trunk/lib/Target/PowerPC: PPCISelLowering.cpp PPCISelLowering.h PPCInstrAltivec.td

2007-07-30 Thread Evan Cheng
Author: evancheng Date: Mon Jul 30 02:51:22 2007 New Revision: 40586 URL: http://llvm.org/viewvc/llvm-project?rev=40586&view=rev Log: Vector fneg must be expanded into fsub -0.0, X. Modified: llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp llvm/trunk/lib/Target/PowerPC/PPCISelLowering.h

Re: [llvm-commits] Patch for X86 to use subregs

2007-07-30 Thread Christopher Lamb
On Jul 29, 2007, at 10:20 PM, Evan Cheng wrote: On Jul 29, 2007, at 9:37 PM, Christopher Lamb wrote: On Jul 29, 2007, at 6:20 PM, Evan Cheng wrote: Sent from my iPhone On Jul 28, 2007, at 4:36 PM, Christopher Lamb <[EMAIL PROTECTED]> wrote: On Jul 28, 2007, at 2:26 PM, Evan Cheng w