pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: jit: Supply LLVMGlobalGetValueType() for LLVM < 8.
Date: Wed, 18 Oct 2023 14:06:56 +0000
Message-ID: <E1qt7CK-001AZH-F5@gemulon.postgresql.org> (raw)

jit: Supply LLVMGlobalGetValueType() for LLVM < 8.

Commit 37d5babb used this C API function while adding support for LLVM
16 and opaque pointers, but it's not available in LLVM 7 and older.
Provide it in our own llvmjit_wrap.cpp.  It just calls a C++ function
that pre-dates LLVM 3.9, our minimum target.

Back-patch to 12, like 37d5babb.

Discussion: https://postgr.es/m/CA%2BhUKGKnLnJnWrkr%3D4mSGhE5FuTK55FY15uULR7%3Dzzc%3DwX4Nqw%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f90b4a846b32d3d6d2fd9d55a93735501e4c34fd

Modified Files
--------------
src/backend/jit/llvm/llvmjit_wrap.cpp | 8 ++++++++
src/include/jit/llvmjit.h             | 4 ++++
2 files changed, 12 insertions(+)



view thread (6+ messages)  latest in thread

Message-ID: <E1qt7CK-001AZH-F5@gemulon.postgresql.org>
Permalink:  ../E1qt7CK-001AZH-F5@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1qt7CK-001AZH-F5@gemulon.postgresql.org

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: jit: Supply LLVMGlobalGetValueType() for LLVM < 8.
  In-Reply-To: <E1qt7CK-001AZH-F5@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