MimIR
0.6-dev
MimIR is my Intermediate Representation
Toggle main menu visibility
Loading...
Searching...
No Matches
autogen.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
mim/axm.h
>
4
#include <
mim/plugin.h
>
5
6
/// @namespace mim::plug::x86_isel @ref x86_isel
7
namespace
mim
{
8
namespace
plug::x86_isel
{
9
10
static
constexpr
plugin_t
Plugin_Id
= 0x67ef0129418d0000;
11
12
/// @name `x86_isel.imm`
13
///@{
14
enum class
imm
:
flags_t
{
15
};
16
17
const
Def
*
normalize_imm
(
const
Def
*,
const
Def
*,
const
Def
*);
18
///@}
19
20
/// @name `x86_isel.addr`
21
///@{
22
enum class
addr
:
flags_t
{
23
};
24
25
///@}
26
27
/// @name `x86_isel.reg_imm`
28
///@{
29
enum class
reg_imm
:
flags_t
{
30
};
31
32
///@}
33
34
/// @name `x86_isel.reg_sh`
35
///@{
36
enum class
reg_sh
:
flags_t
{
37
};
38
39
///@}
40
41
/// @name `x86_isel.scaled`
42
///@{
43
enum class
scaled
:
flags_t
{
44
};
45
46
///@}
47
48
/// @name `x86_isel.zx`
49
///@{
50
enum class
zx
:
flags_t
{
51
};
52
53
///@}
54
55
/// @name `x86_isel.commutes`
56
///@{
57
enum class
commutes
:
flags_t
{
58
};
59
60
///@}
61
62
/// @name `x86_isel.alu`
63
///@{
64
enum class
alu
:
flags_t
{
65
};
66
67
///@}
68
69
/// @name `x86_isel.shift`
70
///@{
71
enum class
shift
:
flags_t
{
72
};
73
74
///@}
75
76
/// @name `x86_isel.neg`
77
///@{
78
enum class
neg
:
flags_t
{
79
};
80
81
///@}
82
83
/// @name `x86_isel.mul8`
84
///@{
85
enum class
mul8
:
flags_t
{
86
};
87
88
///@}
89
90
/// @name `x86_isel.div`
91
///@{
92
enum class
div
:
flags_t
{
93
};
94
95
///@}
96
97
/// @name `x86_isel.udiv8`
98
///@{
99
enum class
udiv8
:
flags_t
{
100
};
101
102
///@}
103
104
/// @name `x86_isel.sdiv8`
105
///@{
106
enum class
sdiv8
:
flags_t
{
107
};
108
109
///@}
110
111
/// @name `x86_isel.rem8`
112
///@{
113
enum class
rem8
:
flags_t
{
114
};
115
116
///@}
117
118
/// @name `x86_isel.rem16`
119
///@{
120
enum class
rem16
:
flags_t
{
121
};
122
123
///@}
124
125
/// @name `x86_isel.rem32`
126
///@{
127
enum class
rem32
:
flags_t
{
128
};
129
130
///@}
131
132
/// @name `x86_isel.rem64`
133
///@{
134
enum class
rem64
:
flags_t
{
135
};
136
137
///@}
138
139
/// @name `x86_isel.trunc`
140
///@{
141
enum class
trunc
:
flags_t
{
142
};
143
144
///@}
145
146
/// @name `x86_isel.strunc`
147
///@{
148
enum class
strunc
:
flags_t
{
149
};
150
151
///@}
152
153
/// @name `x86_isel.zext`
154
///@{
155
enum class
zext
:
flags_t
{
156
};
157
158
///@}
159
160
/// @name `x86_isel.sext`
161
///@{
162
enum class
sext
:
flags_t
{
163
};
164
165
///@}
166
167
/// @name `x86_isel.cast_trunc`
168
///@{
169
enum class
cast_trunc
:
flags_t
{
170
};
171
172
///@}
173
174
/// @name `x86_isel.cast_zext`
175
///@{
176
enum class
cast_zext
:
flags_t
{
177
};
178
179
///@}
180
181
/// @name `x86_isel.icmp`
182
///@{
183
enum class
icmp
:
flags_t
{
184
};
185
186
///@}
187
188
/// @name `x86_isel.select`
189
///@{
190
enum class
select
:
flags_t
{
191
};
192
193
///@}
194
195
/// @name `x86_isel.select8`
196
///@{
197
enum class
select8
:
flags_t
{
198
};
199
200
///@}
201
202
/// @name `x86_isel.float`
203
///@{
204
enum class
float_
:
flags_t
{
205
rm
= 0x67ef0129418d1b00,
206
sqrt_rm
= 0x67ef0129418d1b01,
207
arithmetic
= 0x67ef0129418d1b02,
208
cmp = 0x67ef0129418d1b03,
209
swap
= 0x67ef0129418d1b04,
210
cmp_rm
= 0x67ef0129418d1b05,
211
swap_rm
= 0x67ef0129418d1b06,
212
comparisons = 0x67ef0129418d1b07,
213
select
= 0x67ef0129418d1b08,
214
load
= 0x67ef0129418d1b09,
215
store
= 0x67ef0129418d1b0a,
216
s2f = 0x67ef0129418d1b0b,
217
u2f = 0x67ef0129418d1b0c,
218
f2s = 0x67ef0129418d1b0d,
219
f2u = 0x67ef0129418d1b0e,
220
f2f = 0x67ef0129418d1b0f,
221
s2f_rm
= 0x67ef0129418d1b10,
222
f2s_rm
= 0x67ef0129418d1b11,
223
f2u_rm
= 0x67ef0129418d1b12,
224
f2f_rm
= 0x67ef0129418d1b13,
225
conversions = 0x67ef0129418d1b14,
226
};
227
228
///@}
229
230
/// @name `x86_isel.load`
231
///@{
232
enum class
load
:
flags_t
{
233
};
234
235
///@}
236
237
/// @name `x86_isel.store`
238
///@{
239
enum class
store
:
flags_t
{
240
};
241
242
///@}
243
244
/// @name `x86_isel.sext_rm`
245
///@{
246
enum class
sext_rm
:
flags_t
{
247
};
248
249
///@}
250
251
/// @name `x86_isel.rm`
252
///@{
253
enum class
rm
:
flags_t
{
254
};
255
256
///@}
257
258
/// @name `x86_isel.mr`
259
///@{
260
enum class
mr
:
flags_t
{
261
};
262
263
///@}
264
265
/// @name `x86_isel.scale`
266
///@{
267
enum class
scale
:
flags_t
{
268
};
269
270
///@}
271
272
/// @name `x86_isel.base`
273
///@{
274
enum class
base
:
flags_t
{
275
};
276
277
///@}
278
279
/// @name `x86_isel.abs`
280
///@{
281
enum class
abs
:
flags_t
{
282
};
283
284
///@}
285
286
/// @name `x86_isel.mov`
287
///@{
288
enum class
mov
:
flags_t
{
289
};
290
291
///@}
292
293
/// @name `x86_isel.movz`
294
///@{
295
enum class
movz
:
flags_t
{
296
};
297
298
///@}
299
300
/// @name `x86_isel.fmov`
301
///@{
302
enum class
fmov
:
flags_t
{
303
};
304
305
///@}
306
307
/// @name `x86_isel.lea`
308
///@{
309
enum class
lea
:
flags_t
{
310
};
311
312
///@}
313
314
/// @name `x86_isel.scale1`
315
///@{
316
enum class
scale1
:
flags_t
{
317
};
318
319
///@}
320
321
/// @name `x86_isel.unscale`
322
///@{
323
enum class
unscale
:
flags_t
{
324
};
325
326
///@}
327
328
/// @name `x86_isel.zero`
329
///@{
330
enum class
zero
:
flags_t
{
331
};
332
333
///@}
334
335
/// @name `x86_isel.unzx`
336
///@{
337
enum class
unzx
:
flags_t
{
338
};
339
340
///@}
341
342
/// @name `x86_isel.formats`
343
///@{
344
enum class
formats
:
flags_t
{
345
};
346
347
///@}
348
349
/// @name `x86_isel.sizes`
350
///@{
351
enum class
sizes
:
flags_t
{
352
};
353
354
///@}
355
356
/// @name `x86_isel.arithmetic`
357
///@{
358
enum class
arithmetic
:
flags_t
{
359
};
360
361
///@}
362
363
/// @name `x86_isel.index_disp`
364
///@{
365
enum class
index_disp
:
flags_t
{
366
};
367
368
///@}
369
370
/// @name `x86_isel.base_index`
371
///@{
372
enum class
base_index
:
flags_t
{
373
};
374
375
///@}
376
377
/// @name `x86_isel.disp`
378
///@{
379
enum class
disp
:
flags_t
{
380
};
381
382
///@}
383
384
/// @name `x86_isel.index`
385
///@{
386
enum class
index
:
flags_t
{
387
};
388
389
///@}
390
391
/// @name `x86_isel.compares`
392
///@{
393
enum class
compares
:
flags_t
{
394
};
395
396
///@}
397
398
/// @name `x86_isel.division`
399
///@{
400
enum class
division
:
flags_t
{
401
};
402
403
///@}
404
405
/// @name `x86_isel.nonterminals`
406
///@{
407
enum class
nonterminals
:
flags_t
{
408
};
409
410
///@}
411
412
/// @name `x86_isel.addresses`
413
///@{
414
enum class
addresses
:
flags_t
{
415
};
416
417
///@}
418
419
/// @name `x86_isel.mem_ops`
420
///@{
421
enum class
mem_ops
:
flags_t
{
422
};
423
424
///@}
425
426
/// @name `x86_isel.gen`
427
///@{
428
enum class
gen
:
flags_t
{
429
};
430
431
///@}
432
433
void
register_normalizers
(
Normalizers
& normalizers);
434
435
#define MIM_x86_isel_NORMALIZER_IMPL \
436
void register_normalizers(Normalizers& normalizers) {\
437
normalizers[flags_t(Annex::Base<imm>)] = &normalize_imm; \
438
}
439
}
// namespace plug::x86_isel
440
441
#ifndef DOXYGEN
// don't include in Doxygen documentation
442
443
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::imm>
= 0x67ef0129418d0000;
444
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::imm>
= 0;
445
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::addr>
= 0x67ef0129418d0100;
446
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::addr>
= 0;
447
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::reg_imm>
= 0x67ef0129418d0200;
448
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::reg_imm>
= 0;
449
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::reg_sh>
= 0x67ef0129418d0300;
450
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::reg_sh>
= 0;
451
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::scaled>
= 0x67ef0129418d0400;
452
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::scaled>
= 0;
453
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::zx>
= 0x67ef0129418d0500;
454
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::zx>
= 0;
455
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::commutes>
= 0x67ef0129418d0600;
456
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::commutes>
= 0;
457
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::alu>
= 0x67ef0129418d0700;
458
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::alu>
= 0;
459
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::shift>
= 0x67ef0129418d0800;
460
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::shift>
= 0;
461
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::neg>
= 0x67ef0129418d0900;
462
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::neg>
= 0;
463
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::mul8>
= 0x67ef0129418d0a00;
464
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::mul8>
= 0;
465
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::div>
= 0x67ef0129418d0b00;
466
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::div>
= 0;
467
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::udiv8>
= 0x67ef0129418d0c00;
468
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::udiv8>
= 0;
469
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::sdiv8>
= 0x67ef0129418d0d00;
470
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::sdiv8>
= 0;
471
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::rem8>
= 0x67ef0129418d0e00;
472
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::rem8>
= 0;
473
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::rem16>
= 0x67ef0129418d0f00;
474
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::rem16>
= 0;
475
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::rem32>
= 0x67ef0129418d1000;
476
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::rem32>
= 0;
477
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::rem64>
= 0x67ef0129418d1100;
478
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::rem64>
= 0;
479
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::trunc>
= 0x67ef0129418d1200;
480
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::trunc>
= 0;
481
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::strunc>
= 0x67ef0129418d1300;
482
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::strunc>
= 0;
483
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::zext>
= 0x67ef0129418d1400;
484
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::zext>
= 0;
485
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::sext>
= 0x67ef0129418d1500;
486
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::sext>
= 0;
487
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::cast_trunc>
= 0x67ef0129418d1600;
488
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::cast_trunc>
= 0;
489
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::cast_zext>
= 0x67ef0129418d1700;
490
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::cast_zext>
= 0;
491
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::icmp>
= 0x67ef0129418d1800;
492
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::icmp>
= 0;
493
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::select>
= 0x67ef0129418d1900;
494
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::select>
= 0;
495
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::select8>
= 0x67ef0129418d1a00;
496
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::select8>
= 0;
497
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::float_>
= 0x67ef0129418d1b00;
498
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::float_>
= 21;
499
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::load>
= 0x67ef0129418d1c00;
500
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::load>
= 0;
501
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::store>
= 0x67ef0129418d1d00;
502
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::store>
= 0;
503
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::sext_rm>
= 0x67ef0129418d1e00;
504
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::sext_rm>
= 0;
505
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::rm>
= 0x67ef0129418d1f00;
506
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::rm>
= 0;
507
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::mr>
= 0x67ef0129418d2000;
508
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::mr>
= 0;
509
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::scale>
= 0x67ef0129418d2100;
510
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::scale>
= 0;
511
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::base>
= 0x67ef0129418d2200;
512
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::base>
= 0;
513
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::abs>
= 0x67ef0129418d2300;
514
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::abs>
= 0;
515
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::mov>
= 0x67ef0129418d2400;
516
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::mov>
= 0;
517
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::movz>
= 0x67ef0129418d2500;
518
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::movz>
= 0;
519
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::fmov>
= 0x67ef0129418d2600;
520
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::fmov>
= 0;
521
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::lea>
= 0x67ef0129418d2700;
522
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::lea>
= 0;
523
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::scale1>
= 0x67ef0129418d2800;
524
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::scale1>
= 0;
525
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::unscale>
= 0x67ef0129418d2900;
526
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::unscale>
= 0;
527
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::zero>
= 0x67ef0129418d2a00;
528
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::zero>
= 0;
529
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::unzx>
= 0x67ef0129418d2b00;
530
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::unzx>
= 0;
531
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::formats>
= 0x67ef0129418d2c00;
532
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::formats>
= 0;
533
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::sizes>
= 0x67ef0129418d2d00;
534
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::sizes>
= 0;
535
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::arithmetic>
= 0x67ef0129418d2e00;
536
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::arithmetic>
= 0;
537
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::index_disp>
= 0x67ef0129418d2f00;
538
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::index_disp>
= 0;
539
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::base_index>
= 0x67ef0129418d3000;
540
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::base_index>
= 0;
541
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::disp>
= 0x67ef0129418d3100;
542
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::disp>
= 0;
543
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::index>
= 0x67ef0129418d3200;
544
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::index>
= 0;
545
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::compares>
= 0x67ef0129418d3300;
546
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::compares>
= 0;
547
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::division>
= 0x67ef0129418d3400;
548
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::division>
= 0;
549
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::nonterminals>
= 0x67ef0129418d3500;
550
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::nonterminals>
= 0;
551
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::addresses>
= 0x67ef0129418d3600;
552
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::addresses>
= 0;
553
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::mem_ops>
= 0x67ef0129418d3700;
554
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::mem_ops>
= 0;
555
template
<>
constexpr
flags_t
Annex::Base<plug::x86_isel::gen>
= 0x67ef0129418d3800;
556
template
<>
constexpr
size_t
Annex::Num<plug::x86_isel::gen>
= 0;
557
558
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::commutes> {
using
type
=
Axm
; };
559
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::alu> {
using
type
=
Axm
; };
560
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::shift> {
using
type
=
Axm
; };
561
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::neg> {
using
type
=
Axm
; };
562
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::mul8> {
using
type
=
Axm
; };
563
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::div> {
using
type
=
Axm
; };
564
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::udiv8> {
using
type
=
Axm
; };
565
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::sdiv8> {
using
type
=
Axm
; };
566
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::rem8> {
using
type
=
Axm
; };
567
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::rem16> {
using
type
=
Axm
; };
568
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::rem32> {
using
type
=
Axm
; };
569
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::rem64> {
using
type
=
Axm
; };
570
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::trunc> {
using
type
=
Axm
; };
571
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::strunc> {
using
type
=
Axm
; };
572
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::zext> {
using
type
=
Axm
; };
573
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::sext> {
using
type
=
Axm
; };
574
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::cast_trunc> {
using
type
=
Axm
; };
575
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::cast_zext> {
using
type
=
Axm
; };
576
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::icmp> {
using
type
=
Axm
; };
577
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::select> {
using
type
=
Axm
; };
578
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::select8> {
using
type
=
Axm
; };
579
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::float_> {
using
type
=
Axm
; };
580
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::load> {
using
type
=
Axm
; };
581
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::store> {
using
type
=
Axm
; };
582
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::sext_rm> {
using
type
=
Axm
; };
583
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::rm> {
using
type
=
Axm
; };
584
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::mr> {
using
type
=
Axm
; };
585
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::scale> {
using
type
=
Axm
; };
586
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::base> {
using
type
=
Axm
; };
587
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::abs> {
using
type
=
Axm
; };
588
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::mov> {
using
type
=
Axm
; };
589
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::movz> {
using
type
=
Axm
; };
590
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::fmov> {
using
type
=
Axm
; };
591
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::lea> {
using
type
=
Axm
; };
592
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::scale1> {
using
type
=
Axm
; };
593
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::unscale> {
using
type
=
Axm
; };
594
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::zero> {
using
type
=
Axm
; };
595
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::unzx> {
using
type
=
Axm
; };
596
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::formats> {
using
type
=
Axm
; };
597
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::sizes> {
using
type
=
Axm
; };
598
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::arithmetic> {
using
type
=
Axm
; };
599
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::index_disp> {
using
type
=
Axm
; };
600
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::base_index> {
using
type
=
Axm
; };
601
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::disp> {
using
type
=
Axm
; };
602
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::index> {
using
type
=
Axm
; };
603
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::compares> {
using
type
=
Axm
; };
604
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::division> {
using
type
=
Axm
; };
605
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::nonterminals> {
using
type
=
Axm
; };
606
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::addresses> {
using
type
=
Axm
; };
607
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::mem_ops> {
using
type
=
Axm
; };
608
template
<>
struct
Axm::IsANode
<
plug
::x86_isel::gen> {
using
type
=
Axm
; };
609
610
#endif
611
}
// namespace mim
612
613
#ifndef DOXYGEN
// don't include in Doxygen documentation
614
615
template
<>
struct
fe::is_bit_enum<
mim
::plug::x86_isel::float_> : std::true_type {};
616
617
#endif
axm.h
mim::Axm::IsANode::type
App type
Definition
axm.h:70
mim::Axm::IsANode
Definition
axm.h:69
mim::Def
Base class for all Defs.
Definition
def.h:285
mim::plug::x86_isel
The x86_isel Plugin
Definition
gen.h:5
mim::plug::x86_isel::index_disp
index_disp
Definition
autogen.h:365
mim::plug::x86_isel::div
div
Definition
autogen.h:92
mim::plug::x86_isel::addr
addr
Definition
autogen.h:22
mim::plug::x86_isel::rem8
rem8
Definition
autogen.h:113
mim::plug::x86_isel::gen
gen
Definition
autogen.h:428
mim::plug::x86_isel::fmov
fmov
Definition
autogen.h:302
mim::plug::x86_isel::rm
rm
Definition
autogen.h:253
mim::plug::x86_isel::compares
compares
Definition
autogen.h:393
mim::plug::x86_isel::disp
disp
Definition
autogen.h:379
mim::plug::x86_isel::lea
lea
Definition
autogen.h:309
mim::plug::x86_isel::index
index
Definition
autogen.h:386
mim::plug::x86_isel::division
division
Definition
autogen.h:400
mim::plug::x86_isel::strunc
strunc
Definition
autogen.h:148
mim::plug::x86_isel::sdiv8
sdiv8
Definition
autogen.h:106
mim::plug::x86_isel::rem16
rem16
Definition
autogen.h:120
mim::plug::x86_isel::Plugin_Id
static constexpr plugin_t Plugin_Id
Definition
autogen.h:10
mim::plug::x86_isel::scaled
scaled
Definition
autogen.h:43
mim::plug::x86_isel::rem32
rem32
Definition
autogen.h:127
mim::plug::x86_isel::base_index
base_index
Definition
autogen.h:372
mim::plug::x86_isel::formats
formats
Definition
autogen.h:344
mim::plug::x86_isel::select
select
Definition
autogen.h:190
mim::plug::x86_isel::icmp
icmp
Definition
autogen.h:183
mim::plug::x86_isel::imm
imm
Definition
autogen.h:14
mim::plug::x86_isel::neg
neg
Definition
autogen.h:78
mim::plug::x86_isel::udiv8
udiv8
Definition
autogen.h:99
mim::plug::x86_isel::nonterminals
nonterminals
Definition
autogen.h:407
mim::plug::x86_isel::abs
abs
Definition
autogen.h:281
mim::plug::x86_isel::sext_rm
sext_rm
Definition
autogen.h:246
mim::plug::x86_isel::zext
zext
Definition
autogen.h:155
mim::plug::x86_isel::reg_sh
reg_sh
Definition
autogen.h:36
mim::plug::x86_isel::addresses
addresses
Definition
autogen.h:414
mim::plug::x86_isel::reg_imm
reg_imm
Definition
autogen.h:29
mim::plug::x86_isel::unscale
unscale
Definition
autogen.h:323
mim::plug::x86_isel::commutes
commutes
Definition
autogen.h:57
mim::plug::x86_isel::store
store
Definition
autogen.h:239
mim::plug::x86_isel::scale1
scale1
Definition
autogen.h:316
mim::plug::x86_isel::normalize_imm
const Def * normalize_imm(const Def *type, const Def *, const Def *arg)
Definition
normalizers.cpp:9
mim::plug::x86_isel::movz
movz
Definition
autogen.h:295
mim::plug::x86_isel::mr
mr
Definition
autogen.h:260
mim::plug::x86_isel::zx
zx
Definition
autogen.h:50
mim::plug::x86_isel::rem64
rem64
Definition
autogen.h:134
mim::plug::x86_isel::mul8
mul8
Definition
autogen.h:85
mim::plug::x86_isel::sizes
sizes
Definition
autogen.h:351
mim::plug::x86_isel::alu
alu
Definition
autogen.h:64
mim::plug::x86_isel::zero
zero
Definition
autogen.h:330
mim::plug::x86_isel::sext
sext
Definition
autogen.h:162
mim::plug::x86_isel::trunc
trunc
Definition
autogen.h:141
mim::plug::x86_isel::load
load
Definition
autogen.h:232
mim::plug::x86_isel::cast_zext
cast_zext
Definition
autogen.h:176
mim::plug::x86_isel::shift
shift
Definition
autogen.h:71
mim::plug::x86_isel::scale
scale
Definition
autogen.h:267
mim::plug::x86_isel::unzx
unzx
Definition
autogen.h:337
mim::plug::x86_isel::base
base
Definition
autogen.h:274
mim::plug::x86_isel::mem_ops
mem_ops
Definition
autogen.h:421
mim::plug::x86_isel::register_normalizers
void register_normalizers(Normalizers &normalizers)
mim::plug::x86_isel::cast_trunc
cast_trunc
Definition
autogen.h:169
mim::plug::x86_isel::arithmetic
arithmetic
Definition
autogen.h:358
mim::plug::x86_isel::select8
select8
Definition
autogen.h:197
mim::plug::x86_isel::mov
mov
Definition
autogen.h:288
mim::plug::x86_isel::float_
float_
Definition
autogen.h:204
mim::plug::x86_isel::float_::f2u_rm
@ f2u_rm
Definition
autogen.h:223
mim::plug::x86_isel::float_::swap_rm
@ swap_rm
Definition
autogen.h:211
mim::plug::x86_isel::float_::sqrt_rm
@ sqrt_rm
Definition
autogen.h:206
mim::plug::x86_isel::float_::cmp_rm
@ cmp_rm
Definition
autogen.h:210
mim::plug::x86_isel::float_::s2f_rm
@ s2f_rm
Definition
autogen.h:221
mim::plug::x86_isel::float_::f2f_rm
@ f2f_rm
Definition
autogen.h:224
mim::plug::x86_isel::float_::f2s_rm
@ f2s_rm
Definition
autogen.h:222
mim::plug::x86_isel::float_::swap
@ swap
Definition
autogen.h:209
mim::plug
Definition
affine.h:10
mim
Definition
ast.h:16
mim::flags_t
u64 flags_t
Definition
types.h:39
mim::Normalizers
ankerl::unordered_dense::map< flags_t, NormalizeFn > Normalizers
Definition
plugin.h:28
mim::plugin_t
u64 plugin_t
Definition
types.h:40
mim::Node::Axm
@ Axm
Definition
def.h:123
plugin.h
mim::Annex::Num
static constexpr size_t Num
Number of Axm::subtags.
Definition
plugin.h:275
mim::Annex::Base
static constexpr flags_t Base
Definition
plugin.h:276
build-docs
include
mim
plug
x86_isel
autogen.h
Generated by
1.18.0