OLD | NEW |
1 //===- subzero/src/IceTypes.h - Primitive ICE types -------------*- C++ -*-===// | 1 //===- subzero/src/IceTypes.h - Primitive ICE types -------------*- C++ -*-===// |
2 // | 2 // |
3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 // | 9 // |
10 // This file declares a few properties of the primitive types allowed | 10 // This file declares a few properties of the primitive types allowed |
(...skipping 28 matching lines...) Expand all Loading... |
39 Opt_0, | 39 Opt_0, |
40 Opt_1, | 40 Opt_1, |
41 Opt_2 | 41 Opt_2 |
42 }; | 42 }; |
43 | 43 |
44 size_t typeWidthInBytes(Type Ty); | 44 size_t typeWidthInBytes(Type Ty); |
45 size_t typeAlignInBytes(Type Ty); | 45 size_t typeAlignInBytes(Type Ty); |
46 size_t typeNumElements(Type Ty); | 46 size_t typeNumElements(Type Ty); |
47 Type typeElementType(Type Ty); | 47 Type typeElementType(Type Ty); |
48 | 48 |
49 inline bool isVectorType(Type Ty) { return typeNumElements(Ty) > 1; } | 49 bool isScalarIntegerType(Type Ty); |
| 50 bool isScalarFloatingType(Type Ty); |
| 51 bool isVectorType(Type Ty); |
| 52 bool isVectorIntegerType(Type Ty); |
| 53 bool isVectorFloatingType(Type Ty); |
50 | 54 |
51 template <> Ostream &operator<<(class Ostream &Str, const Type &Ty); | 55 Ostream &operator<<(class Ostream &Str, const Type &Ty); |
52 | 56 |
53 } // end of namespace Ice | 57 } // end of namespace Ice |
54 | 58 |
55 #endif // SUBZERO_SRC_ICETYPES_H | 59 #endif // SUBZERO_SRC_ICETYPES_H |
OLD | NEW |