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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 X86InstructionSet_End, | 70 X86InstructionSet_End, |
71 ARM32InstructionSet_Begin, | 71 ARM32InstructionSet_Begin, |
72 ARM32InstructionSet_Neon = ARM32InstructionSet_Begin, | 72 ARM32InstructionSet_Neon = ARM32InstructionSet_Begin, |
73 ARM32InstructionSet_HWDivArm, | 73 ARM32InstructionSet_HWDivArm, |
74 ARM32InstructionSet_End, | 74 ARM32InstructionSet_End, |
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 size_t typeWidthInBits(Type Ty); |
80 int8_t typeWidthInBytesLog2(Type Ty); | 81 int8_t typeWidthInBytesLog2(Type Ty); |
81 size_t typeAlignInBytes(Type Ty); | 82 size_t typeAlignInBytes(Type Ty); |
82 size_t typeNumElements(Type Ty); | 83 size_t typeNumElements(Type Ty); |
83 Type typeElementType(Type Ty); | 84 Type typeElementType(Type Ty); |
84 const char *typeString(Type Ty); | 85 const char *typeString(Type 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); |
(...skipping 92 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 |