2006-03-03 01:54:11 +00:00
|
|
|
//===- ValueTypes.td - ValueType definitions ---------------*- tablegen -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 22:59:10 +00:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2006-03-03 01:54:11 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// Value types - These values correspond to the register types defined in the
|
|
|
|
// ValueTypes.h file. If you update anything here, you must update it there as
|
|
|
|
// well!
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
class ValueType<int size, int value> {
|
|
|
|
string Namespace = "MVT";
|
|
|
|
int Size = size;
|
|
|
|
int Value = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
def OtherVT: ValueType<0 , 0>; // "Other" value
|
|
|
|
def i1 : ValueType<1 , 1>; // One bit boolean value
|
|
|
|
def i8 : ValueType<8 , 2>; // 8-bit integer value
|
|
|
|
def i16 : ValueType<16 , 3>; // 16-bit integer value
|
|
|
|
def i32 : ValueType<32 , 4>; // 32-bit integer value
|
|
|
|
def i64 : ValueType<64 , 5>; // 64-bit integer value
|
|
|
|
def i128 : ValueType<128, 6>; // 128-bit integer value
|
|
|
|
def f32 : ValueType<32 , 7>; // 32-bit floating point value
|
|
|
|
def f64 : ValueType<64 , 8>; // 64-bit floating point value
|
|
|
|
def f80 : ValueType<80 , 9>; // 80-bit floating point value
|
|
|
|
def f128 : ValueType<128, 10>; // 128-bit floating point value
|
2007-08-03 20:51:37 +00:00
|
|
|
def ppcf128: ValueType<128, 11>; // PPC 128-bit floating point value
|
2009-06-29 16:47:10 +00:00
|
|
|
|
2009-12-14 23:36:03 +00:00
|
|
|
def v2i8 : ValueType<16 , 12>; // 2 x i8 vector value
|
|
|
|
def v4i8 : ValueType<32 , 13>; // 4 x i8 vector value
|
|
|
|
def v8i8 : ValueType<64 , 14>; // 8 x i8 vector value
|
|
|
|
def v16i8 : ValueType<128, 15>; // 16 x i8 vector value
|
|
|
|
def v32i8 : ValueType<256, 16>; // 32 x i8 vector value
|
|
|
|
def v2i16 : ValueType<32 , 17>; // 2 x i16 vector value
|
|
|
|
def v4i16 : ValueType<64 , 18>; // 4 x i16 vector value
|
|
|
|
def v8i16 : ValueType<128, 19>; // 8 x i16 vector value
|
|
|
|
def v16i16 : ValueType<256, 20>; // 16 x i16 vector value
|
|
|
|
def v2i32 : ValueType<64 , 21>; // 2 x i32 vector value
|
|
|
|
def v4i32 : ValueType<128, 22>; // 4 x i32 vector value
|
|
|
|
def v8i32 : ValueType<256, 23>; // 8 x i32 vector value
|
|
|
|
def v1i64 : ValueType<64 , 24>; // 1 x i64 vector value
|
|
|
|
def v2i64 : ValueType<128, 25>; // 2 x i64 vector value
|
2010-09-17 17:52:00 +00:00
|
|
|
def v4i64 : ValueType<256, 26>; // 4 x i64 vector value
|
|
|
|
def v8i64 : ValueType<512, 27>; // 8 x i64 vector value
|
2006-03-27 22:48:00 +00:00
|
|
|
|
2010-09-07 20:03:56 +00:00
|
|
|
def v2f32 : ValueType<64 , 28>; // 2 x f32 vector value
|
2010-05-13 23:55:47 +00:00
|
|
|
def v4f32 : ValueType<128, 29>; // 4 x f32 vector value
|
|
|
|
def v8f32 : ValueType<256, 30>; // 8 x f32 vector value
|
|
|
|
def v2f64 : ValueType<128, 31>; // 2 x f64 vector value
|
|
|
|
def v4f64 : ValueType<256, 32>; // 4 x f64 vector value
|
2009-12-14 23:36:03 +00:00
|
|
|
|
2010-09-10 17:51:47 +00:00
|
|
|
def x86mmx : ValueType<64 , 33>; // X86 MMX value
|
2010-09-07 20:03:56 +00:00
|
|
|
def FlagVT : ValueType<0 , 34>; // Pre-RA sched glue
|
|
|
|
def isVoid : ValueType<0 , 35>; // Produces no value
|
2009-07-06 23:44:32 +00:00
|
|
|
|
2009-08-11 01:14:02 +00:00
|
|
|
def MetadataVT: ValueType<0, 250>; // Metadata
|
2009-07-06 23:44:32 +00:00
|
|
|
|
2008-07-30 04:36:53 +00:00
|
|
|
// Pseudo valuetype mapped to the current pointer size to any address space.
|
|
|
|
// Should only be used in TableGen.
|
2009-08-11 01:14:02 +00:00
|
|
|
def iPTRAny : ValueType<0, 251>;
|
|
|
|
|
|
|
|
// Pseudo valuetype to represent "vector of any size"
|
|
|
|
def vAny : ValueType<0 , 252>;
|
2008-07-30 04:36:53 +00:00
|
|
|
|
2007-08-16 21:57:19 +00:00
|
|
|
// Pseudo valuetype to represent "float of any format"
|
2009-07-14 00:16:03 +00:00
|
|
|
def fAny : ValueType<0 , 253>;
|
2007-08-16 21:57:19 +00:00
|
|
|
|
2007-04-01 07:17:45 +00:00
|
|
|
// Pseudo valuetype to represent "integer of any bit width"
|
2009-07-14 00:16:03 +00:00
|
|
|
def iAny : ValueType<0 , 254>;
|
2006-03-27 22:48:00 +00:00
|
|
|
|
|
|
|
// Pseudo valuetype mapped to the current pointer size.
|
2009-07-14 00:16:03 +00:00
|
|
|
def iPTR : ValueType<0 , 255>;
|