Debian Codegraph @

arch/AArch64/AArch64Mapping.h

raw symbols SCIP
1 /* Capstone Disassembly Engine */
2 /* By Nguyen Anh Quynh <[email protected]>, 2013-2019 */
3
4 #ifndef CS_ARM64_MAP_H
5 #define CS_ARM64_MAP_H
6
7 #include "capstone/capstone.h"
8
9 #define ARR_SIZE(a) (sizeof(a)/sizeof(a[0]))
10
11 // return name of regiser in friendly string
12 const char *AArch64_reg_name(csh handle, unsigned int reg);
13
14 // given internal insn id, return public instruction info
15 void AArch64_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id);
16
17 const char *AArch64_insn_name(csh handle, unsigned int id);
18
19 const char *AArch64_group_name(csh handle, unsigned int id);
20
21 // map instruction name to public instruction ID
22 arm64_insn AArch64_map_insn(const char *name);
23
24 // map internal vregister to public register
25 arm64_reg AArch64_map_vregister(unsigned int r);
26
27 arm64_sys_op AArch64_map_sys_op(const char *name);
28
29 void arm64_op_addReg(MCInst *MI, int reg);
30
31 void arm64_op_addVectorArrSpecifier(MCInst * MI, int sp);
32
33 void arm64_op_addFP(MCInst *MI, float fp);
34
35 void arm64_op_addImm(MCInst *MI, int64_t imm);
36
37 const uint8_t *AArch64_get_op_access(cs_struct *h, unsigned int id);
38
39 void AArch64_reg_access(const cs_insn *insn,
40 cs_regs regs_read, uint8_t *regs_read_count,
41 cs_regs regs_write, uint8_t *regs_write_count);
42
43 #endif