1//===- ValueTypes.td - ValueType definitions ---------------*- tablegen -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9// 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 12// well! 13// 14//===----------------------------------------------------------------------===// 15 16class ValueType<int size, int value> { 17 string Namespace = "MVT"; 18 int Size = size; 19 int Value = value; 20} 21 22def OtherVT: ValueType<0 , 0>; // "Other" value 23def i1 : ValueType<1 , 1>; // One bit boolean value 24def i8 : ValueType<8 , 2>; // 8-bit integer value 25def i16 : ValueType<16 , 3>; // 16-bit integer value 26def i32 : ValueType<32 , 4>; // 32-bit integer value 27def i64 : ValueType<64 , 5>; // 64-bit integer value 28def i128 : ValueType<128, 6>; // 128-bit integer value 29def f16 : ValueType<16 , 7>; // 16-bit floating point value 30def f32 : ValueType<32 , 8>; // 32-bit floating point value 31def f64 : ValueType<64 , 9>; // 64-bit floating point value 32def f80 : ValueType<80 , 10>; // 80-bit floating point value 33def f128 : ValueType<128, 11>; // 128-bit floating point value 34def ppcf128: ValueType<128, 12>; // PPC 128-bit floating point value 35 36def v2i1 : ValueType<2 , 13>; // 2 x i1 vector value 37def v4i1 : ValueType<4 , 14>; // 4 x i1 vector value 38def v8i1 : ValueType<8 , 15>; // 8 x i1 vector value 39def v16i1 : ValueType<16, 16>; // 16 x i1 vector value 40def v32i1 : ValueType<32 , 17>; // 32 x i1 vector value 41def v64i1 : ValueType<64 , 18>; // 64 x i1 vector value 42def v1i8 : ValueType<16, 19>; // 1 x i8 vector value 43def v2i8 : ValueType<16 , 20>; // 2 x i8 vector value 44def v4i8 : ValueType<32 , 21>; // 4 x i8 vector value 45def v8i8 : ValueType<64 , 22>; // 8 x i8 vector value 46def v16i8 : ValueType<128, 23>; // 16 x i8 vector value 47def v32i8 : ValueType<256, 24>; // 32 x i8 vector value 48def v64i8 : ValueType<512, 25>; // 64 x i8 vector value 49def v1i16 : ValueType<16 , 26>; // 1 x i16 vector value 50def v2i16 : ValueType<32 , 27>; // 2 x i16 vector value 51def v4i16 : ValueType<64 , 28>; // 4 x i16 vector value 52def v8i16 : ValueType<128, 29>; // 8 x i16 vector value 53def v16i16 : ValueType<256, 30>; // 16 x i16 vector value 54def v32i16 : ValueType<512, 31>; // 32 x i16 vector value 55def v1i32 : ValueType<32 , 32>; // 1 x i32 vector value 56def v2i32 : ValueType<64 , 33>; // 2 x i32 vector value 57def v4i32 : ValueType<128, 34>; // 4 x i32 vector value 58def v8i32 : ValueType<256, 35>; // 8 x i32 vector value 59def v16i32 : ValueType<512, 36>; // 16 x i32 vector value 60def v1i64 : ValueType<64 , 37>; // 1 x i64 vector value 61def v2i64 : ValueType<128, 38>; // 2 x i64 vector value 62def v4i64 : ValueType<256, 39>; // 4 x i64 vector value 63def v8i64 : ValueType<512, 40>; // 8 x i64 vector value 64def v16i64 : ValueType<1024,41>; // 16 x i64 vector value 65 66def v2f16 : ValueType<32 , 42>; // 2 x f16 vector value 67def v4f16 : ValueType<64 , 43>; // 4 x f16 vector value 68def v8f16 : ValueType<128, 44>; // 8 x f16 vector value 69def v1f32 : ValueType<32 , 45>; // 1 x f32 vector value 70def v2f32 : ValueType<64 , 46>; // 2 x f32 vector value 71def v4f32 : ValueType<128, 47>; // 4 x f32 vector value 72def v8f32 : ValueType<256, 48>; // 8 x f32 vector value 73def v16f32 : ValueType<512, 49>; // 16 x f32 vector value 74def v1f64 : ValueType<64, 50>; // 1 x f64 vector value 75def v2f64 : ValueType<128, 51>; // 2 x f64 vector value 76def v4f64 : ValueType<256, 52>; // 4 x f64 vector value 77def v8f64 : ValueType<512, 53>; // 8 x f64 vector value 78 79 80def x86mmx : ValueType<64 , 54>; // X86 MMX value 81def FlagVT : ValueType<0 , 55>; // Pre-RA sched glue 82def isVoid : ValueType<0 , 56>; // Produces no value 83def untyped: ValueType<8 , 57>; // Produces an untyped value 84def MetadataVT: ValueType<0, 250>; // Metadata 85 86// Pseudo valuetype mapped to the current pointer size to any address space. 87// Should only be used in TableGen. 88def iPTRAny : ValueType<0, 251>; 89 90// Pseudo valuetype to represent "vector of any size" 91def vAny : ValueType<0 , 252>; 92 93// Pseudo valuetype to represent "float of any format" 94def fAny : ValueType<0 , 253>; 95 96// Pseudo valuetype to represent "integer of any bit width" 97def iAny : ValueType<0 , 254>; 98 99// Pseudo valuetype mapped to the current pointer size. 100def iPTR : ValueType<0 , 255>; 101 102// Pseudo valuetype to represent "any type of any size". 103def Any : ValueType<0 , 256>; 104