]> git.ipfire.org Git - thirdparty/postgresql.git/commit
jit: Drop redundant LLVM configure probes.
authorThomas Munro <tmunro@postgresql.org>
Tue, 30 Dec 2025 03:39:19 +0000 (16:39 +1300)
committerThomas Munro <tmunro@postgresql.org>
Tue, 30 Dec 2025 07:24:42 +0000 (20:24 +1300)
commit1a28b4b455df41725ea2115ae2a2fd9b33a20ae5
tree6eb99e61e167e9870f0bd7bcd17cb65a63e97479
parent97b101776ce23dd6c4abbdae213806bc24ed6133
jit: Drop redundant LLVM configure probes.

We currently require LLVM 14, so these probes for LLVM 9 functions
always succeeded.  Even when the features aren't enabled in an LLVM
build, dummy functions are defined (a problem for a later commit).

The whole PGAC_CHECK_LLVM_FUNCTIONS macro and Meson equivalent are
removed, because we switched to testing LLVM_VERSION_MAJOR at compile
time in subsequent work and these were the last holdouts.  That suits
the nature of LLVM API evolution better, and also allows for strictly
mechanical pruning in future commits like 820b5af7 and 972c2cd2.  They
advanced the minimum LLVM version but failed to spot these.

Reviewed-by: Matheus Alcantara <matheusssilv97@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CA%2BhUKGJgB6gvrdDohgwLfCwzVQm%3DVMtb9m0vzQn%3DCwWn-kwG9w%40mail.gmail.com
config/llvm.m4
configure
configure.ac
meson.build
src/backend/jit/llvm/llvmjit.c
src/include/pg_config.h.in