diff options
| author | Thomas Munro | 2024-01-25 02:23:04 +0000 |
|---|---|---|
| committer | Thomas Munro | 2024-01-25 02:42:34 +0000 |
| commit | 820b5af73dcc6a5d0db6a98a62a6b859e5d107b6 (patch) | |
| tree | cc46c2147142da3b000398e001ea2315ff3e298e /src/include | |
| parent | 729439607ad210dbb446e31754e8627d7e3f7dda (diff) | |
jit: Require at least LLVM 10.
Remove support for older LLVM versions. The default on common software
distributions will be at least LLVM 10 when PostgreSQL 17 ships.
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://postgr.es/m/CA%2BhUKGLhNs5geZaVNj2EJ79Dx9W8fyWUU3HxcpZy55sMGcY%3DiA%40mail.gmail.com
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/jit/llvmjit.h | 17 | ||||
| -rw-r--r-- | src/include/pg_config.h.in | 12 |
2 files changed, 0 insertions, 29 deletions
diff --git a/src/include/jit/llvmjit.h b/src/include/jit/llvmjit.h index 8b0c059f268..9d9db806625 100644 --- a/src/include/jit/llvmjit.h +++ b/src/include/jit/llvmjit.h @@ -130,26 +130,9 @@ extern LLVMValueRef slot_compile_deform(struct LLVMJitContext *context, TupleDes * Error handling related functions. **************************************************************************** */ -#if defined(HAVE_DECL_LLVMGETHOSTCPUNAME) && !HAVE_DECL_LLVMGETHOSTCPUNAME -/** Get the host CPU as a string. The result needs to be disposed with - LLVMDisposeMessage. */ -extern char *LLVMGetHostCPUName(void); -#endif - -#if defined(HAVE_DECL_LLVMGETHOSTCPUFEATURES) && !HAVE_DECL_LLVMGETHOSTCPUFEATURES -/** Get the host CPU features as a string. The result needs to be disposed - with LLVMDisposeMessage. */ -extern char *LLVMGetHostCPUFeatures(void); -#endif - -extern unsigned LLVMGetAttributeCountAtIndexPG(LLVMValueRef F, uint32 Idx); extern LLVMTypeRef LLVMGetFunctionReturnType(LLVMValueRef r); extern LLVMTypeRef LLVMGetFunctionType(LLVMValueRef r); -#if LLVM_MAJOR_VERSION < 8 -extern LLVMTypeRef LLVMGlobalGetValueType(LLVMValueRef g); -#endif - #ifdef __cplusplus } /* extern "C" */ #endif diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in index 288bb9cb426..07e73567dc7 100644 --- a/src/include/pg_config.h.in +++ b/src/include/pg_config.h.in @@ -100,18 +100,6 @@ `LLVMCreatePerfJITEventListener', and to 0 if you don't. */ #undef HAVE_DECL_LLVMCREATEPERFJITEVENTLISTENER -/* Define to 1 if you have the declaration of `LLVMGetHostCPUFeatures', and to - 0 if you don't. */ -#undef HAVE_DECL_LLVMGETHOSTCPUFEATURES - -/* Define to 1 if you have the declaration of `LLVMGetHostCPUName', and to 0 - if you don't. */ -#undef HAVE_DECL_LLVMGETHOSTCPUNAME - -/* Define to 1 if you have the declaration of `LLVMOrcGetSymbolAddressIn', and - to 0 if you don't. */ -#undef HAVE_DECL_LLVMORCGETSYMBOLADDRESSIN - /* Define to 1 if you have the declaration of `posix_fadvise', and to 0 if you don't. */ #undef HAVE_DECL_POSIX_FADVISE |
