Update llvm-c headers for Version 11.0.1

This commit is contained in:
gingerBill
2021-03-19 15:46:33 +00:00
parent 2b806f7463
commit bda9eb7348
32 changed files with 357 additions and 265 deletions
+20 -5
View File
@@ -15,14 +15,16 @@
#ifndef LLVM_C_REMARKS_H
#define LLVM_C_REMARKS_H
#include "ExternC.h"
#include "Types.h"
#ifdef __cplusplus
#include <cstddef>
extern "C" {
#else
#include <stddef.h>
#endif /* !defined(__cplusplus) */
LLVM_C_EXTERN_C_BEGIN
/**
* @defgroup LLVMCREMARKS Remarks
* @ingroup LLVMC
@@ -30,7 +32,8 @@ extern "C" {
* @{
*/
#define REMARKS_API_VERSION 0
// 0 -> 1: Bitstream remarks support.
#define REMARKS_API_VERSION 1
/**
* The type of the emitted remark.
@@ -240,6 +243,20 @@ typedef struct LLVMRemarkOpaqueParser *LLVMRemarkParserRef;
extern LLVMRemarkParserRef LLVMRemarkParserCreateYAML(const void *Buf,
uint64_t Size);
/**
* Creates a remark parser that can be used to parse the buffer located in \p
* Buf of size \p Size bytes.
*
* \p Buf cannot be `NULL`.
*
* This function should be paired with LLVMRemarkParserDispose() to avoid
* leaking resources.
*
* \since REMARKS_API_VERSION=1
*/
extern LLVMRemarkParserRef LLVMRemarkParserCreateBitstream(const void *Buf,
uint64_t Size);
/**
* Returns the next remark in the file.
*
@@ -322,8 +339,6 @@ extern uint32_t LLVMRemarkVersion(void);
* @} // endgoup LLVMCREMARKS
*/
#ifdef __cplusplus
}
#endif /* !defined(__cplusplus) */
LLVM_C_EXTERN_C_END
#endif /* LLVM_C_REMARKS_H */