From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: jit: Reference expression step functions via llvmjit_types.
Date: Fri, 07 Feb 2020 06:32:20 +0000
Message-ID: <E1izxBc-0000MK-73@gemulon.postgresql.org> (raw)
jit: Reference expression step functions via llvmjit_types.
The main benefit of doing so is that this allows llvm to ensure that
types match - previously that'd only be detected by a crash within the
called function. There were a number of cases where we passed a
superfluous parameter...
To avoid needing to add all the functions to llvmjit.{c,h}, instead
get them from the llvm module for llvmjit_types.c. Also use that for
the functions from llvmjit_types already in llvmjit.h.
Author: Soumyadeep Chakraborty and Andres Freund
Discussion: https://postgr.es/m/CADwEdooww3wZv-sXSfatzFRwMuwa186LyTwkBfwEW6NjtooBPA@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/b059d2f45685a946da061ee15692fa306bd67f12
Modified Files
--------------
src/backend/jit/llvm/llvmjit.c | 97 +++++++++------------
src/backend/jit/llvm/llvmjit_deform.c | 6 +-
src/backend/jit/llvm/llvmjit_expr.c | 155 ++++++++++++++++------------------
src/backend/jit/llvm/llvmjit_types.c | 44 ++++++++--
src/include/jit/llvmjit.h | 13 +--
5 files changed, 157 insertions(+), 158 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: jit: Reference expression step functions via llvmjit_types.
In-Reply-To: <E1izxBc-0000MK-73@gemulon.postgresql.org>
References: <E1izxBc-0000MK-73@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