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 /// \file | 10 /// \file |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 }; | 75 }; |
76 | 76 |
77 enum OptLevel { Opt_m1, Opt_0, Opt_1, Opt_2 }; | 77 enum OptLevel { Opt_m1, Opt_0, Opt_1, Opt_2 }; |
78 | 78 |
79 size_t typeWidthInBytes(Type Ty); | 79 size_t typeWidthInBytes(Type Ty); |
80 int8_t typeWidthInBytesLog2(Type Ty); | 80 int8_t typeWidthInBytesLog2(Type Ty); |
81 size_t typeAlignInBytes(Type Ty); | 81 size_t typeAlignInBytes(Type Ty); |
82 size_t typeNumElements(Type Ty); | 82 size_t typeNumElements(Type Ty); |
83 Type typeElementType(Type Ty); | 83 Type typeElementType(Type Ty); |
84 const char *typeString(Type Ty); | 84 const char *typeString(Type Ty); |
| 85 inline IceString typeIceString(Type Ty) { return typeString(Ty); } |
85 const char *regClassString(RegClass C); | 86 const char *regClassString(RegClass C); |
86 | 87 |
87 inline Type getPointerType() { return IceType_i32; } | 88 inline Type getPointerType() { return IceType_i32; } |
88 | 89 |
89 bool isVectorType(Type Ty); | 90 bool isVectorType(Type Ty); |
90 | 91 |
91 bool isIntegerType(Type Ty); // scalar or vector | 92 bool isIntegerType(Type Ty); // scalar or vector |
92 bool isScalarIntegerType(Type Ty); | 93 bool isScalarIntegerType(Type Ty); |
93 bool isVectorIntegerType(Type Ty); | 94 bool isVectorIntegerType(Type Ty); |
94 bool isIntegerArithmeticType(Type Ty); | 95 bool isIntegerArithmeticType(Type Ty); |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 }; | 183 }; |
183 | 184 |
184 inline Ostream &operator<<(Ostream &Stream, const FuncSigType &Sig) { | 185 inline Ostream &operator<<(Ostream &Stream, const FuncSigType &Sig) { |
185 Sig.dump(Stream); | 186 Sig.dump(Stream); |
186 return Stream; | 187 return Stream; |
187 } | 188 } |
188 | 189 |
189 } // end of namespace Ice | 190 } // end of namespace Ice |
190 | 191 |
191 #endif // SUBZERO_SRC_ICETYPES_H | 192 #endif // SUBZERO_SRC_ICETYPES_H |
OLD | NEW |