Project Alice
Loading...
Searching...
No Matches
Remarks.h
Go to the documentation of this file.
1/*===-- llvm-c/Remarks.h - Remarks Public C Interface -------------*- C -*-===*\
2|* *|
3|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *|
4|* Exceptions. *|
5|* See https://llvm.org/LICENSE.txt for license information. *|
6|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *|
7|* *|
8|*===----------------------------------------------------------------------===*|
9|* *|
10|* This header provides a public interface to a remark diagnostics library. *|
11|* LLVM provides an implementation of this interface. *|
12|* *|
13\*===----------------------------------------------------------------------===*/
14
15#ifndef LLVM_C_REMARKS_H
16#define LLVM_C_REMARKS_H
17
18#include "llvm-c/ExternC.h"
19#include "llvm-c/Types.h"
20#ifdef __cplusplus
21#include <cstddef>
22#else
23#include <stddef.h>
24#endif /* !defined(__cplusplus) */
25
27
35// 0 -> 1: Bitstream remarks support.
36#define REMARKS_API_VERSION 1
37
49};
50
57typedef struct LLVMRemarkOpaqueString *LLVMRemarkStringRef;
58
65
72
78typedef struct LLVMRemarkOpaqueDebugLoc *LLVMRemarkDebugLocRef;
79
87
94
101
109typedef struct LLVMRemarkOpaqueArg *LLVMRemarkArgRef;
110
118
125
134
140typedef struct LLVMRemarkOpaqueEntry *LLVMRemarkEntryRef;
141
148
156
164
172
180
190
199
206
217
228 LLVMRemarkEntryRef Remark);
229
230typedef struct LLVMRemarkOpaqueParser *LLVMRemarkParserRef;
231
244 uint64_t Size);
245
258 uint64_t Size);
259
303
310
323
330
337
343
344#endif /* LLVM_C_REMARKS_H */
#define LLVM_C_EXTERN_C_BEGIN
Definition: ExternC.h:35
#define LLVM_C_EXTERN_C_END
Definition: ExternC.h:36
uint32_t LLVMRemarkVersion(void)
LLVMRemarkStringRef LLVMRemarkEntryGetPassName(LLVMRemarkEntryRef Remark)
LLVMRemarkStringRef LLVMRemarkArgGetKey(LLVMRemarkArgRef Arg)
const char * LLVMRemarkStringGetData(LLVMRemarkStringRef String)
uint32_t LLVMRemarkStringGetLen(LLVMRemarkStringRef String)
struct LLVMRemarkOpaqueEntry * LLVMRemarkEntryRef
Definition: Remarks.h:140
LLVMRemarkType
Definition: Remarks.h:41
LLVMRemarkParserRef LLVMRemarkParserCreateBitstream(const void *Buf, uint64_t Size)
struct LLVMRemarkOpaqueString * LLVMRemarkStringRef
Definition: Remarks.h:57
void LLVMRemarkEntryDispose(LLVMRemarkEntryRef Remark)
struct LLVMRemarkOpaqueArg * LLVMRemarkArgRef
Definition: Remarks.h:109
uint32_t LLVMRemarkDebugLocGetSourceLine(LLVMRemarkDebugLocRef DL)
LLVMRemarkParserRef LLVMRemarkParserCreateYAML(const void *Buf, uint64_t Size)
enum LLVMRemarkType LLVMRemarkEntryGetType(LLVMRemarkEntryRef Remark)
struct LLVMRemarkOpaqueParser * LLVMRemarkParserRef
Definition: Remarks.h:230
LLVMRemarkArgRef LLVMRemarkEntryGetFirstArg(LLVMRemarkEntryRef Remark)
LLVMRemarkArgRef LLVMRemarkEntryGetNextArg(LLVMRemarkArgRef It, LLVMRemarkEntryRef Remark)
LLVMBool LLVMRemarkParserHasError(LLVMRemarkParserRef Parser)
LLVMRemarkStringRef LLVMRemarkDebugLocGetSourceFilePath(LLVMRemarkDebugLocRef DL)
LLVMRemarkDebugLocRef LLVMRemarkEntryGetDebugLoc(LLVMRemarkEntryRef Remark)
uint32_t LLVMRemarkEntryGetNumArgs(LLVMRemarkEntryRef Remark)
LLVMRemarkStringRef LLVMRemarkEntryGetRemarkName(LLVMRemarkEntryRef Remark)
LLVMRemarkStringRef LLVMRemarkArgGetValue(LLVMRemarkArgRef Arg)
const char * LLVMRemarkParserGetErrorMessage(LLVMRemarkParserRef Parser)
uint32_t LLVMRemarkDebugLocGetSourceColumn(LLVMRemarkDebugLocRef DL)
struct LLVMRemarkOpaqueDebugLoc * LLVMRemarkDebugLocRef
Definition: Remarks.h:78
LLVMRemarkDebugLocRef LLVMRemarkArgGetDebugLoc(LLVMRemarkArgRef Arg)
void LLVMRemarkParserDispose(LLVMRemarkParserRef Parser)
LLVMRemarkEntryRef LLVMRemarkParserGetNext(LLVMRemarkParserRef Parser)
LLVMRemarkStringRef LLVMRemarkEntryGetFunctionName(LLVMRemarkEntryRef Remark)
uint64_t LLVMRemarkEntryGetHotness(LLVMRemarkEntryRef Remark)
@ LLVMRemarkTypeAnalysisFPCommute
Definition: Remarks.h:46
@ LLVMRemarkTypeAnalysisAliasing
Definition: Remarks.h:47
@ LLVMRemarkTypePassed
Definition: Remarks.h:43
@ LLVMRemarkTypeUnknown
Definition: Remarks.h:42
@ LLVMRemarkTypeFailure
Definition: Remarks.h:48
@ LLVMRemarkTypeAnalysis
Definition: Remarks.h:45
@ LLVMRemarkTypeMissed
Definition: Remarks.h:44
int LLVMBool
Definition: Types.h:28
uint uint32_t
ulong uint64_t