1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
//===-- EDInfo.h - LLVM Enhanced Disassembler -------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_EDINFO_H
#define LLVM_EDINFO_H
enum {
EDIS_MAX_OPERANDS = 13,
EDIS_MAX_SYNTAXES = 2
};
enum OperandTypes {
kOperandTypeNone,
kOperandTypeImmediate,
kOperandTypeRegister,
kOperandTypeX86Memory,
kOperandTypeX86EffectiveAddress,
kOperandTypeX86PCRelative,
kOperandTypeARMBranchTarget,
kOperandTypeARMSoReg,
kOperandTypeARMSoImm,
kOperandTypeARMSoImm2Part,
kOperandTypeARMPredicate,
kOperandTypeARMAddrMode2,
kOperandTypeARMAddrMode2Offset,
kOperandTypeARMAddrMode3,
kOperandTypeARMAddrMode3Offset,
kOperandTypeARMAddrMode4,
kOperandTypeARMAddrMode5,
kOperandTypeARMAddrMode6,
kOperandTypeARMAddrMode6Offset,
kOperandTypeARMAddrModePC,
kOperandTypeARMRegisterList,
kOperandTypeARMTBAddrMode,
kOperandTypeThumbITMask,
kOperandTypeThumbAddrModeS1,
kOperandTypeThumbAddrModeS2,
kOperandTypeThumbAddrModeS4,
kOperandTypeThumbAddrModeRR,
kOperandTypeThumbAddrModeSP,
kOperandTypeThumb2SoReg,
kOperandTypeThumb2SoImm,
kOperandTypeThumb2AddrModeImm8,
kOperandTypeThumb2AddrModeImm8Offset,
kOperandTypeThumb2AddrModeImm12,
kOperandTypeThumb2AddrModeSoReg,
kOperandTypeThumb2AddrModeImm8s4,
kOperandTypeThumb2AddrModeImm8s4Offset
};
enum OperandFlags {
kOperandFlagSource = 0x1,
kOperandFlagTarget = 0x2
};
enum InstructionTypes {
kInstructionTypeNone,
kInstructionTypeMove,
kInstructionTypeBranch,
kInstructionTypePush,
kInstructionTypePop,
kInstructionTypeCall,
kInstructionTypeReturn
};
#endif
|