15#ifndef LLVM_C_DISASSEMBLER_H
16#define LLVM_C_DISASSEMBLER_H
40 const char *TripleName,
void *DisInfo,
int TagType,
52 const char *Triple,
const char *CPU,
void *DisInfo,
int TagType,
63 const char *Triple,
const char *CPU,
const char *Features,
void *DisInfo,
74#define LLVMDisassembler_Option_UseMarkup 1
76#define LLVMDisassembler_Option_PrintImmHex 2
78#define LLVMDisassembler_Option_AsmPrinterVariant 4
80#define LLVMDisassembler_Option_SetInstrComments 8
82#define LLVMDisassembler_Option_PrintLatency 16
84#define LLVMDisassembler_Option_Color 32
103 char *OutString,
size_t OutStringSize);
#define LLVM_C_EXTERN_C_BEGIN
#define LLVM_C_EXTERN_C_END
#define LLVM_C_ABI
LLVM_C_ABI is the export/visibility macro used to mark symbols declared in llvm-c as exported when bu...
const char *(* LLVMSymbolLookupCallback)(void *DisInfo, uint64_t ReferenceValue, uint64_t *ReferenceType, uint64_t ReferencePC, const char **ReferenceName)
The type for the symbol lookup function.
LLVM_C_ABI void LLVMDisasmDispose(LLVMDisasmContextRef DC)
Dispose of a disassembler context.
LLVM_C_ABI int LLVMSetDisasmOptions(LLVMDisasmContextRef DC, uint64_t Options)
Set the disassembler's options.
LLVM_C_ABI LLVMDisasmContextRef LLVMCreateDisasmCPUFeatures(const char *Triple, const char *CPU, const char *Features, void *DisInfo, int TagType, LLVMOpInfoCallback GetOpInfo, LLVMSymbolLookupCallback SymbolLookUp)
Create a disassembler for the TripleName, a specific CPU and specific feature string.
LLVM_C_EXTERN_C_BEGIN LLVM_C_ABI LLVMDisasmContextRef LLVMCreateDisasm(const char *TripleName, void *DisInfo, int TagType, LLVMOpInfoCallback GetOpInfo, LLVMSymbolLookupCallback SymbolLookUp)
Create a disassembler for the TripleName.
int(* LLVMOpInfoCallback)(void *DisInfo, uint64_t PC, uint64_t Offset, uint64_t OpSize, uint64_t InstSize, int TagType, void *TagBuf)
The type for the operand information call back function.
LLVM_C_ABI size_t LLVMDisasmInstruction(LLVMDisasmContextRef DC, uint8_t *Bytes, uint64_t BytesSize, uint64_t PC, char *OutString, size_t OutStringSize)
Disassemble a single instruction using the disassembler context specified in the parameter DC.
LLVM_C_ABI LLVMDisasmContextRef LLVMCreateDisasmCPU(const char *Triple, const char *CPU, void *DisInfo, int TagType, LLVMOpInfoCallback GetOpInfo, LLVMSymbolLookupCallback SymbolLookUp)
Create a disassembler for the TripleName and a specific CPU.
void * LLVMDisasmContextRef
An opaque reference to a disassembler context.