llvm.org GIT mirror llvm / 0e37006
[MVT][SVE] Scalable vector MVTs (2/3) Adds scalable vector machine value types, and updates the switch statements required for tablegen. Patch by Graham Hunter. Differential Revision: https://reviews.llvm.org/D32018 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300840 91177308-0d34-0410-b5e6-96231b3b80d8 Amara Emerson 3 years ago
6 changed file(s) with 468 addition(s) and 205 deletion(s). Raw diff Collapse all Expand all
2727 /// type can be represented by an MVT.
2828 class MVT {
2929 public:
30 enum SimpleValueType : int8_t {
31 // Simple value types less than zero are considered extended value types.
32 INVALID_SIMPLE_VALUE_TYPE = -1,
30 enum SimpleValueType : uint8_t {
31 // Simple value types that aren't explicitly part of this enumeration
32 // are considered extended value types.
33 INVALID_SIMPLE_VALUE_TYPE = 0,
3334
3435 // If you change this numbering, you must change the values in
3536 // ValueTypes.td as well!
36 Other = 0, // This is a non-standard value
37 i1 = 1, // This is a 1 bit integer value
38 i8 = 2, // This is an 8 bit integer value
39 i16 = 3, // This is a 16 bit integer value
40 i32 = 4, // This is a 32 bit integer value
41 i64 = 5, // This is a 64 bit integer value
42 i128 = 6, // This is a 128 bit integer value
37 Other = 1, // This is a non-standard value
38 i1 = 2, // This is a 1 bit integer value
39 i8 = 3, // This is an 8 bit integer value
40 i16 = 4, // This is a 16 bit integer value
41 i32 = 5, // This is a 32 bit integer value
42 i64 = 6, // This is a 64 bit integer value
43 i128 = 7, // This is a 128 bit integer value
4344
4445 FIRST_INTEGER_VALUETYPE = i1,
4546 LAST_INTEGER_VALUETYPE = i128,
4647
47 f16 = 7, // This is a 16 bit floating point value
48 f32 = 8, // This is a 32 bit floating point value
49 f64 = 9, // This is a 64 bit floating point value
50 f80 = 10, // This is a 80 bit floating point value
51 f128 = 11, // This is a 128 bit floating point value
52 ppcf128 = 12, // This is a PPC 128-bit floating point value
48 f16 = 8, // This is a 16 bit floating point value
49 f32 = 9, // This is a 32 bit floating point value
50 f64 = 10, // This is a 64 bit floating point value
51 f80 = 11, // This is a 80 bit floating point value
52 f128 = 12, // This is a 128 bit floating point value
53 ppcf128 = 13, // This is a PPC 128-bit floating point value
5354
5455 FIRST_FP_VALUETYPE = f16,
5556 LAST_FP_VALUETYPE = ppcf128,
5657
57 v2i1 = 13, // 2 x i1
58 v4i1 = 14, // 4 x i1
59 v8i1 = 15, // 8 x i1
60 v16i1 = 16, // 16 x i1
61 v32i1 = 17, // 32 x i1
62 v64i1 = 18, // 64 x i1
63 v512i1 = 19, // 512 x i1
64 v1024i1 = 20, // 1024 x i1
65
66 v1i8 = 21, // 1 x i8
67 v2i8 = 22, // 2 x i8
68 v4i8 = 23, // 4 x i8
69 v8i8 = 24, // 8 x i8
70 v16i8 = 25, // 16 x i8
71 v32i8 = 26, // 32 x i8
72 v64i8 = 27, // 64 x i8
73 v128i8 = 28, //128 x i8
74 v256i8 = 29, //256 x i8
75
76 v1i16 = 30, // 1 x i16
77 v2i16 = 31, // 2 x i16
78 v4i16 = 32, // 4 x i16
79 v8i16 = 33, // 8 x i16
80 v16i16 = 34, // 16 x i16
81 v32i16 = 35, // 32 x i16
82 v64i16 = 36, // 64 x i16
83 v128i16 = 37, //128 x i16
84
85 v1i32 = 38, // 1 x i32
86 v2i32 = 39, // 2 x i32
87 v4i32 = 40, // 4 x i32
88 v8i32 = 41, // 8 x i32
89 v16i32 = 42, // 16 x i32
90 v32i32 = 43, // 32 x i32
91 v64i32 = 44, // 64 x i32
92
93 v1i64 = 45, // 1 x i64
94 v2i64 = 46, // 2 x i64
95 v4i64 = 47, // 4 x i64
96 v8i64 = 48, // 8 x i64
97 v16i64 = 49, // 16 x i64
98 v32i64 = 50, // 32 x i64
99
100 v1i128 = 51, // 1 x i128
58 v2i1 = 14, // 2 x i1
59 v4i1 = 15, // 4 x i1
60 v8i1 = 16, // 8 x i1
61 v16i1 = 17, // 16 x i1
62 v32i1 = 18, // 32 x i1
63 v64i1 = 19, // 64 x i1
64 v512i1 = 20, // 512 x i1
65 v1024i1 = 21, // 1024 x i1
66
67 v1i8 = 22, // 1 x i8
68 v2i8 = 23, // 2 x i8
69 v4i8 = 24, // 4 x i8
70 v8i8 = 25, // 8 x i8
71 v16i8 = 26, // 16 x i8
72 v32i8 = 27, // 32 x i8
73 v64i8 = 28, // 64 x i8
74 v128i8 = 29, //128 x i8
75 v256i8 = 30, //256 x i8
76
77 v1i16 = 31, // 1 x i16
78 v2i16 = 32, // 2 x i16
79 v4i16 = 33, // 4 x i16
80 v8i16 = 34, // 8 x i16
81 v16i16 = 35, // 16 x i16
82 v32i16 = 36, // 32 x i16
83 v64i16 = 37, // 64 x i16
84 v128i16 = 38, //128 x i16
85
86 v1i32 = 39, // 1 x i32
87 v2i32 = 40, // 2 x i32
88 v4i32 = 41, // 4 x i32
89 v8i32 = 42, // 8 x i32
90 v16i32 = 43, // 16 x i32
91 v32i32 = 44, // 32 x i32
92 v64i32 = 45, // 64 x i32
93
94 v1i64 = 46, // 1 x i64
95 v2i64 = 47, // 2 x i64
96 v4i64 = 48, // 4 x i64
97 v8i64 = 49, // 8 x i64
98 v16i64 = 50, // 16 x i64
99 v32i64 = 51, // 32 x i64
100
101 v1i128 = 52, // 1 x i128
102
103 // Scalable integer types
104 nxv2i1 = 53, // n x 2 x i1
105 nxv4i1 = 54, // n x 4 x i1
106 nxv8i1 = 55, // n x 8 x i1
107 nxv16i1 = 56, // n x 16 x i1
108 nxv32i1 = 57, // n x 32 x i1
109
110 nxv1i8 = 58, // n x 1 x i8
111 nxv2i8 = 59, // n x 2 x i8
112 nxv4i8 = 60, // n x 4 x i8
113 nxv8i8 = 61, // n x 8 x i8
114 nxv16i8 = 62, // n x 16 x i8
115 nxv32i8 = 63, // n x 32 x i8
116
117 nxv1i16 = 64, // n x 1 x i16
118 nxv2i16 = 65, // n x 2 x i16
119 nxv4i16 = 66, // n x 4 x i16
120 nxv8i16 = 67, // n x 8 x i16
121 nxv16i16 = 68, // n x 16 x i16
122 nxv32i16 = 69, // n x 32 x i16
123
124 nxv1i32 = 70, // n x 1 x i32
125 nxv2i32 = 71, // n x 2 x i32
126 nxv4i32 = 72, // n x 4 x i32
127 nxv8i32 = 73, // n x 8 x i32
128 nxv16i32 = 74, // n x 16 x i32
129 nxv32i32 = 75, // n x 32 x i32
130
131 nxv1i64 = 76, // n x 1 x i64
132 nxv2i64 = 77, // n x 2 x i64
133 nxv4i64 = 78, // n x 4 x i64
134 nxv8i64 = 79, // n x 8 x i64
135 nxv16i64 = 80, // n x 16 x i64
136 nxv32i64 = 81, // n x 32 x i64
101137
102138 FIRST_INTEGER_VECTOR_VALUETYPE = v2i1,
103 LAST_INTEGER_VECTOR_VALUETYPE = v1i128,
104
105 v2f16 = 52, // 2 x f16
106 v4f16 = 53, // 4 x f16
107 v8f16 = 54, // 8 x f16
108 v1f32 = 55, // 1 x f32
109 v2f32 = 56, // 2 x f32
110 v4f32 = 57, // 4 x f32
111 v8f32 = 58, // 8 x f32
112 v16f32 = 59, // 16 x f32
113 v1f64 = 60, // 1 x f64
114 v2f64 = 61, // 2 x f64
115 v4f64 = 62, // 4 x f64
116 v8f64 = 63, // 8 x f64
139 LAST_INTEGER_VECTOR_VALUETYPE = nxv32i64,
140
141 FIRST_INTEGER_SCALABLE_VALUETYPE = nxv2i1,
142 LAST_INTEGER_SCALABLE_VALUETYPE = nxv32i64,
143
144 v2f16 = 82, // 2 x f16
145 v4f16 = 83, // 4 x f16
146 v8f16 = 84, // 8 x f16
147 v1f32 = 85, // 1 x f32
148 v2f32 = 86, // 2 x f32
149 v4f32 = 87, // 4 x f32
150 v8f32 = 88, // 8 x f32
151 v16f32 = 89, // 16 x f32
152 v1f64 = 90, // 1 x f64
153 v2f64 = 91, // 2 x f64
154 v4f64 = 92, // 4 x f64
155 v8f64 = 93, // 8 x f64
156
157 nxv2f16 = 94, // n x 2 x f16
158 nxv4f16 = 95, // n x 4 x f16
159 nxv8f16 = 96, // n x 8 x f16
160 nxv1f32 = 97, // n x 1 x f32
161 nxv2f32 = 98, // n x 2 x f32
162 nxv4f32 = 99, // n x 4 x f32
163 nxv8f32 = 100, // n x 8 x f32
164 nxv16f32 = 101, // n x 16 x f32
165 nxv1f64 = 102, // n x 1 x f64
166 nxv2f64 = 103, // n x 2 x f64
167 nxv4f64 = 104, // n x 4 x f64
168 nxv8f64 = 105, // n x 8 x f64
117169
118170 FIRST_FP_VECTOR_VALUETYPE = v2f16,
119 LAST_FP_VECTOR_VALUETYPE = v8f64,
171 LAST_FP_VECTOR_VALUETYPE = nxv8f64,
172
173 FIRST_FP_SCALABLE_VALUETYPE = nxv2f16,
174 LAST_FP_SCALABLE_VALUETYPE = nxv8f64,
120175
121176 FIRST_VECTOR_VALUETYPE = v2i1,
122 LAST_VECTOR_VALUETYPE = v8f64,
123
124 x86mmx = 64, // This is an X86 MMX value
125
126 Glue = 65, // This glues nodes together during pre-RA sched
127
128 isVoid = 66, // This has no value
129
130 Untyped = 67, // This value takes a register, but has
131 // unspecified type. The register class
132 // will be determined by the opcode.
133
134 FIRST_VALUETYPE = 0, // This is always the beginning of the list.
135 LAST_VALUETYPE = 68, // This always remains at the end of the list.
177 LAST_VECTOR_VALUETYPE = nxv8f64,
178
179 x86mmx = 106, // This is an X86 MMX value
180
181 Glue = 107, // This glues nodes together during pre-RA sched
182
183 isVoid = 108, // This has no value
184
185 Untyped = 109, // This value takes a register, but has
186 // unspecified type. The register class
187 // will be determined by the opcode.
188
189 FIRST_VALUETYPE = 1, // This is always the beginning of the list.
190 LAST_VALUETYPE = 110, // This always remains at the end of the list.
136191
137192 // This is the current maximum for LAST_VALUETYPE.
138193 // MVT::MAX_ALLOWED_VALUETYPE is used for asserts and to size bit vectors
139194 // This value must be a multiple of 32.
140 MAX_ALLOWED_VALUETYPE = 96,
195 MAX_ALLOWED_VALUETYPE = 128,
141196
142197 // A value of type llvm::TokenTy
143 token = 120,
198 token = 248,
144199
145200 // This is MDNode or MDString.
146 Metadata = 121,
201 Metadata = 249,
147202
148203 // An int value the size of the pointer of the current
149204 // target to any address space. This must only be used internal to
150205 // tblgen. Other than for overloading, we treat iPTRAny the same as iPTR.
151 iPTRAny = 122,
206 iPTRAny = 250,
152207
153208 // A vector with any length and element size. This is used
154209 // for intrinsics that have overloadings based on vector types.
155210 // This is only for tblgen's consumption!
156 vAny = 123,
211 vAny = 251,
157212
158213 // Any floating-point or vector floating-point value. This is used
159214 // for intrinsics that have overloadings based on floating-point types.
160215 // This is only for tblgen's consumption!
161 fAny = 124,
216 fAny = 252,
162217
163218 // An integer or vector integer value of any bit width. This is
164219 // used for intrinsics that have overloadings based on integer bit widths.
165220 // This is only for tblgen's consumption!
166 iAny = 125,
221 iAny = 253,
167222
168223 // An int value the size of the pointer of the current
169224 // target. This should only be used internal to tblgen!
170 iPTR = 126,
225 iPTR = 254,
171226
172227 // Any type. This is used for intrinsics that have overloadings.
173228 // This is only for tblgen's consumption!
174 Any = 127
229 Any = 255
175230 };
176231
177232 SimpleValueType SimpleTy;
317372 case v32i1:
318373 case v64i1:
319374 case v512i1:
320 case v1024i1: return i1;
375 case v1024i1:
376 case nxv2i1:
377 case nxv4i1:
378 case nxv8i1:
379 case nxv16i1:
380 case nxv32i1: return i1;
321381 case v1i8:
322382 case v2i8:
323383 case v4i8:
326386 case v32i8:
327387 case v64i8:
328388 case v128i8:
329 case v256i8: return i8;
389 case v256i8:
390 case nxv1i8:
391 case nxv2i8:
392 case nxv4i8:
393 case nxv8i8:
394 case nxv16i8:
395 case nxv32i8: return i8;
330396 case v1i16:
331397 case v2i16:
332398 case v4i16:
334400 case v16i16:
335401 case v32i16:
336402 case v64i16:
337 case v128i16: return i16;
403 case v128i16:
404 case nxv1i16:
405 case nxv2i16:
406 case nxv4i16:
407 case nxv8i16:
408 case nxv16i16:
409 case nxv32i16: return i16;
338410 case v1i32:
339411 case v2i32:
340412 case v4i32:
341413 case v8i32:
342414 case v16i32:
343415 case v32i32:
344 case v64i32: return i32;
416 case v64i32:
417 case nxv1i32:
418 case nxv2i32:
419 case nxv4i32:
420 case nxv8i32:
421 case nxv16i32:
422 case nxv32i32: return i32;
345423 case v1i64:
346424 case v2i64:
347425 case v4i64:
348426 case v8i64:
349427 case v16i64:
350 case v32i64: return i64;
428 case v32i64:
429 case nxv1i64:
430 case nxv2i64:
431 case nxv4i64:
432 case nxv8i64:
433 case nxv16i64:
434 case nxv32i64: return i64;
351435 case v1i128: return i128;
352436 case v2f16:
353437 case v4f16:
354 case v8f16: return f16;
438 case v8f16:
439 case nxv2f16:
440 case nxv4f16:
441 case nxv8f16: return f16;
355442 case v1f32:
356443 case v2f32:
357444 case v4f32:
358445 case v8f32:
359 case v16f32: return f32;
446 case v16f32:
447 case nxv1f32:
448 case nxv2f32:
449 case nxv4f32:
450 case nxv8f32:
451 case nxv16f32: return f32;
360452 case v1f64:
361453 case v2f64:
362454 case v4f64:
363 case v8f64: return f64;
455 case v8f64:
456 case nxv1f64:
457 case nxv2f64:
458 case nxv4f64:
459 case nxv8f64: return f64;
364460 }
365461 }
366462
381477 case v32i8:
382478 case v32i16:
383479 case v32i32:
384 case v32i64: return 32;
480 case v32i64:
481 case nxv32i1:
482 case nxv32i8:
483 case nxv32i16:
484 case nxv32i32:
485 case nxv32i64: return 32;
385486 case v16i1:
386487 case v16i8:
387488 case v16i16:
388489 case v16i32:
389490 case v16i64:
390 case v16f32: return 16;
491 case v16f32:
492 case nxv16i1:
493 case nxv16i8:
494 case nxv16i16:
495 case nxv16i32:
496 case nxv16i64:
497 case nxv16f32: return 16;
391498 case v8i1:
392499 case v8i8:
393500 case v8i16:
395502 case v8i64:
396503 case v8f16:
397504 case v8f32:
398 case v8f64: return 8;
505 case v8f64:
506 case nxv8i1:
507 case nxv8i8:
508 case nxv8i16:
509 case nxv8i32:
510 case nxv8i64:
511 case nxv8f16:
512 case nxv8f32:
513 case nxv8f64: return 8;
399514 case v4i1:
400515 case v4i8:
401516 case v4i16:
403518 case v4i64:
404519 case v4f16:
405520 case v4f32:
406 case v4f64: return 4;
521 case v4f64:
522 case nxv4i1:
523 case nxv4i8:
524 case nxv4i16:
525 case nxv4i32:
526 case nxv4i64:
527 case nxv4f16:
528 case nxv4f32:
529 case nxv4f64: return 4;
407530 case v2i1:
408531 case v2i8:
409532 case v2i16:
411534 case v2i64:
412535 case v2f16:
413536 case v2f32:
414 case v2f64: return 2;
537 case v2f64:
538 case nxv2i1:
539 case nxv2i8:
540 case nxv2i16:
541 case nxv2i32:
542 case nxv2i64:
543 case nxv2f16:
544 case nxv2f32:
545 case nxv2f64: return 2;
415546 case v1i8:
416547 case v1i16:
417548 case v1i32:
418549 case v1i64:
419550 case v1i128:
420551 case v1f32:
421 case v1f64: return 1;
552 case v1f64:
553 case nxv1i8:
554 case nxv1i16:
555 case nxv1i32:
556 case nxv1i64:
557 case nxv1f32:
558 case nxv1f64: return 1;
422559 }
423560 }
424561
442579 case Metadata:
443580 llvm_unreachable("Value type is metadata.");
444581 case i1 : return 1;
445 case v2i1: return 2;
446 case v4i1: return 4;
582 case v2i1:
583 case nxv2i1: return 2;
584 case v4i1:
585 case nxv4i1: return 4;
447586 case i8 :
448587 case v1i8:
449 case v8i1: return 8;
588 case v8i1:
589 case nxv1i8:
590 case nxv8i1: return 8;
450591 case i16 :
451592 case f16:
452593 case v16i1:
453594 case v2i8:
454 case v1i16: return 16;
595 case v1i16:
596 case nxv16i1:
597 case nxv2i8:
598 case nxv1i16: return 16;
455599 case f32 :
456600 case i32 :
457601 case v32i1:
459603 case v2i16:
460604 case v2f16:
461605 case v1f32:
462 case v1i32: return 32;
606 case v1i32:
607 case nxv32i1:
608 case nxv4i8:
609 case nxv2i16:
610 case nxv1i32:
611 case nxv2f16:
612 case nxv1f32: return 32;
463613 case x86mmx:
464614 case f64 :
465615 case i64 :
470620 case v1i64:
471621 case v4f16:
472622 case v2f32:
473 case v1f64: return 64;
623 case v1f64:
624 case nxv8i8:
625 case nxv4i16:
626 case nxv2i32:
627 case nxv1i64:
628 case nxv4f16:
629 case nxv2f32:
630 case nxv1f64: return 64;
474631 case f80 : return 80;
475632 case f128:
476633 case ppcf128:
482639 case v1i128:
483640 case v8f16:
484641 case v4f32:
485 case v2f64: return 128;
642 case v2f64:
643 case nxv16i8:
644 case nxv8i16:
645 case nxv4i32:
646 case nxv2i64:
647 case nxv8f16:
648 case nxv4f32:
649 case nxv2f64: return 128;
486650 case v32i8:
487651 case v16i16:
488652 case v8i32:
489653 case v4i64:
490654 case v8f32:
491 case v4f64: return 256;
655 case v4f64:
656 case nxv32i8:
657 case nxv16i16:
658 case nxv8i32:
659 case nxv4i64:
660 case nxv8f32:
661 case nxv4f64: return 256;
492662 case v512i1:
493663 case v64i8:
494664 case v32i16:
495665 case v16i32:
496666 case v8i64:
497667 case v16f32:
498 case v8f64: return 512;
668 case v8f64:
669 case nxv32i16:
670 case nxv16i32:
671 case nxv8i64:
672 case nxv16f32:
673 case nxv8f64: return 512;
499674 case v1024i1:
500675 case v128i8:
501676 case v64i16:
502677 case v32i32:
503 case v16i64: return 1024;
678 case v16i64:
679 case nxv32i32:
680 case nxv16i64: return 1024;
504681 case v256i8:
505682 case v128i16:
506683 case v64i32:
507 case v32i64: return 2048;
684 case v32i64:
685 case nxv32i64: return 2048;
508686 }
509687 }
510688
4343 bool operator!=(EVT VT) const {
4444 if (V.SimpleTy != VT.V.SimpleTy)
4545 return true;
46 if (V.SimpleTy < 0)
46 if (V.SimpleTy == MVT::INVALID_SIMPLE_VALUE_TYPE)
4747 return LLVMTy != VT.LLVMTy;
4848 return false;
4949 }
5959 /// bits.
6060 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) {
6161 MVT M = MVT::getIntegerVT(BitWidth);
62 if (M.SimpleTy >= 0)
62 if (M.SimpleTy != MVT::INVALID_SIMPLE_VALUE_TYPE)
6363 return M;
6464 return getExtendedIntegerVT(Context, BitWidth);
6565 }
6868 /// each element is of type VT.
6969 static EVT getVectorVT(LLVMContext &Context, EVT VT, unsigned NumElements) {
7070 MVT M = MVT::getVectorVT(VT.V, NumElements);
71 if (M.SimpleTy >= 0)
71 if (M.SimpleTy != MVT::INVALID_SIMPLE_VALUE_TYPE)
7272 return M;
7373 return getExtendedVectorVT(Context, VT, NumElements);
7474 }
103103
104104 /// Test if the given EVT is simple (as opposed to being extended).
105105 bool isSimple() const {
106 return V.SimpleTy >= 0;
106 return V.SimpleTy != MVT::INVALID_SIMPLE_VALUE_TYPE;
107107 }
108108
109109 /// Test if the given EVT is extended (as opposed to being simple).
1818 int Value = value;
1919 }
2020
21 def OtherVT: ValueType<0 , 0>; // "Other" value
22 def i1 : ValueType<1 , 1>; // One bit boolean value
23 def i8 : ValueType<8 , 2>; // 8-bit integer value
24 def i16 : ValueType<16 , 3>; // 16-bit integer value
25 def i32 : ValueType<32 , 4>; // 32-bit integer value
26 def i64 : ValueType<64 , 5>; // 64-bit integer value
27 def i128 : ValueType<128, 6>; // 128-bit integer value
28 def f16 : ValueType<16 , 7>; // 16-bit floating point value
29 def f32 : ValueType<32 , 8>; // 32-bit floating point value
30 def f64 : ValueType<64 , 9>; // 64-bit floating point value
31 def f80 : ValueType<80 , 10>; // 80-bit floating point value
32 def f128 : ValueType<128, 11>; // 128-bit floating point value
33 def ppcf128: ValueType<128, 12>; // PPC 128-bit floating point value
21 def OtherVT: ValueType<0 , 1>; // "Other" value
22 def i1 : ValueType<1 , 2>; // One bit boolean value
23 def i8 : ValueType<8 , 3>; // 8-bit integer value
24 def i16 : ValueType<16 , 4>; // 16-bit integer value
25 def i32 : ValueType<32 , 5>; // 32-bit integer value
26 def i64 : ValueType<64 , 6>; // 64-bit integer value
27 def i128 : ValueType<128, 7>; // 128-bit integer value
28 def f16 : ValueType<16 , 8>; // 16-bit floating point value
29 def f32 : ValueType<32 , 9>; // 32-bit floating point value
30 def f64 : ValueType<64 , 10>; // 64-bit floating point value
31 def f80 : ValueType<80 , 11>; // 80-bit floating point value
32 def f128 : ValueType<128, 12>; // 128-bit floating point value
33 def ppcf128: ValueType<128, 13>; // PPC 128-bit floating point value
3434
35 def v2i1 : ValueType<2 , 13>; // 2 x i1 vector value
36 def v4i1 : ValueType<4 , 14>; // 4 x i1 vector value
37 def v8i1 : ValueType<8 , 15>; // 8 x i1 vector value
38 def v16i1 : ValueType<16, 16>; // 16 x i1 vector value
39 def v32i1 : ValueType<32 , 17>; // 32 x i1 vector value
40 def v64i1 : ValueType<64 , 18>; // 64 x i1 vector value
41 def v512i1 : ValueType<512, 19>; // 512 x i1 vector value
42 def v1024i1: ValueType<1024,20>; //1024 x i1 vector value
35 def v2i1 : ValueType<2 , 14>; // 2 x i1 vector value
36 def v4i1 : ValueType<4 , 15>; // 4 x i1 vector value
37 def v8i1 : ValueType<8 , 16>; // 8 x i1 vector value
38 def v16i1 : ValueType<16, 17>; // 16 x i1 vector value
39 def v32i1 : ValueType<32 , 18>; // 32 x i1 vector value
40 def v64i1 : ValueType<64 , 19>; // 64 x i1 vector value
41 def v512i1 : ValueType<512, 20>; // 512 x i1 vector value
42 def v1024i1: ValueType<1024,21>; //1024 x i1 vector value
4343
44 def v1i8 : ValueType<16, 21>; // 1 x i8 vector value
45 def v2i8 : ValueType<16 , 22>; // 2 x i8 vector value
46 def v4i8 : ValueType<32 , 23>; // 4 x i8 vector value
47 def v8i8 : ValueType<64 , 24>; // 8 x i8 vector value
48 def v16i8 : ValueType<128, 25>; // 16 x i8 vector value
49 def v32i8 : ValueType<256, 26>; // 32 x i8 vector value
50 def v64i8 : ValueType<512, 27>; // 64 x i8 vector value
51 def v128i8 : ValueType<1024,28>; //128 x i8 vector value
52 def v256i8 : ValueType<2048,29>; //256 x i8 vector value
44 def v1i8 : ValueType<16, 22>; // 1 x i8 vector value
45 def v2i8 : ValueType<16 , 23>; // 2 x i8 vector value
46 def v4i8 : ValueType<32 , 24>; // 4 x i8 vector value
47 def v8i8 : ValueType<64 , 25>; // 8 x i8 vector value
48 def v16i8 : ValueType<128, 26>; // 16 x i8 vector value
49 def v32i8 : ValueType<256, 27>; // 32 x i8 vector value
50 def v64i8 : ValueType<512, 28>; // 64 x i8 vector value
51 def v128i8 : ValueType<1024,29>; //128 x i8 vector value
52 def v256i8 : ValueType<2048,30>; //256 x i8 vector value
5353
54 def v1i16 : ValueType<16 , 30>; // 1 x i16 vector value
55 def v2i16 : ValueType<32 , 31>; // 2 x i16 vector value
56 def v4i16 : ValueType<64 , 32>; // 4 x i16 vector value
57 def v8i16 : ValueType<128, 33>; // 8 x i16 vector value
58 def v16i16 : ValueType<256, 34>; // 16 x i16 vector value
59 def v32i16 : ValueType<512, 35>; // 32 x i16 vector value
60 def v64i16 : ValueType<1024,36>; // 64 x i16 vector value
61 def v128i16: ValueType<2048,37>; //128 x i16 vector value
54 def v1i16 : ValueType<16 , 31>; // 1 x i16 vector value
55 def v2i16 : ValueType<32 , 32>; // 2 x i16 vector value
56 def v4i16 : ValueType<64 , 33>; // 4 x i16 vector value
57 def v8i16 : ValueType<128, 34>; // 8 x i16 vector value
58 def v16i16 : ValueType<256, 35>; // 16 x i16 vector value
59 def v32i16 : ValueType<512, 36>; // 32 x i16 vector value
60 def v64i16 : ValueType<1024,37>; // 64 x i16 vector value
61 def v128i16: ValueType<2048,38>; //128 x i16 vector value
6262
63 def v1i32 : ValueType<32 , 38>; // 1 x i32 vector value
64 def v2i32 : ValueType<64 , 39>; // 2 x i32 vector value
65 def v4i32 : ValueType<128, 40>; // 4 x i32 vector value
66 def v8i32 : ValueType<256, 41>; // 8 x i32 vector value
67 def v16i32 : ValueType<512, 42>; // 16 x i32 vector value
68 def v32i32 : ValueType<1024,43>; // 32 x i32 vector value
69 def v64i32 : ValueType<2048,44>; // 32 x i32 vector value
63 def v1i32 : ValueType<32 , 39>; // 1 x i32 vector value
64 def v2i32 : ValueType<64 , 40>; // 2 x i32 vector value
65 def v4i32 : ValueType<128, 41>; // 4 x i32 vector value
66 def v8i32 : ValueType<256, 42>; // 8 x i32 vector value
67 def v16i32 : ValueType<512, 43>; // 16 x i32 vector value
68 def v32i32 : ValueType<1024,44>; // 32 x i32 vector value
69 def v64i32 : ValueType<2048,45>; // 32 x i32 vector value
7070
71 def v1i64 : ValueType<64 , 45>; // 1 x i64 vector value
72 def v2i64 : ValueType<128, 46>; // 2 x i64 vector value
73 def v4i64 : ValueType<256, 47>; // 4 x i64 vector value
74 def v8i64 : ValueType<512, 48>; // 8 x i64 vector value
75 def v16i64 : ValueType<1024,49>; // 16 x i64 vector value
76 def v32i64 : ValueType<2048,50>; // 32 x i64 vector value
71 def v1i64 : ValueType<64 , 46>; // 1 x i64 vector value
72 def v2i64 : ValueType<128, 47>; // 2 x i64 vector value
73 def v4i64 : ValueType<256, 48>; // 4 x i64 vector value
74 def v8i64 : ValueType<512, 49>; // 8 x i64 vector value
75 def v16i64 : ValueType<1024,50>; // 16 x i64 vector value
76 def v32i64 : ValueType<2048,51>; // 32 x i64 vector value
7777
78 def v1i128 : ValueType<128, 51>; // 1 x i128 vector value
78 def v1i128 : ValueType<128, 52>; // 1 x i128 vector value
7979
80 def v2f16 : ValueType<32 , 52>; // 2 x f16 vector value
81 def v4f16 : ValueType<64 , 53>; // 4 x f16 vector value
82 def v8f16 : ValueType<128, 54>; // 8 x f16 vector value
83 def v1f32 : ValueType<32 , 55>; // 1 x f32 vector value
84 def v2f32 : ValueType<64 , 56>; // 2 x f32 vector value
85 def v4f32 : ValueType<128, 57>; // 4 x f32 vector value
86 def v8f32 : ValueType<256, 58>; // 8 x f32 vector value
87 def v16f32 : ValueType<512, 59>; // 16 x f32 vector value
88 def v1f64 : ValueType<64, 60>; // 1 x f64 vector value
89 def v2f64 : ValueType<128, 61>; // 2 x f64 vector value
90 def v4f64 : ValueType<256, 62>; // 4 x f64 vector value
91 def v8f64 : ValueType<512, 63>; // 8 x f64 vector value
80 def nxv2i1 : ValueType<2, 53>; // n x 2 x i1 vector value
81 def nxv4i1 : ValueType<4, 54>; // n x 4 x i1 vector value
82 def nxv8i1 : ValueType<8, 55>; // n x 8 x i1 vector value
83 def nxv16i1 : ValueType<16, 56>; // n x 16 x i1 vector value
84 def nxv32i1 : ValueType<32, 57>; // n x 32 x i1 vector value
9285
86 def nxv1i8 : ValueType<8, 58>; // n x 1 x i8 vector value
87 def nxv2i8 : ValueType<16, 59>; // n x 2 x i8 vector value
88 def nxv4i8 : ValueType<32, 60>; // n x 4 x i8 vector value
89 def nxv8i8 : ValueType<64, 61>; // n x 8 x i8 vector value
90 def nxv16i8 : ValueType<128, 62>; // n x 16 x i8 vector value
91 def nxv32i8 : ValueType<256, 63>; // n x 32 x i8 vector value
9392
94 def x86mmx : ValueType<64 , 64>; // X86 MMX value
95 def FlagVT : ValueType<0 , 65>; // Pre-RA sched glue
96 def isVoid : ValueType<0 , 66>; // Produces no value
97 def untyped: ValueType<8 , 67>; // Produces an untyped value
98 def token : ValueType<0 , 120>; // TokenTy
99 def MetadataVT: ValueType<0, 121>; // Metadata
93 def nxv1i16 : ValueType<16, 64>; // n x 1 x i16 vector value
94 def nxv2i16 : ValueType<32, 65>; // n x 2 x i16 vector value
95 def nxv4i16 : ValueType<64, 66>; // n x 4 x i16 vector value
96 def nxv8i16 : ValueType<128, 67>; // n x 8 x i16 vector value
97 def nxv16i16: ValueType<256, 68>; // n x 16 x i16 vector value
98 def nxv32i16: ValueType<512, 69>; // n x 32 x i16 vector value
99
100 def nxv1i32 : ValueType<32, 70>; // n x 1 x i32 vector value
101 def nxv2i32 : ValueType<64, 71>; // n x 2 x i32 vector value
102 def nxv4i32 : ValueType<128, 72>; // n x 4 x i32 vector value
103 def nxv8i32 : ValueType<256, 73>; // n x 8 x i32 vector value
104 def nxv16i32: ValueType<512, 74>; // n x 16 x i32 vector value
105 def nxv32i32: ValueType<1024,75>; // n x 32 x i32 vector value
106
107 def nxv1i64 : ValueType<64, 76>; // n x 1 x i64 vector value
108 def nxv2i64 : ValueType<128, 77>; // n x 2 x i64 vector value
109 def nxv4i64 : ValueType<256, 78>; // n x 4 x i64 vector value
110 def nxv8i64 : ValueType<512, 79>; // n x 8 x i64 vector value
111 def nxv16i64: ValueType<1024,80>; // n x 16 x i64 vector value
112 def nxv32i64: ValueType<2048,81>; // n x 32 x i64 vector value
113
114 def v2f16 : ValueType<32 , 82>; // 2 x f16 vector value
115 def v4f16 : ValueType<64 , 83>; // 4 x f16 vector value
116 def v8f16 : ValueType<128, 84>; // 8 x f16 vector value
117 def v1f32 : ValueType<32 , 85>; // 1 x f32 vector value
118 def v2f32 : ValueType<64 , 86>; // 2 x f32 vector value
119 def v4f32 : ValueType<128, 87>; // 4 x f32 vector value
120 def v8f32 : ValueType<256, 88>; // 8 x f32 vector value
121 def v16f32 : ValueType<512, 89>; // 16 x f32 vector value
122 def v1f64 : ValueType<64, 90>; // 1 x f64 vector value
123 def v2f64 : ValueType<128, 91>; // 2 x f64 vector value
124 def v4f64 : ValueType<256, 92>; // 4 x f64 vector value
125 def v8f64 : ValueType<512, 93>; // 8 x f64 vector value
126
127 def nxv2f16 : ValueType<32 , 94>; // n x 2 x f16 vector value
128 def nxv4f16 : ValueType<64 , 95>; // n x 4 x f16 vector value
129 def nxv8f16 : ValueType<128, 96>; // n x 8 x f16 vector value
130 def nxv1f32 : ValueType<32 , 97>; // n x 1 x f32 vector value
131 def nxv2f32 : ValueType<64 , 98>; // n x 2 x f32 vector value
132 def nxv4f32 : ValueType<128, 99>; // n x 4 x f32 vector value
133 def nxv8f32 : ValueType<256, 100>; // n x 8 x f32 vector value
134 def nxv16f32 : ValueType<512, 101>; // n x 16 x f32 vector value
135 def nxv1f64 : ValueType<64, 102>; // n x 1 x f64 vector value
136 def nxv2f64 : ValueType<128, 103>; // n x 2 x f64 vector value
137 def nxv4f64 : ValueType<256, 104>; // n x 4 x f64 vector value
138 def nxv8f64 : ValueType<512, 105>; // n x 8 x f64 vector value
139
140 def x86mmx : ValueType<64 , 106>; // X86 MMX value
141 def FlagVT : ValueType<0 , 107>; // Pre-RA sched glue
142 def isVoid : ValueType<0 , 108>; // Produces no value
143 def untyped: ValueType<8 , 109>; // Produces an untyped value
144 def token : ValueType<0 , 248>; // TokenTy
145 def MetadataVT: ValueType<0, 249>; // Metadata
100146
101147 // Pseudo valuetype mapped to the current pointer size to any address space.
102148 // Should only be used in TableGen.
103 def iPTRAny : ValueType<0, 122>;
149 def iPTRAny : ValueType<0, 250>;
104150
105151 // Pseudo valuetype to represent "vector of any size"
106 def vAny : ValueType<0 , 123>;
152 def vAny : ValueType<0 , 251>;
107153
108154 // Pseudo valuetype to represent "float of any format"
109 def fAny : ValueType<0 , 124>;
155 def fAny : ValueType<0 , 252>;
110156
111157 // Pseudo valuetype to represent "integer of any bit width"
112 def iAny : ValueType<0 , 125>;
158 def iAny : ValueType<0 , 253>;
113159
114160 // Pseudo valuetype mapped to the current pointer size.
115 def iPTR : ValueType<0 , 126>;
161 def iPTR : ValueType<0 , 254>;
116162
117163 // Pseudo valuetype to represent "any type of any size".
118 def Any : ValueType<0 , 127>;
164 def Any : ValueType<0 , 255>;
2121 list IntrProperties = [];
2222 }
2323
24 def iAny : ValueType<0, 125>;
24 def iAny : ValueType<0, 253>;
2525 def llvm_anyint_ty : LLVMType;
2626
2727 // Make sure we generate the long name without crashing
2222 }
2323
2424 // isVoid needs to match the definition in ValueTypes.td
25 def isVoid : ValueType<0, 66>; // Produces no value
25 def isVoid : ValueType<0, 108>; // Produces no value
2626 def llvm_vararg_ty : LLVMType; // this means vararg here
2727
2828 // CHECK: /* 0 */ 0, 29, 0,
125125 case MVT::v2f64: return "MVT::v2f64";
126126 case MVT::v4f64: return "MVT::v4f64";
127127 case MVT::v8f64: return "MVT::v8f64";
128 case MVT::nxv2i1: return "MVT::nxv2i1";
129 case MVT::nxv4i1: return "MVT::nxv4i1";
130 case MVT::nxv8i1: return "MVT::nxv8i1";
131 case MVT::nxv16i1: return "MVT::nxv16i1";
132 case MVT::nxv32i1: return "MVT::nxv32i1";
133 case MVT::nxv1i8: return "MVT::nxv1i8";
134 case MVT::nxv2i8: return "MVT::nxv2i8";
135 case MVT::nxv4i8: return "MVT::nxv4i8";
136 case MVT::nxv8i8: return "MVT::nxv8i8";
137 case MVT::nxv16i8: return "MVT::nxv16i8";
138 case MVT::nxv32i8: return "MVT::nxv32i8";
139 case MVT::nxv1i16: return "MVT::nxv1i16";
140 case MVT::nxv2i16: return "MVT::nxv2i16";
141 case MVT::nxv4i16: return "MVT::nxv4i16";
142 case MVT::nxv8i16: return "MVT::nxv8i16";
143 case MVT::nxv16i16: return "MVT::nxv16i16";
144 case MVT::nxv32i16: return "MVT::nxv32i16";
145 case MVT::nxv1i32: return "MVT::nxv1i32";
146 case MVT::nxv2i32: return "MVT::nxv2i32";
147 case MVT::nxv4i32: return "MVT::nxv4i32";
148 case MVT::nxv8i32: return "MVT::nxv8i32";
149 case MVT::nxv16i32: return "MVT::nxv16i32";
150 case MVT::nxv1i64: return "MVT::nxv1i64";
151 case MVT::nxv2i64: return "MVT::nxv2i64";
152 case MVT::nxv4i64: return "MVT::nxv4i64";
153 case MVT::nxv8i64: return "MVT::nxv8i64";
154 case MVT::nxv16i64: return "MVT::nxv16i64";
155 case MVT::nxv2f16: return "MVT::nxv2f16";
156 case MVT::nxv4f16: return "MVT::nxv4f16";
157 case MVT::nxv8f16: return "MVT::nxv8f16";
158 case MVT::nxv1f32: return "MVT::nxv1f32";
159 case MVT::nxv2f32: return "MVT::nxv2f32";
160 case MVT::nxv4f32: return "MVT::nxv4f32";
161 case MVT::nxv8f32: return "MVT::nxv8f32";
162 case MVT::nxv16f32: return "MVT::nxv16f32";
163 case MVT::nxv1f64: return "MVT::nxv1f64";
164 case MVT::nxv2f64: return "MVT::nxv2f64";
165 case MVT::nxv4f64: return "MVT::nxv4f64";
166 case MVT::nxv8f64: return "MVT::nxv8f64";
128167 case MVT::token: return "MVT::token";
129168 case MVT::Metadata: return "MVT::Metadata";
130169 case MVT::iPTR: return "MVT::iPTR";