mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Add file containing extensions of the LLVM C API.
Author: Andres Freund Discussion: https://postgr.es/m/20170901064131.tazjxwus3k2w3ybh@alap3.anarazel.de
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user