1 //===- ValueTypes.td - ValueType definitions ---------------*- tablegen -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // Value types - These values correspond to the register types defined in the
10 // MachineValueTypes.h file. If you update anything here, you must update it
13 //===----------------------------------------------------------------------===//
15 class ValueType<int size, int value> {
16 string Namespace = "MVT";
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
35 def v1i1 : ValueType<1 , 14>; // 1 x i1 vector value
36 def v2i1 : ValueType<2 , 15>; // 2 x i1 vector value
37 def v4i1 : ValueType<4 , 16>; // 4 x i1 vector value
38 def v8i1 : ValueType<8 , 17>; // 8 x i1 vector value
39 def v16i1 : ValueType<16, 18>; // 16 x i1 vector value
40 def v32i1 : ValueType<32 , 19>; // 32 x i1 vector value
41 def v64i1 : ValueType<64 , 20>; // 64 x i1 vector value
42 def v128i1 : ValueType<128, 21>; // 128 x i1 vector value
43 def v512i1 : ValueType<512, 22>; // 512 x i1 vector value
44 def v1024i1: ValueType<1024,23>; //1024 x i1 vector value
46 def v1i8 : ValueType<8, 24>; // 1 x i8 vector value
47 def v2i8 : ValueType<16 , 25>; // 2 x i8 vector value
48 def v4i8 : ValueType<32 , 26>; // 4 x i8 vector value
49 def v8i8 : ValueType<64 , 27>; // 8 x i8 vector value
50 def v16i8 : ValueType<128, 28>; // 16 x i8 vector value
51 def v32i8 : ValueType<256, 29>; // 32 x i8 vector value
52 def v64i8 : ValueType<512, 30>; // 64 x i8 vector value
53 def v128i8 : ValueType<1024,31>; //128 x i8 vector value
54 def v256i8 : ValueType<2048,32>; //256 x i8 vector value
56 def v1i16 : ValueType<16 , 33>; // 1 x i16 vector value
57 def v2i16 : ValueType<32 , 34>; // 2 x i16 vector value
58 def v4i16 : ValueType<64 , 35>; // 4 x i16 vector value
59 def v8i16 : ValueType<128, 36>; // 8 x i16 vector value
60 def v16i16 : ValueType<256, 37>; // 16 x i16 vector value
61 def v32i16 : ValueType<512, 38>; // 32 x i16 vector value
62 def v64i16 : ValueType<1024,39>; // 64 x i16 vector value
63 def v128i16: ValueType<2048,40>; //128 x i16 vector value
65 def v1i32 : ValueType<32 , 41>; // 1 x i32 vector value
66 def v2i32 : ValueType<64 , 42>; // 2 x i32 vector value
67 def v4i32 : ValueType<128, 43>; // 4 x i32 vector value
68 def v8i32 : ValueType<256, 44>; // 8 x i32 vector value
69 def v16i32 : ValueType<512, 45>; // 16 x i32 vector value
70 def v32i32 : ValueType<1024,46>; // 32 x i32 vector value
71 def v64i32 : ValueType<2048,47>; // 64 x i32 vector value
73 def v1i64 : ValueType<64 , 48>; // 1 x i64 vector value
74 def v2i64 : ValueType<128, 49>; // 2 x i64 vector value
75 def v4i64 : ValueType<256, 50>; // 4 x i64 vector value
76 def v8i64 : ValueType<512, 51>; // 8 x i64 vector value
77 def v16i64 : ValueType<1024,52>; // 16 x i64 vector value
78 def v32i64 : ValueType<2048,53>; // 32 x i64 vector value
80 def v1i128 : ValueType<128, 54>; // 1 x i128 vector value
82 def nxv1i1 : ValueType<1, 55>; // n x 1 x i1 vector value
83 def nxv2i1 : ValueType<2, 56>; // n x 2 x i1 vector value
84 def nxv4i1 : ValueType<4, 57>; // n x 4 x i1 vector value
85 def nxv8i1 : ValueType<8, 58>; // n x 8 x i1 vector value
86 def nxv16i1 : ValueType<16, 59>; // n x 16 x i1 vector value
87 def nxv32i1 : ValueType<32, 60>; // n x 32 x i1 vector value
89 def nxv1i8 : ValueType<8, 61>; // n x 1 x i8 vector value
90 def nxv2i8 : ValueType<16, 62>; // n x 2 x i8 vector value
91 def nxv4i8 : ValueType<32, 63>; // n x 4 x i8 vector value
92 def nxv8i8 : ValueType<64, 64>; // n x 8 x i8 vector value
93 def nxv16i8 : ValueType<128, 65>; // n x 16 x i8 vector value
94 def nxv32i8 : ValueType<256, 66>; // n x 32 x i8 vector value
96 def nxv1i16 : ValueType<16, 67>; // n x 1 x i16 vector value
97 def nxv2i16 : ValueType<32, 68>; // n x 2 x i16 vector value
98 def nxv4i16 : ValueType<64, 69>; // n x 4 x i16 vector value
99 def nxv8i16 : ValueType<128, 70>; // n x 8 x i16 vector value
100 def nxv16i16: ValueType<256, 71>; // n x 16 x i16 vector value
101 def nxv32i16: ValueType<512, 72>; // n x 32 x i16 vector value
103 def nxv1i32 : ValueType<32, 73>; // n x 1 x i32 vector value
104 def nxv2i32 : ValueType<64, 74>; // n x 2 x i32 vector value
105 def nxv4i32 : ValueType<128, 75>; // n x 4 x i32 vector value
106 def nxv8i32 : ValueType<256, 76>; // n x 8 x i32 vector value
107 def nxv16i32: ValueType<512, 77>; // n x 16 x i32 vector value
108 def nxv32i32: ValueType<1024,78>; // n x 32 x i32 vector value
110 def nxv1i64 : ValueType<64, 79>; // n x 1 x i64 vector value
111 def nxv2i64 : ValueType<128, 80>; // n x 2 x i64 vector value
112 def nxv4i64 : ValueType<256, 81>; // n x 4 x i64 vector value
113 def nxv8i64 : ValueType<512, 82>; // n x 8 x i64 vector value
114 def nxv16i64: ValueType<1024,83>; // n x 16 x i64 vector value
115 def nxv32i64: ValueType<2048,84>; // n x 32 x i64 vector value
117 def v2f16 : ValueType<32 , 85>; // 2 x f16 vector value
118 def v4f16 : ValueType<64 , 86>; // 4 x f16 vector value
119 def v8f16 : ValueType<128, 87>; // 8 x f16 vector value
120 def v1f32 : ValueType<32 , 88>; // 1 x f32 vector value
121 def v2f32 : ValueType<64 , 89>; // 2 x f32 vector value
122 def v4f32 : ValueType<128, 90>; // 4 x f32 vector value
123 def v8f32 : ValueType<256, 91>; // 8 x f32 vector value
124 def v16f32 : ValueType<512, 92>; // 16 x f32 vector value
125 def v1f64 : ValueType<64, 93>; // 1 x f64 vector value
126 def v2f64 : ValueType<128, 94>; // 2 x f64 vector value
127 def v4f64 : ValueType<256, 95>; // 4 x f64 vector value
128 def v8f64 : ValueType<512, 96>; // 8 x f64 vector value
130 def nxv2f16 : ValueType<32 , 97>; // n x 2 x f16 vector value
131 def nxv4f16 : ValueType<64 , 98>; // n x 4 x f16 vector value
132 def nxv8f16 : ValueType<128, 99>; // n x 8 x f16 vector value
133 def nxv1f32 : ValueType<32 , 100>; // n x 1 x f32 vector value
134 def nxv2f32 : ValueType<64 , 101>; // n x 2 x f32 vector value
135 def nxv4f32 : ValueType<128, 102>; // n x 4 x f32 vector value
136 def nxv8f32 : ValueType<256, 103>; // n x 8 x f32 vector value
137 def nxv16f32 : ValueType<512, 104>; // n x 16 x f32 vector value
138 def nxv1f64 : ValueType<64, 105>; // n x 1 x f64 vector value
139 def nxv2f64 : ValueType<128, 106>; // n x 2 x f64 vector value
140 def nxv4f64 : ValueType<256, 107>; // n x 4 x f64 vector value
141 def nxv8f64 : ValueType<512, 108>; // n x 8 x f64 vector value
143 def x86mmx : ValueType<64 , 109>; // X86 MMX value
144 def FlagVT : ValueType<0 , 110>; // Pre-RA sched glue
145 def isVoid : ValueType<0 , 111>; // Produces no value
146 def untyped: ValueType<8 , 112>; // Produces an untyped value
147 def ExceptRef: ValueType<0, 113>; // WebAssembly's except_ref type
148 def token : ValueType<0 , 248>; // TokenTy
149 def MetadataVT: ValueType<0, 249>; // Metadata
151 // Pseudo valuetype mapped to the current pointer size to any address space.
152 // Should only be used in TableGen.
153 def iPTRAny : ValueType<0, 250>;
155 // Pseudo valuetype to represent "vector of any size"
156 def vAny : ValueType<0 , 251>;
158 // Pseudo valuetype to represent "float of any format"
159 def fAny : ValueType<0 , 252>;
161 // Pseudo valuetype to represent "integer of any bit width"
162 def iAny : ValueType<0 , 253>;
164 // Pseudo valuetype mapped to the current pointer size.
165 def iPTR : ValueType<0 , 254>;
167 // Pseudo valuetype to represent "any type of any size".
168 def Any : ValueType<0 , 255>;