From 31bc604e0b74805ff9e84a2d549ca82be665d0a6 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Wed, 21 Mar 2018 19:44:17 -0700 Subject: Add file containing extensions of the LLVM C API. Author: Andres Freund Discussion: https://postgr.es/m/20170901064131.tazjxwus3k2w3ybh@alap3.anarazel.de --- src/include/jit/llvmjit.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/include/jit/llvmjit.h') diff --git a/src/include/jit/llvmjit.h b/src/include/jit/llvmjit.h index 187ebe2c2a0..63b2fdfe591 100644 --- a/src/include/jit/llvmjit.h +++ b/src/include/jit/llvmjit.h @@ -44,6 +44,23 @@ extern void llvm_assert_in_fatal_section(void); extern LLVMJitContext *llvm_create_context(int jitFlags); + +/* + **************************************************************************** + * Extensions / Backward compatibility section of the LLVM C API + * 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 + +/** Get the host CPU features as a string. The result needs to be disposed + with LLVMDisposeMessage. */ +extern char *LLVMGetHostCPUFeatures(void); + #ifdef __cplusplus } /* extern "C" */ #endif -- cgit v1.2.3