Re: JIT compiling with LLVM v10.0

2018-02-09 Thread Dmitry Dolgov
> On 8 February 2018 at 21:26, Thomas Munro > wrote: > On Fri, Feb 9, 2018 at 3:14 AM, Dmitry Dolgov <9erthali...@gmail.com> wrote: >> $ ./configure --prefix=/build/postgres-jit/ --with-llvm >> --enable-debug --enable-depend --enable-cassert > >>

Re: JIT compiling with LLVM v10.0

2018-02-08 Thread Thomas Munro
On Fri, Feb 9, 2018 at 3:14 AM, Dmitry Dolgov <9erthali...@gmail.com> wrote: > $ ./configure --prefix=/build/postgres-jit/ --with-llvm > --enable-debug --enable-depend --enable-cassert > /usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This > file requires compiler and library

Re: JIT compiling with LLVM v10.0

2018-02-08 Thread Andres Freund
On 2018-02-08 15:14:42 +0100, Dmitry Dolgov wrote: > > On 8 February 2018 at 10:29, Andreas Karlsson wrote: > >> On 02/07/2018 03:54 PM, Andres Freund wrote: > >> > >> I've pushed v10.0. The big (and pretty painful to make) change is that > >> now all the LLVM specific code

Re: JIT compiling with LLVM v10.0

2018-02-08 Thread Dmitry Dolgov
> On 8 February 2018 at 10:29, Andreas Karlsson wrote: >> On 02/07/2018 03:54 PM, Andres Freund wrote: >> >> I've pushed v10.0. The big (and pretty painful to make) change is that >> now all the LLVM specific code lives in src/backend/jit/llvm, which is >> built as a shared

Re: JIT compiling with LLVM v10.0

2018-02-08 Thread Andreas Karlsson
On 02/07/2018 03:54 PM, Andres Freund wrote: I've pushed v10.0. The big (and pretty painful to make) change is that now all the LLVM specific code lives in src/backend/jit/llvm, which is built as a shared library which is loaded on demand. It does not seem to be possible build without LLVM

Re: JIT compiling with LLVM v10.0

2018-02-07 Thread Andres Freund
On 2018-02-08 11:50:17 +1300, Thomas Munro wrote: > You are asking LLVM to dlopen(""), which doesn't work on my not-Linux, > explaining the errors I reported in the older thread. The portable > way to dlopen the main binary is dlopen(NULL), so I think you need to > pass NULL in to

Re: JIT compiling with LLVM v10.0

2018-02-07 Thread Thomas Munro
On Thu, Feb 8, 2018 at 3:54 AM, Andres Freund wrote: > I've pushed v10.0. The big (and pretty painful to make) change is that > now all the LLVM specific code lives in src/backend/jit/llvm, which is > built as a shared library which is loaded on demand. > > The layout is now

Re: JIT compiling with LLVM v10.0

2018-02-07 Thread Andres Freund
Hi, On 2018-02-07 20:35:12 +0100, Pierre Ducroquet wrote: > I also find it more readable and it looks cleaner, insane guys could be able > to write their own JIT engines for PostgreSQL by patching a single > file :) Right - we could easily make the libname configurable if requested. > Since

Re: JIT compiling with LLVM v10.0

2018-02-07 Thread Pierre Ducroquet
On Wednesday, February 7, 2018 3:54:05 PM CET Andres Freund wrote: > Hi, > > I've pushed v10.0. The big (and pretty painful to make) change is that > now all the LLVM specific code lives in src/backend/jit/llvm, which is > built as a shared library which is loaded on demand. > > The layout is

Re: JIT compiling with LLVM v10.0

2018-02-07 Thread Andres Freund
Hi, I've pushed v10.0. The big (and pretty painful to make) change is that now all the LLVM specific code lives in src/backend/jit/llvm, which is built as a shared library which is loaded on demand. The layout is now as follows: src/backend/jit/jit.c: Part of JITing always linked into the