pgsql: jit: Reference function pointer types via llvmjit_types.c.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: jit: Reference function pointer types via llvmjit_types.c.
Date: 2020-12-09 01:29:58
Message-ID: E1kmoIo-0004Hh-OC@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)anarazel(dot)de>
Reviewed-By: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2020-12-09 04:25:18 pgsql: Simplify code for getting a unicode codepoint's canonical class.
Previous Message Tom Lane 2020-12-08 22:51:13 pgsql: Teach contain_leaked_vars that assignment SubscriptingRefs are l