From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Adapt expression JIT to stdbool.h introduction.
Date: Fri, 23 Mar 2018 05:36:22 +0000
Message-ID: <E1ezFNG-0003sW-1Q@gemulon.postgresql.org> (raw)
Adapt expression JIT to stdbool.h introduction.
The LLVM JIT provider uses clang to synchronize types between normal C
code and runtime generated code. Clang represents stdbool.h style
booleans in return values & parameters differently from booleans
stored in variables.
Thus the expression compilation code from 2a0faed9d needs to be
adapted to 9a95a77d9. Instead of hardcoding i8 as the type for
booleans (which already was wrong on some edge case platforms!), use
postgres' notion of a boolean as used for storage and for parameters.
Per buildfarm animal xenodermus.
Author: Andres Freund
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/2111a48a0c5e5198a68cba0c8fb82c4f61be5928
Modified Files
--------------
src/backend/jit/llvm/llvmjit.c | 31 ++++++++-
src/backend/jit/llvm/llvmjit_expr.c | 126 ++++++++++++++++++-----------------
src/backend/jit/llvm/llvmjit_types.c | 16 ++++-
src/include/jit/llvmjit.h | 5 +-
src/include/jit/llvmjit_emit.h | 18 +++++
5 files changed, 132 insertions(+), 64 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: andres@anarazel.de
Subject: Re: pgsql: Adapt expression JIT to stdbool.h introduction.
In-Reply-To: <E1ezFNG-0003sW-1Q@gemulon.postgresql.org>
References: <E1ezFNG-0003sW-1Q@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox