Re: svn commit: r253802 - head/contrib/llvm/tools/clang/lib/Headers

2013-08-14 Thread David Chisnall
On 14 Aug 2013, at 13:21, John Baldwin wrote: > On Wednesday, August 14, 2013 4:23:11 am David Chisnall wrote: >> On 13 Aug 2013, at 21:57, Jilles Tjoelker wrote: >> >>> Given that JIT is for performance and larger addresses increase code >>> size and register pressure, the mmap() flag is proba

Re: svn commit: r253802 - head/contrib/llvm/tools/clang/lib/Headers

2013-08-14 Thread John Baldwin
On Wednesday, August 14, 2013 4:23:11 am David Chisnall wrote: > On 13 Aug 2013, at 21:57, Jilles Tjoelker wrote: > > > Given that JIT is for performance and larger addresses increase code > > size and register pressure, the mmap() flag is probably useful. > > Alternatively, all the JITted code c

Re: svn commit: r253802 - head/contrib/llvm/tools/clang/lib/Headers

2013-08-14 Thread David Chisnall
On 13 Aug 2013, at 21:57, Jilles Tjoelker wrote: > Given that JIT is for performance and larger addresses increase code > size and register pressure, the mmap() flag is probably useful. > Alternatively, all the JITted code could be placed in one block and use > relative addressing. This would be

Re: svn commit: r253802 - head/contrib/llvm/tools/clang/lib/Headers

2013-08-13 Thread Jilles Tjoelker
On Thu, Aug 08, 2013 at 09:37:02AM +0100, David Chisnall wrote: > On 7 Aug 2013, at 21:56, Jilles Tjoelker wrote: > > The code_model stuff is not for x32 support but for PIC/PIE code where > > code+data exceed 2GB so relative addressing cannot always be used. The > > ABI then prescribes that %r15

Re: svn commit: r253802 - head/contrib/llvm/tools/clang/lib/Headers

2013-08-08 Thread David Chisnall
On 7 Aug 2013, at 21:56, Jilles Tjoelker wrote: > The code_model stuff is not for x32 support but for PIC/PIE code where > code+data exceed 2GB so relative addressing cannot always be used. The > ABI then prescribes that %r15 be loaded with the GOT pointer when > invoking a large model (code>2GB)

Re: svn commit: r253802 - head/contrib/llvm/tools/clang/lib/Headers

2013-08-07 Thread Jilles Tjoelker
On Tue, Jul 30, 2013 at 04:16:58PM +0200, Dimitry Andric wrote: > Upstream gcc checks this with: > #if defined(__i386__) && defined(__PIC__) > ... > #elif defined(__x86_64__) && (defined(__code_model_medium__) || > defined(__code_model_large__)) && defined(__PIC__) > ... > and it exchanges ebx o

Re: svn commit: r253802 - head/contrib/llvm/tools/clang/lib/Headers

2013-08-06 Thread John Baldwin
On Wednesday, July 31, 2013 8:21:42 am Dimitry Andric wrote: > On Jul 30, 2013, at 18:16, John Baldwin wrote: > > On Tuesday, July 30, 2013 10:09:35 am Matthew Fleming wrote: > >> On Tue, Jul 30, 2013 at 5:33 AM, Dimitry Andric wrote: > >> > >>> Author: dim > >>> Date: Tue Jul 30 12:33:21 2013 >

Re: svn commit: r253802 - head/contrib/llvm/tools/clang/lib/Headers

2013-07-31 Thread Dimitry Andric
On Jul 30, 2013, at 18:16, John Baldwin wrote: > On Tuesday, July 30, 2013 10:09:35 am Matthew Fleming wrote: >> On Tue, Jul 30, 2013 at 5:33 AM, Dimitry Andric wrote: >> >>> Author: dim >>> Date: Tue Jul 30 12:33:21 2013 >>> New Revision: 253802 >>> URL: http://svnweb.freebsd.org/changeset/base

Re: svn commit: r253802 - head/contrib/llvm/tools/clang/lib/Headers

2013-07-30 Thread John Baldwin
On Tuesday, July 30, 2013 9:33:51 am Jan Beich wrote: > Dimitry Andric writes: > > > Author: dim > > Date: Tue Jul 30 12:33:21 2013 > > New Revision: 253802 > > URL: http://svnweb.freebsd.org/changeset/base/253802 > > > > Log: > > Pull in r186696 from upstream clang trunk: > > > > This p

Re: svn commit: r253802 - head/contrib/llvm/tools/clang/lib/Headers

2013-07-30 Thread John Baldwin
On Tuesday, July 30, 2013 10:09:35 am Matthew Fleming wrote: > On Tue, Jul 30, 2013 at 5:33 AM, Dimitry Andric wrote: > > > Author: dim > > Date: Tue Jul 30 12:33:21 2013 > > New Revision: 253802 > > URL: http://svnweb.freebsd.org/changeset/base/253802 > > > > Log: > > Pull in r186696 from upst

Re: svn commit: r253802 - head/contrib/llvm/tools/clang/lib/Headers

2013-07-30 Thread Dimitry Andric
On Jul 30, 2013, at 16:09, Matthew Fleming wrote: > On Tue, Jul 30, 2013 at 5:33 AM, Dimitry Andric wrote: > Author: dim > Date: Tue Jul 30 12:33:21 2013 > New Revision: 253802 > URL: http://svnweb.freebsd.org/changeset/base/253802 > > Log: > Pull in r186696 from upstream clang trunk: > >

Re: svn commit: r253802 - head/contrib/llvm/tools/clang/lib/Headers

2013-07-30 Thread Matthew Fleming
On Tue, Jul 30, 2013 at 5:33 AM, Dimitry Andric wrote: > Author: dim > Date: Tue Jul 30 12:33:21 2013 > New Revision: 253802 > URL: http://svnweb.freebsd.org/changeset/base/253802 > > Log: > Pull in r186696 from upstream clang trunk: > > This patch implements __get_cpuid_max() as an inline

Re: svn commit: r253802 - head/contrib/llvm/tools/clang/lib/Headers

2013-07-30 Thread Dimitry Andric
On Jul 30, 2013, at 15:33, Jan Beich wrote: > Dimitry Andric writes: > >> Author: dim >> Date: Tue Jul 30 12:33:21 2013 >> New Revision: 253802 >> URL: http://svnweb.freebsd.org/changeset/base/253802 >> >> Log: >> Pull in r186696 from upstream clang trunk: >> >>This patch implements __get

Re: svn commit: r253802 - head/contrib/llvm/tools/clang/lib/Headers

2013-07-30 Thread Jan Beich
Dimitry Andric writes: > Author: dim > Date: Tue Jul 30 12:33:21 2013 > New Revision: 253802 > URL: http://svnweb.freebsd.org/changeset/base/253802 > > Log: > Pull in r186696 from upstream clang trunk: > > This patch implements __get_cpuid_max() as an inline and __cpuid() > and __cpu

svn commit: r253802 - head/contrib/llvm/tools/clang/lib/Headers

2013-07-30 Thread Dimitry Andric
Author: dim Date: Tue Jul 30 12:33:21 2013 New Revision: 253802 URL: http://svnweb.freebsd.org/changeset/base/253802 Log: Pull in r186696 from upstream clang trunk: This patch implements __get_cpuid_max() as an inline and __cpuid() and __cpuid_count() as macros to be compatible with G