From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: jit: Reference function pointer types via llvmjit_types.c.
Date: Wed, 09 Dec 2020 01:29:58 +0000
Message-ID: <E1kmoIo-0004Hh-OC@gemulon.postgresql.org> (raw)
jit: Reference function pointer types via llvmjit_types.c.
It is error prone (see 5da871bfa1b) and verbose to manually create function
types. Add a helper that can reference a function pointer type via
llvmjit_types.c and and convert existing instances of manual creation.
Author: Andres Freund <andres@anarazel.de>
Reviewed-By: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/20201207212142.wz5tnbk2jsaqzogb@alap3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/df99ddc70b971a991c5111a33f2f08bd7945d5c2
Modified Files
--------------
src/backend/jit/llvm/llvmjit.c | 95 ++++++++++++++++++++++--------------
src/backend/jit/llvm/llvmjit_expr.c | 33 +++----------
src/backend/jit/llvm/llvmjit_types.c | 2 +
src/include/jit/llvmjit.h | 2 +
4 files changed, 69 insertions(+), 63 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 function pointer types via llvmjit_types.c.
In-Reply-To: <E1kmoIo-0004Hh-OC@gemulon.postgresql.org>
References: <E1kmoIo-0004Hh-OC@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