Project Alice
Loading...
Searching...
No Matches
DisassemblerTypes.h
Go to the documentation of this file.
1/*===-- llvm-c/DisassemblerTypedefs.h -----------------------------*- 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#ifndef LLVM_C_DISASSEMBLERTYPES_H
11#define LLVM_C_DISASSEMBLERTYPES_H
12
13#include "llvm-c/DataTypes.h"
14#ifdef __cplusplus
15#include <cstddef>
16#else
17#include <stddef.h>
18#endif
19
30
48typedef int (*LLVMOpInfoCallback)(void *DisInfo, uint64_t PC, uint64_t Offset,
49 uint64_t OpSize, uint64_t InstSize,
50 int TagType, void *TagBuf);
51
73 uint64_t Present; /* 1 if this symbol is present */
74 const char *Name; /* symbol name if not NULL */
75 uint64_t Value; /* symbol value if name is NULL */
76};
77
83};
84
88#define LLVMDisassembler_VariantKind_None 0 /* all targets */
89
93#define LLVMDisassembler_VariantKind_ARM_HI16 1 /* :upper16: */
94#define LLVMDisassembler_VariantKind_ARM_LO16 2 /* :lower16: */
95
99#define LLVMDisassembler_VariantKind_ARM64_PAGE 1 /* @page */
100#define LLVMDisassembler_VariantKind_ARM64_PAGEOFF 2 /* @pageoff */
101#define LLVMDisassembler_VariantKind_ARM64_GOTPAGE 3 /* @gotpage */
102#define LLVMDisassembler_VariantKind_ARM64_GOTPAGEOFF 4 /* @gotpageoff */
103#define LLVMDisassembler_VariantKind_ARM64_TLVP 5 /* @tvlppage */
104#define LLVMDisassembler_VariantKind_ARM64_TLVOFF 6 /* @tvlppageoff */
105
118typedef const char *(*LLVMSymbolLookupCallback)(void *DisInfo,
119 uint64_t ReferenceValue,
120 uint64_t *ReferenceType,
121 uint64_t ReferencePC,
122 const char **ReferenceName);
126/* No input reference type or no output reference type. */
127#define LLVMDisassembler_ReferenceType_InOut_None 0
128
129/* The input reference is from a branch instruction. */
130#define LLVMDisassembler_ReferenceType_In_Branch 1
131/* The input reference is from a PC relative load instruction. */
132#define LLVMDisassembler_ReferenceType_In_PCrel_Load 2
133
134/* The input reference is from an ARM64::ADRP instruction. */
135#define LLVMDisassembler_ReferenceType_In_ARM64_ADRP 0x100000001
136/* The input reference is from an ARM64::ADDXri instruction. */
137#define LLVMDisassembler_ReferenceType_In_ARM64_ADDXri 0x100000002
138/* The input reference is from an ARM64::LDRXui instruction. */
139#define LLVMDisassembler_ReferenceType_In_ARM64_LDRXui 0x100000003
140/* The input reference is from an ARM64::LDRXl instruction. */
141#define LLVMDisassembler_ReferenceType_In_ARM64_LDRXl 0x100000004
142/* The input reference is from an ARM64::ADR instruction. */
143#define LLVMDisassembler_ReferenceType_In_ARM64_ADR 0x100000005
144
145/* The output reference is to as symbol stub. */
146#define LLVMDisassembler_ReferenceType_Out_SymbolStub 1
147/* The output reference is to a symbol address in a literal pool. */
148#define LLVMDisassembler_ReferenceType_Out_LitPool_SymAddr 2
149/* The output reference is to a cstring address in a literal pool. */
150#define LLVMDisassembler_ReferenceType_Out_LitPool_CstrAddr 3
151
152/* The output reference is to a Objective-C CoreFoundation string. */
153#define LLVMDisassembler_ReferenceType_Out_Objc_CFString_Ref 4
154/* The output reference is to a Objective-C message. */
155#define LLVMDisassembler_ReferenceType_Out_Objc_Message 5
156/* The output reference is to a Objective-C message ref. */
157#define LLVMDisassembler_ReferenceType_Out_Objc_Message_Ref 6
158/* The output reference is to a Objective-C selector ref. */
159#define LLVMDisassembler_ReferenceType_Out_Objc_Selector_Ref 7
160/* The output reference is to a Objective-C class ref. */
161#define LLVMDisassembler_ReferenceType_Out_Objc_Class_Ref 8
162
163/* The output reference is to a C++ symbol name. */
164#define LLVMDisassembler_ReferenceType_DeMangled_Name 9
165
170#endif
int(* LLVMOpInfoCallback)(void *DisInfo, uint64_t PC, uint64_t Offset, uint64_t OpSize, uint64_t InstSize, int TagType, void *TagBuf)
void * LLVMDisasmContextRef
ulong uint64_t
struct LLVMOpInfoSymbol1 SubtractSymbol
struct LLVMOpInfoSymbol1 AddSymbol
uint64_t VariantKind