@@ -7,153 +7,153 @@ import cllvm
7
7
public enum OpCode : UInt32 {
8
8
// MARK: Terminator Instructions
9
9
10
- // The opcode for the `ret` instruction.
10
+ /// The opcode for the `ret` instruction.
11
11
case ret = 1
12
- // The opcode for the `br` instruction.
12
+ /// The opcode for the `br` instruction.
13
13
case br = 2
14
- // The opcode for the `switch` instruction.
14
+ /// The opcode for the `switch` instruction.
15
15
case `switch` = 3
16
- // The opcode for the `indirectBr` instruction.
16
+ /// The opcode for the `indirectBr` instruction.
17
17
case indirectBr = 4
18
- // The opcode for the `invoke` instruction.
18
+ /// The opcode for the `invoke` instruction.
19
19
case invoke = 5
20
- // The opcode for the `unreachable` instruction.
20
+ /// The opcode for the `unreachable` instruction.
21
21
case unreachable = 7
22
22
23
23
// MARK: Standard Binary Operators
24
24
25
- // The opcode for the `add` instruction.
25
+ /// The opcode for the `add` instruction.
26
26
case add = 8
27
- // The opcode for the `fadd` instruction.
27
+ /// The opcode for the `fadd` instruction.
28
28
case fadd = 9
29
- // The opcode for the `sub` instruction.
29
+ /// The opcode for the `sub` instruction.
30
30
case sub = 10
31
- // The opcode for the `fsub` instruction.
31
+ /// The opcode for the `fsub` instruction.
32
32
case fsub = 11
33
- // The opcode for the `mul` instruction.
33
+ /// The opcode for the `mul` instruction.
34
34
case mul = 12
35
- // The opcode for the `fmul` instruction.
35
+ /// The opcode for the `fmul` instruction.
36
36
case fmul = 13
37
- // The opcode for the `udiv` instruction.
37
+ /// The opcode for the `udiv` instruction.
38
38
case udiv = 14
39
- // The opcode for the `sdiv` instruction.
39
+ /// The opcode for the `sdiv` instruction.
40
40
case sdiv = 15
41
- // The opcode for the `fdiv` instruction.
41
+ /// The opcode for the `fdiv` instruction.
42
42
case fdiv = 16
43
- // The opcode for the `urem` instruction.
43
+ /// The opcode for the `urem` instruction.
44
44
case urem = 17
45
- // The opcode for the `srem` instruction.
45
+ /// The opcode for the `srem` instruction.
46
46
case srem = 18
47
- // The opcode for the `frem` instruction.
47
+ /// The opcode for the `frem` instruction.
48
48
case frem = 19
49
49
50
50
// MARK: Logical Operators
51
51
52
- // The opcode for the `shl` instruction.
52
+ /// The opcode for the `shl` instruction.
53
53
case shl = 20
54
- // The opcode for the `lshr` instruction.
54
+ /// The opcode for the `lshr` instruction.
55
55
case lshr = 21
56
- // The opcode for the `ashr` instruction.
56
+ /// The opcode for the `ashr` instruction.
57
57
case ashr = 22
58
- // The opcode for the `and` instruction.
58
+ /// The opcode for the `and` instruction.
59
59
case and = 23
60
- // The opcode for the `or` instruction.
60
+ /// The opcode for the `or` instruction.
61
61
case or = 24
62
- // The opcode for the `xor` instruction.
62
+ /// The opcode for the `xor` instruction.
63
63
case xor = 25
64
64
65
65
// MARK: Memory Operators
66
66
67
- // The opcode for the `alloca` instruction.
67
+ /// The opcode for the `alloca` instruction.
68
68
case alloca = 26
69
- // The opcode for the `load` instruction.
69
+ /// The opcode for the `load` instruction.
70
70
case load = 27
71
- // The opcode for the `store` instruction.
71
+ /// The opcode for the `store` instruction.
72
72
case store = 28
73
- // The opcode for the `getElementPtr` instruction.
73
+ /// The opcode for the `getElementPtr` instruction.
74
74
case getElementPtr = 29
75
75
76
76
// MARK: Cast Operators
77
77
78
- // The opcode for the `trunc` instruction.
78
+ /// The opcode for the `trunc` instruction.
79
79
case trunc = 30
80
- // The opcode for the `zext` instruction.
80
+ /// The opcode for the `zext` instruction.
81
81
case zext = 31
82
- // The opcode for the `sext` instruction.
82
+ /// The opcode for the `sext` instruction.
83
83
case sext = 32
84
- // The opcode for the `fpToUI` instruction.
84
+ /// The opcode for the `fpToUI` instruction.
85
85
case fpToUI = 33
86
- // The opcode for the `fpToSI` instruction.
86
+ /// The opcode for the `fpToSI` instruction.
87
87
case fpToSI = 34
88
- // The opcode for the `uiToFP` instruction.
88
+ /// The opcode for the `uiToFP` instruction.
89
89
case uiToFP = 35
90
- // The opcode for the `siToFP` instruction.
90
+ /// The opcode for the `siToFP` instruction.
91
91
case siToFP = 36
92
- // The opcode for the `fpTrunc` instruction.
92
+ /// The opcode for the `fpTrunc` instruction.
93
93
case fpTrunc = 37
94
- // The opcode for the `fpExt` instruction.
94
+ /// The opcode for the `fpExt` instruction.
95
95
case fpExt = 38
96
- // The opcode for the `ptrToInt` instruction.
96
+ /// The opcode for the `ptrToInt` instruction.
97
97
case ptrToInt = 39
98
- // The opcode for the `intToPtr` instruction.
98
+ /// The opcode for the `intToPtr` instruction.
99
99
case intToPtr = 40
100
- // The opcode for the `bitCast` instruction.
100
+ /// The opcode for the `bitCast` instruction.
101
101
case bitCast = 41
102
- // The opcode for the `addrSpaceCast` instruction.
102
+ /// The opcode for the `addrSpaceCast` instruction.
103
103
case addrSpaceCast = 60
104
104
105
105
// MARK: Other Operators
106
106
107
- // The opcode for the `icmp` instruction.
107
+ /// The opcode for the `icmp` instruction.
108
108
case icmp = 42
109
- // The opcode for the `fcmp` instruction.
109
+ /// The opcode for the `fcmp` instruction.
110
110
case fcmp = 43
111
- // The opcode for the `PHI` instruction.
111
+ /// The opcode for the `PHI` instruction.
112
112
case PHI = 44
113
- // The opcode for the `call` instruction.
113
+ /// The opcode for the `call` instruction.
114
114
case call = 45
115
- // The opcode for the `select` instruction.
115
+ /// The opcode for the `select` instruction.
116
116
case select = 46
117
- // The opcode for the `userOp1` instruction.
117
+ /// The opcode for the `userOp1` instruction.
118
118
case userOp1 = 47
119
- // The opcode for the `userOp2` instruction.
119
+ /// The opcode for the `userOp2` instruction.
120
120
case userOp2 = 48
121
- // The opcode for the `vaArg` instruction.
121
+ /// The opcode for the `vaArg` instruction.
122
122
case vaArg = 49
123
- // The opcode for the `extractElement` instruction.
123
+ /// The opcode for the `extractElement` instruction.
124
124
case extractElement = 50
125
- // The opcode for the `insertElement` instruction.
125
+ /// The opcode for the `insertElement` instruction.
126
126
case insertElement = 51
127
- // The opcode for the `shuffleVector` instruction.
127
+ /// The opcode for the `shuffleVector` instruction.
128
128
case shuffleVector = 52
129
- // The opcode for the `extractValue` instruction.
129
+ /// The opcode for the `extractValue` instruction.
130
130
case extractValue = 53
131
- // The opcode for the `insertValue` instruction.
131
+ /// The opcode for the `insertValue` instruction.
132
132
case insertValue = 54
133
133
134
134
// MARK: Atomic operators
135
135
136
- // The opcode for the `fence` instruction.
136
+ /// The opcode for the `fence` instruction.
137
137
case fence = 55
138
- // The opcode for the `atomicCmpXchg` instruction.
138
+ /// The opcode for the `atomicCmpXchg` instruction.
139
139
case atomicCmpXchg = 56
140
- // The opcode for the `atomicRMW` instruction.
140
+ /// The opcode for the `atomicRMW` instruction.
141
141
case atomicRMW = 57
142
142
143
143
// MARK: Exception Handling Operators
144
144
145
- // The opcode for the `resume` instruction.
145
+ /// The opcode for the `resume` instruction.
146
146
case resume = 58
147
- // The opcode for the `landingPad` instruction.
147
+ /// The opcode for the `landingPad` instruction.
148
148
case landingPad = 59
149
- // The opcode for the `cleanupRet` instruction.
149
+ /// The opcode for the `cleanupRet` instruction.
150
150
case cleanupRet = 61
151
- // The opcode for the `catchRet` instruction.
151
+ /// The opcode for the `catchRet` instruction.
152
152
case catchRet = 62
153
- // The opcode for the `catchPad` instruction.
153
+ /// The opcode for the `catchPad` instruction.
154
154
case catchPad = 63
155
- // The opcode for the `cleanupPad` instruction.
155
+ /// The opcode for the `cleanupPad` instruction.
156
156
case cleanupPad = 64
157
- // The opcode for the `catchSwitch` instruction.
157
+ /// The opcode for the `catchSwitch` instruction.
158
158
case catchSwitch = 65
159
159
}
0 commit comments