pgsql: jit: Supply LLVMGlobalGetValueType() for LLVM < 8.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: jit: Supply LLVMGlobalGetValueType() for LLVM < 8.
Date: 2023-10-18 14:08:13
Message-ID: E1qt7DY-001Ab7-J6@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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
------
REL_14_STABLE

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

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

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2023-10-18 14:08:27 pgsql: jit: Supply LLVMGlobalGetValueType() for LLVM < 8.
Previous Message Thomas Munro 2023-10-18 14:07:53 pgsql: jit: Supply LLVMGlobalGetValueType() for LLVM < 8.