diff options
| author | gingerBill <bill@gingerbill.org> | 2023-09-19 16:15:26 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-09-19 16:15:26 +0100 |
| commit | e748d2f2af40895f1b067aaa74ac2ca2b737a243 (patch) | |
| tree | ea176294a9a2b7845751ef96aab63f28bed61523 /src/llvm-c/DisassemblerTypes.h | |
| parent | ecde06e3a31179bd8f86383fd65cfbce31ab6d9a (diff) | |
Update to LLVM-17
Diffstat (limited to 'src/llvm-c/DisassemblerTypes.h')
| -rw-r--r-- | src/llvm-c/DisassemblerTypes.h | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/src/llvm-c/DisassemblerTypes.h b/src/llvm-c/DisassemblerTypes.h index 389e5ee45..6999a350e 100644 --- a/src/llvm-c/DisassemblerTypes.h +++ b/src/llvm-c/DisassemblerTypes.h @@ -7,8 +7,8 @@ |* *| |*===----------------------------------------------------------------------===*/ -#ifndef LLVM_DISASSEMBLER_TYPES_H -#define LLVM_DISASSEMBLER_TYPES_H +#ifndef LLVM_C_DISASSEMBLERTYPES_H +#define LLVM_C_DISASSEMBLERTYPES_H #include "llvm-c/DataTypes.h" #ifdef __cplusplus @@ -18,6 +18,12 @@ #endif /** + * @addtogroup LLVMCDisassembler + * + * @{ + */ + +/** * An opaque reference to a disassembler context. */ typedef void *LLVMDisasmContextRef; @@ -32,15 +38,15 @@ typedef void *LLVMDisasmContextRef; * one operand with symbolic information. To determine the symbolic operand * information for each operand, the bytes for the specific operand in the * instruction are specified by the Offset parameter and its byte widith is the - * size parameter. For instructions sets with fixed widths and one symbolic - * operand per instruction, the Offset parameter will be zero and Size parameter - * will be the instruction width. The information is returned in TagBuf and is - * Triple specific with its specific information defined by the value of - * TagType for that Triple. If symbolic information is returned the function - * returns 1, otherwise it returns 0. + * OpSize parameter. For instructions sets with fixed widths and one symbolic + * operand per instruction, the Offset parameter will be zero and InstSize + * parameter will be the instruction width. The information is returned in + * TagBuf and is Triple specific with its specific information defined by the + * value of TagType for that Triple. If symbolic information is returned the + * function * returns 1, otherwise it returns 0. */ -typedef int (*LLVMOpInfoCallback)(void *DisInfo, uint64_t PC, - uint64_t Offset, uint64_t Size, +typedef int (*LLVMOpInfoCallback)(void *DisInfo, uint64_t PC, uint64_t Offset, + uint64_t OpSize, uint64_t InstSize, int TagType, void *TagBuf); /** @@ -157,4 +163,8 @@ typedef const char *(*LLVMSymbolLookupCallback)(void *DisInfo, /* The output reference is to a C++ symbol name. */ #define LLVMDisassembler_ReferenceType_DeMangled_Name 9 +/** + * @} + */ + #endif |