This is the patch to provide clean intrinsic function overloading support in LLVM...
[oota-llvm.git] / include / llvm / CodeGen / ValueTypes.td
1 //===- ValueTypes.td - ValueType definitions ---------------*- tablegen -*-===//
2 // 
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file was developed by Chris Lattner and is distributed under
6 // the University of Illinois Open Source 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
16 class ValueType<int size, int value> {
17   string Namespace = "MVT";
18   int Size = size;
19   int Value = value;
20 }
21
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
36 def v8i8   : ValueType<64 , 14>;   //  8 x i8  vector value
37 def v4i16  : ValueType<64 , 15>;   //  4 x i16 vector value
38 def v2i32  : ValueType<64 , 16>;   //  2 x i32 vector value
39 def v1i64  : ValueType<64 , 17>;   //  1 x i64 vector value
40
41 def v16i8  : ValueType<128, 18>;   // 16 x i8  vector value
42 def v8i16  : ValueType<128, 19>;   //  8 x i16 vector value
43 def v3i32  : ValueType<96 , 20>;   //  3 x i32 vector value
44 def v4i32  : ValueType<128, 21>;   //  4 x i32 vector value
45 def v2i64  : ValueType<128, 22>;   //  2 x i64 vector value
46
47 def v2f32  : ValueType<64,  23>;   //  2 x f32 vector value
48 def v3f32  : ValueType<96 , 24>;   //  3 x f32 vector value
49 def v4f32  : ValueType<128, 25>;   //  4 x f32 vector value
50 def v2f64  : ValueType<128, 26>;   //  2 x f64 vector value
51
52 // Pseudo valuetype to represent "integer of any bit width"
53 def iAny   : ValueType<0  , 254>;
54
55 // Pseudo valuetype mapped to the current pointer size.
56 def iPTR   : ValueType<0  , 255>;