[llvm-commits] [llvm] r44858 - in /llvm/trunk: include/llvm/Bitcode/LLVMBitCodes.h include/llvm/DerivedTypes.h include/llvm/GlobalVariable.h include/llvm/Instructions.h lib/AsmParser/LLLexer.cpp lib/A

2007-12-11 Thread Christopher Lamb
Author: clamb Date: Tue Dec 11 02:59:05 2007 New Revision: 44858 URL: http://llvm.org/viewvc/llvm-project?rev=44858&view=rev Log: Implement address space attribute for LLVM pointer types. Address spaces are regions of memory that have a target specific relationship, as described in the Embedded

Re: [llvm-commits] [llvm] r44825 - in /llvm/trunk: include/llvm/Target/TargetData.h lib/Target/TargetData.cpp

2007-12-11 Thread Duncan Sands
Hi Chris, > Duncan, this patch gets llvm-gcc to build, but it still doesn't > answer the big question: why does TargetData contain information > about the host? well, it needed to go somewhere. Any suggestions for a better place? Another possibility is to have a function isWrongEndian in tar

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

2007-12-11 Thread Christopher Lamb
Author: clamb Date: Tue Dec 11 03:31:00 2007 New Revision: 44860 URL: http://llvm.org/viewvc/llvm-project?rev=44860&view=rev Log: Add information on address space qualifiers for pointer types and global declarations to the LangRef. Modified: llvm/trunk/docs/LangRef.html Modified: llvm/trunk

[llvm-commits] [support] r44862 - /support/trunk/include/llvm/Support/StringPool.h

2007-12-11 Thread Reid Spencer
Author: reid Date: Tue Dec 11 03:51:22 2007 New Revision: 44862 URL: http://llvm.org/viewvc/llvm-project?rev=44862&view=rev Log: Add a missing file to the support module. Added: support/trunk/include/llvm/Support/StringPool.h - copied unchanged from r44861, llvm/trunk/include/llvm/Supp

[llvm-commits] [support] r44863 - /support/trunk/lib/Support/StringPool.cpp

2007-12-11 Thread Reid Spencer
Author: reid Date: Tue Dec 11 03:54:37 2007 New Revision: 44863 URL: http://llvm.org/viewvc/llvm-project?rev=44863&view=rev Log: Add a missing file to the support module. Added: support/trunk/lib/Support/StringPool.cpp - copied unchanged from r44862, llvm/trunk/lib/Support/StringPool.cp

[llvm-commits] [llvm] r44861 - /llvm/trunk/CREDITS.TXT

2007-12-11 Thread Christopher Lamb
Author: clamb Date: Tue Dec 11 03:32:07 2007 New Revision: 44861 URL: http://llvm.org/viewvc/llvm-project?rev=44861&view=rev Log: Update credits. Modified: llvm/trunk/CREDITS.TXT Modified: llvm/trunk/CREDITS.TXT URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CREDITS.TXT?rev=44861&r1=44

[llvm-commits] [llvm] r44864 - /llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp

2007-12-11 Thread Duncan Sands
Author: baldrick Date: Tue Dec 11 06:20:47 2007 New Revision: 44864 URL: http://llvm.org/viewvc/llvm-project?rev=44864&view=rev Log: Fix compilation. Modified: llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp Modified: llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp URL: http://llvm.org/view

Re: [llvm-commits] [llvm] r44851 - /llvm/trunk/include/llvm/ADT/Trie.h

2007-12-11 Thread Wojciech Matyjewicz
Anton Korobeynikov wrote: > +template > +class Trie { > + class Edge; > + class Node; > + > + class Edge { > +std::string Label; > +Node *Parent, *Child; The Parent field seems to be unused internally by the Trie implementation. Assuming the Edge interface is invisible for Trie clients,

[llvm-commits] [llvm] r44865 - in /llvm/trunk/test/Assembler: 2007-04-20-AlignedLoad.ll 2007-04-20-AlignedStore.ll

2007-12-11 Thread Dan Gohman
Author: djg Date: Tue Dec 11 09:41:11 2007 New Revision: 44865 URL: http://llvm.org/viewvc/llvm-project?rev=44865&view=rev Log: Don't redirect stderr when it isn't needed. Modified: llvm/trunk/test/Assembler/2007-04-20-AlignedLoad.ll llvm/trunk/test/Assembler/2007-04-20-AlignedStore.ll M

[llvm-commits] [llvm] r44866 - in /llvm/trunk/test: Assembler/2004-11-28-InvalidTypeCrash.ll Assembler/2005-01-31-CallingAggregateFunction.ll CFrontend/2006-09-25-DebugFilename.c Feature/globalredefin

2007-12-11 Thread Dan Gohman
Author: djg Date: Tue Dec 11 09:50:23 2007 New Revision: 44866 URL: http://llvm.org/viewvc/llvm-project?rev=44866&view=rev Log: Use not instead of ignore when an exit status is expected to always be non-zero. Modified: llvm/trunk/test/Assembler/2004-11-28-InvalidTypeCrash.ll llvm/trunk/te

[llvm-commits] [llvm] r44867 - in /llvm/trunk/test: C++Frontend/2007-10-01-StructResize.cpp C++Frontend/2007-10-01-StructResize.ll FrontendObjC/2007-10-18-ProDescriptor.ll FrontendObjC/2007-10-18-ProD

2007-12-11 Thread Dan Gohman
Author: djg Date: Tue Dec 11 09:55:52 2007 New Revision: 44867 URL: http://llvm.org/viewvc/llvm-project?rev=44867&view=rev Log: Rename these tests to use the appropriate suffixes. Added: llvm/trunk/test/C++Frontend/2007-10-01-StructResize.cpp - copied unchanged from r44792, llvm/trunk/

Re: [llvm-commits] [llvm] r44825 - in /llvm/trunk: include/llvm/Target/TargetData.h lib/Target/TargetData.cpp

2007-12-11 Thread Chris Lattner
On Dec 11, 2007, at 1:25 AM, Duncan Sands wrote: > Hi Chris, > >> Duncan, this patch gets llvm-gcc to build, but it still doesn't >> answer the big question: why does TargetData contain information >> about the host? > > well, it needed to go somewhere. Any suggestions for a better place? > Anot

Re: [llvm-commits] [llvm] r44825 - in /llvm/trunk: include/llvm/Target/TargetData.h lib/Target/TargetData.cpp

2007-12-11 Thread Dale Johannesen
On Dec 11, 2007, at 9:19 AM, Chris Lattner wrote: > >> I suppose that plenty >> of things that autoconf does could also be done in a special >> function like this, >> yet they are left to autoconf - I have no idea what the criteria >> are for doing >> something via autoconf or via a runtime test.

[llvm-commits] [llvm] r44868 - /llvm/trunk/include/llvm/ADT/GraphTraits.h

2007-12-11 Thread Wojciech Matyjewicz
Author: wmat Date: Tue Dec 11 11:46:25 2007 New Revision: 44868 URL: http://llvm.org/viewvc/llvm-project?rev=44868&view=rev Log: Use correct member access operator. (my test commit as well) Modified: llvm/trunk/include/llvm/ADT/GraphTraits.h Modified: llvm/trunk/include/llvm/ADT/GraphTraits.

[llvm-commits] [llvm] r44869 - /llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp

2007-12-11 Thread Nate Begeman
Author: sampo Date: Tue Dec 11 12:06:14 2007 New Revision: 44869 URL: http://llvm.org/viewvc/llvm-project?rev=44869&view=rev Log: Allow the JIT to encode MMX instructions Modified: llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp Modified: llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp URL: htt

Re: [llvm-commits] [llvm] r44851 - /llvm/trunk/include/llvm/ADT/Trie.h

2007-12-11 Thread Anton Korobeynikov
Hello, Wojciech. > The Parent field seems to be unused internally by the Trie > implementation. Assuming the Edge interface is invisible for Trie > clients, may this field be removed? The whole Edge is not needed actually. See a list of FIXMEs in the beginning :) > I'm not familiar what Trie stru

[llvm-commits] [llvm] r44871 - /llvm/trunk/lib/CodeGen/MachineLICM.cpp

2007-12-11 Thread Bill Wendling
Author: void Date: Tue Dec 11 12:45:11 2007 New Revision: 44871 URL: http://llvm.org/viewvc/llvm-project?rev=44871&view=rev Log: Checking for "zero operands" during the "CanHoistInst()" method isn't necessary because those with side effects will be caught by other checks in here. Also, simplify t

[llvm-commits] [llvm] r44873 - /llvm/trunk/lib/CodeGen/MachineLICM.cpp

2007-12-11 Thread Bill Wendling
Author: void Date: Tue Dec 11 13:17:04 2007 New Revision: 44873 URL: http://llvm.org/viewvc/llvm-project?rev=44873&view=rev Log: - Update the virtual reg to machine instruction map when hoisting. - Fix subtle bug when creating initially creating this map. Modified: llvm/trunk/lib/CodeGen/Mach

[llvm-commits] [llvm] r44874 - /llvm/trunk/lib/CodeGen/MachineLICM.cpp

2007-12-11 Thread Bill Wendling
Author: void Date: Tue Dec 11 13:40:06 2007 New Revision: 44874 URL: http://llvm.org/viewvc/llvm-project?rev=44874&view=rev Log: Blark! How in the world did this work without this?! Modified: llvm/trunk/lib/CodeGen/MachineLICM.cpp Modified: llvm/trunk/lib/CodeGen/MachineLICM.cpp URL: http:/

[llvm-commits] [llvm] r44877 - /llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp

2007-12-11 Thread Owen Anderson
Author: resistor Date: Tue Dec 11 14:12:11 2007 New Revision: 44877 URL: http://llvm.org/viewvc/llvm-project?rev=44877&view=rev Log: More progress on StrongPHIElimination. Now we actually USE the DomForest! Modified: llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp Modified: llvm/trunk/lib/C

[llvm-commits] [llvm] r44880 - /llvm/trunk/include/llvm/ADT/Trie.h

2007-12-11 Thread Anton Korobeynikov
Author: asl Date: Tue Dec 11 15:55:38 2007 New Revision: 44880 URL: http://llvm.org/viewvc/llvm-project?rev=44880&view=rev Log: Remove Trie::Edge class. Now edge labels are stored into nodes itself. Modified: llvm/trunk/include/llvm/ADT/Trie.h Modified: llvm/trunk/include/llvm/ADT/Trie.h URL

[llvm-commits] [llvm-gcc-4.2] r44891 - in /llvm-gcc-4.2/trunk/gcc: llvm-backend.cpp testsuite/g++.dg/init/llvm-convert-1.C

2007-12-11 Thread Devang Patel
Author: dpatel Date: Tue Dec 11 17:17:57 2007 New Revision: 44891 URL: http://llvm.org/viewvc/llvm-project?rev=44891&view=rev Log: Do not emit pending decls twice. This fixes PR1805. Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/init/llvm-convert-1.C Modified: llvm-gcc-4.2/trunk/gcc/llvm

[llvm-commits] [llvm] r44892 - /llvm/trunk/lib/CodeGen/MachineLICM.cpp

2007-12-11 Thread Bill Wendling
Author: void Date: Tue Dec 11 17:27:51 2007 New Revision: 44892 URL: http://llvm.org/viewvc/llvm-project?rev=44892&view=rev Log: Need to grow the indexed map. Added debug statements. Modified: llvm/trunk/lib/CodeGen/MachineLICM.cpp Modified: llvm/trunk/lib/CodeGen/MachineLICM.cpp URL: http:

[llvm-commits] [llvm] r44881 - /llvm/trunk/lib/CodeGen/MachineLICM.cpp

2007-12-11 Thread Bill Wendling
Author: void Date: Tue Dec 11 16:22:22 2007 New Revision: 44881 URL: http://llvm.org/viewvc/llvm-project?rev=44881&view=rev Log: Simplify slightly. Modified: llvm/trunk/lib/CodeGen/MachineLICM.cpp Modified: llvm/trunk/lib/CodeGen/MachineLICM.cpp URL: http://llvm.org/viewvc/llvm-project/llvm

[llvm-commits] [llvm] r44894 - /llvm/trunk/lib/CodeGen/VirtRegMap.cpp

2007-12-11 Thread Evan Cheng
Author: evancheng Date: Tue Dec 11 17:36:57 2007 New Revision: 44894 URL: http://llvm.org/viewvc/llvm-project?rev=44894&view=rev Log: If deleting a reload instruction due to reuse (value is available in register R and reload is targeting R), make sure to invalidate the kill information of the la

Re: [llvm-commits] [llvm] r44860 - /llvm/trunk/docs/LangRef.html

2007-12-11 Thread Chris Lattner
On Dec 11, 2007, at 1:31 AM, Christopher Lamb wrote: > Add information on address space qualifiers for pointer types and > global > declarations to the LangRef. Nice! > > > [EMAIL PROTECTED] = constant float 1.0 addrspace(5), section "foo", align 4 Is there a comma after 1.0? -Chris _

Re: [llvm-commits] [llvm] r44858 - in /llvm/trunk: include/llvm/Bitcode/LLVMBitCodes.h include/llvm/DerivedTypes.h include/llvm/GlobalVariable.h include/llvm/Instructions.h lib/AsmParser/LLLexer.cpp l

2007-12-11 Thread Chris Lattner
On Dec 11, 2007, at 12:59 AM, Christopher Lamb wrote: > URL: http://llvm.org/viewvc/llvm-project?rev=44858&view=rev > Log: > Implement address space attribute for LLVM pointer types. Address > spaces are > regions of memory that have a target specific relationship, as > described in the > Embed

[llvm-commits] [llvm] r44895 - /llvm/trunk/lib/Analysis/IPA/Andersens.cpp

2007-12-11 Thread Daniel Berlin
Author: dannyb Date: Tue Dec 11 18:37:04 2007 New Revision: 44895 URL: http://llvm.org/viewvc/llvm-project?rev=44895&view=rev Log: Changes from Curtis Dunham implementing lazy cycle detection algorithm. Changes from me implementing different way of representing points-to anything. Changes from me

[llvm-commits] [llvm] r44896 - /llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp

2007-12-11 Thread Evan Cheng
Author: evancheng Date: Tue Dec 11 18:51:06 2007 New Revision: 44896 URL: http://llvm.org/viewvc/llvm-project?rev=44896&view=rev Log: Bug fix. Only safe to perform extension uses optimization if the source of extension is also defined in the same BB as the extension. Modified: llvm/trunk/lib

[llvm-commits] [llvm] r44899 - in /llvm/trunk: bindings/ocaml/llvm/llvm.ml bindings/ocaml/llvm/llvm.mli bindings/ocaml/llvm/llvm_ocaml.c include/llvm-c/BitReader.h include/llvm-c/Core.h lib/VMCore/Cor

2007-12-11 Thread Gordon Henriksen
Author: gordon Date: Tue Dec 11 19:04:30 2007 New Revision: 44899 URL: http://llvm.org/viewvc/llvm-project?rev=44899&view=rev Log: Add (very basic) bindings for ModuleProvider. Modified: llvm/trunk/bindings/ocaml/llvm/llvm.ml llvm/trunk/bindings/ocaml/llvm/llvm.mli llvm/trunk/bindings

[llvm-commits] [llvm] r44902 - /llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp

2007-12-11 Thread Owen Anderson
Author: resistor Date: Tue Dec 11 19:25:08 2007 New Revision: 44902 URL: http://llvm.org/viewvc/llvm-project?rev=44902&view=rev Log: Forgot to remove a register from the PHI-union after I'd determined that it interfered with other registers. Seems like that might be a good thing to do. :-) Modi

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

2007-12-11 Thread Bill Wendling
Author: void Date: Tue Dec 11 19:51:58 2007 New Revision: 44903 URL: http://llvm.org/viewvc/llvm-project?rev=44903&view=rev Log: Bit masks conflicted. Needed to bump them by one. Modified: llvm/trunk/include/llvm/Target/TargetInstrInfo.h Modified: llvm/trunk/include/llvm/Target/TargetInstrIn

Re: [llvm-commits] [llvm] r44860 - /llvm/trunk/docs/LangRef.html

2007-12-11 Thread Christopher Lamb
On Dec 11, 2007, at 3:54 PM, Chris Lattner wrote: On Dec 11, 2007, at 1:31 AM, Christopher Lamb wrote: Add information on address space qualifiers for pointer types and global declarations to the LangRef. Nice! [EMAIL PROTECTED] = constant float 1.0 addrspace(5), section "foo", align 4

Re: [llvm-commits] [llvm] r44858 - in /llvm/trunk: include/llvm/Bitcode/LLVMBitCodes.h include/llvm/DerivedTypes.h include/llvm/GlobalVariable.h include/llvm/Instructions.h lib/AsmParser/LLLexer.cpp l

2007-12-11 Thread Christopher Lamb
On Dec 11, 2007, at 4:12 PM, Chris Lattner wrote: On Dec 11, 2007, at 12:59 AM, Christopher Lamb wrote: URL: http://llvm.org/viewvc/llvm-project?rev=44858&view=rev Log: Implement address space attribute for LLVM pointer types. Address spaces are regions of memory that have a target specific re

[llvm-commits] [llvm] r44905 - /llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp

2007-12-11 Thread Evan Cheng
Author: evancheng Date: Tue Dec 11 20:53:41 2007 New Revision: 44905 URL: http://llvm.org/viewvc/llvm-project?rev=44905&view=rev Log: Don't muck with phi nodes; bug fixes. Modified: llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp Modified: llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.

[llvm-commits] [llvm] r44904 - /llvm/trunk/lib/Target/X86/X86JITInfo.cpp

2007-12-11 Thread Scott Michel
Author: pingbak Date: Tue Dec 11 20:38:28 2007 New Revision: 44904 URL: http://llvm.org/viewvc/llvm-project?rev=44904&view=rev Log: Correct typo for Linux: s/esp/%rsp/ Modified: llvm/trunk/lib/Target/X86/X86JITInfo.cpp Modified: llvm/trunk/lib/Target/X86/X86JITInfo.cpp URL: http://llvm.org/

[llvm-commits] [llvm] r44907 - /llvm/trunk/lib/Analysis/ConstantFolding.cpp

2007-12-11 Thread Chris Lattner
Author: lattner Date: Tue Dec 11 21:56:54 2007 New Revision: 44907 URL: http://llvm.org/viewvc/llvm-project?rev=44907&view=rev Log: Fix a bug in my previous patch, thanks to Jay Foad for pointing this out and correcting the patch! Modified: llvm/trunk/lib/Analysis/ConstantFolding.cpp Modifie

Re: [llvm-commits] [llvm] r44905 - /llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp

2007-12-11 Thread Chris Lattner
On Dec 11, 2007, at 6:53 PM, Evan Cheng wrote: > Author: evancheng > Date: Tue Dec 11 20:53:41 2007 > New Revision: 44905 > > URL: http://llvm.org/viewvc/llvm-project?rev=44905&view=rev > Log: > Don't muck with phi nodes; bug fixes. Hey Evan, testcase please :) -Chris > > Modified: >llvm/t

Re: [llvm-commits] [llvm] r44860 - /llvm/trunk/docs/LangRef.html

2007-12-11 Thread Chris Lattner
On Dec 11, 2007, at 5:56 PM, Christopher Lamb wrote: > > On Dec 11, 2007, at 3:54 PM, Chris Lattner wrote: > >> On Dec 11, 2007, at 1:31 AM, Christopher Lamb wrote: >>> Add information on address space qualifiers for pointer types and >>> global >>> declarations to the LangRef. >> >> Nice! >> >>>

Re: [llvm-commits] [llvm] r44860 - /llvm/trunk/docs/LangRef.html

2007-12-11 Thread Christopher Lamb
On Dec 11, 2007, at 8:34 PM, Chris Lattner wrote: On Dec 11, 2007, at 5:56 PM, Christopher Lamb wrote: On Dec 11, 2007, at 3:54 PM, Chris Lattner wrote: On Dec 11, 2007, at 1:31 AM, Christopher Lamb wrote: Add information on address space qualifiers for pointer types and global declarati

Re: [llvm-commits] [llvm] r44860 - /llvm/trunk/docs/LangRef.html

2007-12-11 Thread Chris Lattner
>> That is a very strong argument to me, but it seems to argue even more >> strongly for: >> >> @G = constant float addrspace(5) 1.0, section "foo", align 4 >> >> Your example above would then be: >> >>> @foo = constant float addrspace(1)* addrspace(2) 1.0 >> >> which has type: >> >>> float addrspa

[llvm-commits] [llvm] r44910 - in /llvm/trunk: lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp test/ExecutionEngine/2007-12-11-APIntExFuncCall.ll

2007-12-11 Thread Zhou Sheng
Author: sheng Date: Tue Dec 11 22:55:43 2007 New Revision: 44910 URL: http://llvm.org/viewvc/llvm-project?rev=44910&view=rev Log: Fixed PR1629. Make lli interpreter correctly call external functions sin()/cos(), __cxa_guard_acquire() and __cxa_guard_release(). Added: llvm/trunk/test/Execution

Re: [llvm-commits] [llvm] r44910 - in /llvm/trunk: lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp test/ExecutionEngine/2007-12-11-APIntExFuncCall.ll

2007-12-11 Thread Chris Lattner
> URL: http://llvm.org/viewvc/llvm-project?rev=44910&view=rev > Log: > Fixed PR1629. > Make lli interpreter correctly call external functions sin()/cos(), > __cxa_guard_acquire() and __cxa_guard_release(). > #include > +#include > using std::vector; hi Sheng, What provides this non-standard hea

Re: [llvm-commits] [llvm] r44858 - in /llvm/trunk: include/llvm/Bitcode/LLVMBitCodes.h include/llvm/DerivedTypes.h include/llvm/GlobalVariable.h include/llvm/Instructions.h lib/AsmParser/LLLexer.cpp l

2007-12-11 Thread Chris Lattner
>> Making the address space default to zero is convenient, but >> dangerous. This means that xforms that play with pointers need to be >> very careful to propagate this info in some cases. > > This is true. > >> Do you think this is the best way to go? > > As opposed to no default value, forcing

Re: [llvm-commits] [llvm] r44858 - in /llvm/trunk: include/llvm/Bitcode/LLVMBitCodes.h include/llvm/DerivedTypes.h include/llvm/GlobalVariable.h include/llvm/Instructions.h lib/AsmParser/LLLexer.cpp l

2007-12-11 Thread Christopher Lamb
On Dec 11, 2007, at 8:36 PM, Chris Lattner wrote: Making the address space default to zero is convenient, but dangerous. This means that xforms that play with pointers need to be very careful to propagate this info in some cases. This is true. Do you think this is the best way to go?

Re: [llvm-commits] [llvm] r44860 - /llvm/trunk/docs/LangRef.html

2007-12-11 Thread Chris Lattner
On Dec 11, 2007, at 9:08 PM, Christopher Lamb wrote: > > On Dec 11, 2007, at 8:50 PM, Chris Lattner wrote: > That is a very strong argument to me, but it seems to argue even more strongly for: @G = constant float addrspace(5) 1.0, section "foo", align 4 Your e

Re: [llvm-commits] [llvm] r44858 - in /llvm/trunk: include/llvm/Bitcode/LLVMBitCodes.h include/llvm/DerivedTypes.h include/llvm/GlobalVariable.h include/llvm/Instructions.h lib/AsmParser/LLLexer.cpp l

2007-12-11 Thread Chris Lattner
On Dec 11, 2007, at 9:16 PM, Christopher Lamb wrote: > > On Dec 11, 2007, at 4:12 PM, Chris Lattner wrote: > >> On Dec 11, 2007, at 12:59 AM, Christopher Lamb wrote: >> >>> = >>> = >>> >>> >>> --- llvm/trunk/lib/Bitcode

Re: [llvm-commits] [llvm] r44860 - /llvm/trunk/docs/LangRef.html

2007-12-11 Thread Christopher Lamb
On Dec 11, 2007, at 8:50 PM, Chris Lattner wrote: That is a very strong argument to me, but it seems to argue even more strongly for: @G = constant float addrspace(5) 1.0, section "foo", align 4 Your example above would then be: @foo = constant float addrspace(1)* addrspace(2) 1.0 which

Re: [llvm-commits] [llvm] r44858 - in /llvm/trunk: include/llvm/Bitcode/LLVMBitCodes.h include/llvm/DerivedTypes.h include/llvm/GlobalVariable.h include/llvm/Instructions.h lib/AsmParser/LLLexer.cpp l

2007-12-11 Thread Christopher Lamb
On Dec 11, 2007, at 4:12 PM, Chris Lattner wrote: On Dec 11, 2007, at 12:59 AM, Christopher Lamb wrote: = = --- llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp (original) +++ llvm/trunk/lib/Bitcode/Writer/BitcodeWri

Re: [llvm-commits] RFC: patch for PR1782 (BasicAliasAnalyis)

2007-12-11 Thread Chris Lattner
On Dec 9, 2007, at 2:57 PM, Wojciech Matyjewicz wrote: > Chris Lattner wrote: > >> Yep, it looks Gordon was right :). Thanks again Wojtek, I applied >> the >> patch. Please close the PR, > > Before I close the PR, I would like to discuss one more issue > discovered > while working on it. >

Re: [llvm-commits] [llvm] r44910 - in /llvm/trunk: lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp test/ExecutionEngine/2007-12-11-APIntExFuncCall.ll

2007-12-11 Thread Zhou Sheng
Hi Chris, 2007/12/12, Chris Lattner <[EMAIL PROTECTED]>: > > > URL: http://llvm.org/viewvc/llvm-project?rev=44910&view=rev > > Log: > > Fixed PR1629. > > Make lli interpreter correctly call external functions sin()/cos(), > > __cxa_guard_acquire() and __cxa_guard_release(). > > #include > > +#inc

Re: [llvm-commits] [llvm] r44860 - /llvm/trunk/docs/LangRef.html

2007-12-11 Thread Christopher Lamb
On Dec 11, 2007, at 9:16 PM, Chris Lattner wrote: > > On Dec 11, 2007, at 9:08 PM, Christopher Lamb wrote: > >> >> On Dec 11, 2007, at 8:50 PM, Chris Lattner wrote: >> > That is a very strong argument to me, but it seems to argue even > more > strongly for: > > @G = constant f

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

2007-12-11 Thread Zhou Sheng
Author: sheng Date: Wed Dec 12 00:16:47 2007 New Revision: 44914 URL: http://llvm.org/viewvc/llvm-project?rev=44914&view=rev Log: Add a guard to cxxabi header as other platform may not support it. Modified: llvm/trunk/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp Modified: llvm/trunk

Re: [llvm-commits] [llvm] r44910 - in /llvm/trunk: lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp test/ExecutionEngine/2007-12-11-APIntExFuncCall.ll

2007-12-11 Thread Chris Lattner
On Dec 11, 2007, at 10:12 PM, Zhou Sheng wrote: Hi Chris, 2007/12/12, Chris Lattner <[EMAIL PROTECTED]>: > URL: http://llvm.org/viewvc/llvm-project?rev=44910&view=rev > Log: > Fixed PR1629. > Make lli interpreter correctly call external functions sin()/cos(), > __cxa_guard_acquire() and __cxa_

Re: [llvm-commits] [llvm] r44860 - /llvm/trunk/docs/LangRef.html

2007-12-11 Thread Chris Lattner
>>> How horrible would: >>> @foo = addrspace(1) external global i32 >>> >>> be? >> >> I like that the order in the decl is the order in the type lots. >> >> These now work with the rules being adjusted. >> >> @foo = extern_weak global i32 addrspace(1) >> @foo = external global i32 addrspace(1)

Re: [llvm-commits] [llvm] r44860 - /llvm/trunk/docs/LangRef.html

2007-12-11 Thread Christopher Lamb
On Dec 11, 2007, at 10:12 PM, Christopher Lamb wrote: On Dec 11, 2007, at 9:16 PM, Chris Lattner wrote: On Dec 11, 2007, at 9:08 PM, Christopher Lamb wrote: On Dec 11, 2007, at 8:50 PM, Chris Lattner wrote: That is a very strong argument to me, but it seems to argue even more strongly

Re: [llvm-commits] [llvm] r44860 - /llvm/trunk/docs/LangRef.html

2007-12-11 Thread Christopher Lamb
On Dec 11, 2007, at 10:30 PM, Chris Lattner wrote: How horrible would: @foo = addrspace(1) external global i32 be? I like that the order in the decl is the order in the type lots. These now work with the rules being adjusted. @foo = extern_weak global i32 addrspace(1) @foo = external gl

[llvm-commits] [llvm] r44921 - in /llvm/trunk: lib/Target/X86/X86ISelLowering.cpp test/CodeGen/X86/vec_return.ll

2007-12-11 Thread Evan Cheng
Author: evancheng Date: Wed Dec 12 00:45:40 2007 New Revision: 44921 URL: http://llvm.org/viewvc/llvm-project?rev=44921&view=rev Log: Lower a build_vector with all constants into a constpool load unless it can be done with a move to low part. Modified: llvm/trunk/lib/Target/X86/X86ISelLoweri

Re: [llvm-commits] [llvm] r44860 - /llvm/trunk/docs/LangRef.html

2007-12-11 Thread Chris Lattner
>>> @foo = internal global i32 0 addrspace(1) >>> @foo = weak global i32 0 addrspace(1) >>> @foo = linkonce global i32 0 addrspace(1) >>> @foo = appending global i32 0 addrspace(1) >>> @foo = dllexport global i32 0 addrspace(1) >> >> I prefer that too, but I don't see how you're going to get bison

[llvm-commits] [llvm] r44928 - /llvm/trunk/test/CodeGen/X86/opt-ext-uses.ll

2007-12-11 Thread Evan Cheng
Author: evancheng Date: Wed Dec 12 01:54:08 2007 New Revision: 44928 URL: http://llvm.org/viewvc/llvm-project?rev=44928&view=rev Log: Add a test case for -optimize-ext-uses. Added: llvm/trunk/test/CodeGen/X86/opt-ext-uses.ll Added: llvm/trunk/test/CodeGen/X86/opt-ext-uses.ll URL: http://llv

[llvm-commits] [llvm] r44929 - in /llvm/trunk: lib/Target/X86/X86ISelLowering.cpp test/CodeGen/X86/2007-07-31-VInsertBug.ll test/CodeGen/X86/vec_insert-2.ll test/CodeGen/X86/vec_insert-3.ll test/CodeG

2007-12-11 Thread Evan Cheng
Author: evancheng Date: Wed Dec 12 01:55:34 2007 New Revision: 44929 URL: http://llvm.org/viewvc/llvm-project?rev=44929&view=rev Log: Use shuffles to implement insert_vector_elt for i32, i64, f32, and f64. Added: llvm/trunk/test/CodeGen/X86/vec_insert-2.ll llvm/trunk/test/CodeGen/X86/vec_