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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 Opt_1, | 46 Opt_1, |
47 Opt_2 | 47 Opt_2 |
48 }; | 48 }; |
49 | 49 |
50 size_t typeWidthInBytes(Type Ty); | 50 size_t typeWidthInBytes(Type Ty); |
51 size_t typeAlignInBytes(Type Ty); | 51 size_t typeAlignInBytes(Type Ty); |
52 size_t typeNumElements(Type Ty); | 52 size_t typeNumElements(Type Ty); |
53 Type typeElementType(Type Ty); | 53 Type typeElementType(Type Ty); |
54 const char *typeString(Type Ty); | 54 const char *typeString(Type Ty); |
55 | 55 |
| 56 inline Type getPointerType() { return IceType_i32; } |
| 57 |
56 bool isVectorType(Type Ty); | 58 bool isVectorType(Type Ty); |
57 | 59 |
58 bool isIntegerType(Type Ty); // scalar or vector | 60 bool isIntegerType(Type Ty); // scalar or vector |
59 bool isScalarIntegerType(Type Ty); | 61 bool isScalarIntegerType(Type Ty); |
60 bool isVectorIntegerType(Type Ty); | 62 bool isVectorIntegerType(Type Ty); |
61 bool isIntegerArithmeticType(Type Ty); | 63 bool isIntegerArithmeticType(Type Ty); |
62 | 64 |
63 bool isFloatingType(Type Ty); // scalar or vector | 65 bool isFloatingType(Type Ty); // scalar or vector |
64 bool isScalarFloatingType(Type Ty); | 66 bool isScalarFloatingType(Type Ty); |
65 bool isVectorFloatingType(Type Ty); | 67 bool isVectorFloatingType(Type Ty); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 }; | 144 }; |
143 | 145 |
144 inline Ostream &operator<<(Ostream &Stream, const FuncSigType &Sig) { | 146 inline Ostream &operator<<(Ostream &Stream, const FuncSigType &Sig) { |
145 Sig.dump(Stream); | 147 Sig.dump(Stream); |
146 return Stream; | 148 return Stream; |
147 } | 149 } |
148 | 150 |
149 } // end of namespace Ice | 151 } // end of namespace Ice |
150 | 152 |
151 #endif // SUBZERO_SRC_ICETYPES_H | 153 #endif // SUBZERO_SRC_ICETYPES_H |
OLD | NEW |