1 //===- ValueTypes.td - ValueType definitions ---------------*- tablegen -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // Value types - These values correspond to the register types defined in the
11 // ValueTypes.h file. If you update anything here, you must update it there as
14 //===----------------------------------------------------------------------===//
16 class ValueType<int size, int value> {
17 string Namespace = "MVT";
22 def OtherVT: ValueType<0 , 0>; // "Other" value
23 def i1 : ValueType<1 , 1>; // One bit boolean value
24 def i8 : ValueType<8 , 2>; // 8-bit integer value
25 def i16 : ValueType<16 , 3>; // 16-bit integer value
26 def i32 : ValueType<32 , 4>; // 32-bit integer value
27 def i64 : ValueType<64 , 5>; // 64-bit integer value
28 def i128 : ValueType<128, 6>; // 128-bit integer value
29 def f32 : ValueType<32 , 7>; // 32-bit floating point value
30 def f64 : ValueType<64 , 8>; // 64-bit floating point value
31 def f80 : ValueType<80 , 9>; // 80-bit floating point value
32 def f128 : ValueType<128, 10>; // 128-bit floating point value
33 def ppcf128: ValueType<128, 11>; // PPC 128-bit floating point value
34 def FlagVT : ValueType<0 , 12>; // Condition code or machine flag
35 def isVoid : ValueType<0 , 13>; // Produces no value
37 def v2i8 : ValueType<16 , 14>; // 2 x i8 vector value
38 def v4i8 : ValueType<32 , 15>; // 4 x i8 vector value
39 def v8i8 : ValueType<64 , 16>; // 8 x i8 vector value
40 def v16i8 : ValueType<128, 17>; // 16 x i8 vector value
41 def v32i8 : ValueType<256, 18>; // 32 x i8 vector value
42 def v2i16 : ValueType<32 , 19>; // 2 x i16 vector value
43 def v4i16 : ValueType<64 , 20>; // 4 x i16 vector value
44 def v8i16 : ValueType<128, 21>; // 8 x i16 vector value
45 def v16i16 : ValueType<256, 22>; // 16 x i16 vector value
46 def v2i32 : ValueType<64 , 23>; // 2 x i32 vector value
47 def v4i32 : ValueType<128, 24>; // 4 x i32 vector value
48 def v8i32 : ValueType<256, 25>; // 8 x i32 vector value
49 def v1i64 : ValueType<64 , 26>; // 1 x i64 vector value
50 def v2i64 : ValueType<128, 27>; // 2 x i64 vector value
51 def v4i64 : ValueType<256, 28>; // 4 x f64 vector value
53 def v2f32 : ValueType<64, 29>; // 2 x f32 vector value
54 def v4f32 : ValueType<128, 30>; // 4 x f32 vector value
55 def v8f32 : ValueType<256, 31>; // 8 x f32 vector value
56 def v2f64 : ValueType<128, 32>; // 2 x f64 vector value
57 def v4f64 : ValueType<256, 33>; // 4 x f64 vector value
59 def MetadataVT: ValueType<0, 250>; // Metadata
61 // Pseudo valuetype mapped to the current pointer size to any address space.
62 // Should only be used in TableGen.
63 def iPTRAny : ValueType<0, 251>;
65 // Pseudo valuetype to represent "vector of any size"
66 def vAny : ValueType<0 , 252>;
68 // Pseudo valuetype to represent "float of any format"
69 def fAny : ValueType<0 , 253>;
71 // Pseudo valuetype to represent "integer of any bit width"
72 def iAny : ValueType<0 , 254>;
74 // Pseudo valuetype mapped to the current pointer size.
75 def iPTR : ValueType<0 , 255>;