Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/IceTypes.h

Issue 1838753002: Subzero: Remove IceString. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceTranslator.cpp ('k') | src/PNaClTranslator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 inline std::string typeStdString(Type Ty) { return typeString(Ty); }
86 const char *regClassString(RegClass C); 86 const char *regClassString(RegClass C);
87 87
88 inline Type getPointerType() { return IceType_i32; } 88 inline Type getPointerType() { return IceType_i32; }
89 89
90 bool isVectorType(Type Ty); 90 bool isVectorType(Type Ty);
91 91
92 bool isIntegerType(Type Ty); // scalar or vector 92 bool isIntegerType(Type Ty); // scalar or vector
93 bool isScalarIntegerType(Type Ty); 93 bool isScalarIntegerType(Type Ty);
94 bool isVectorIntegerType(Type Ty); 94 bool isVectorIntegerType(Type Ty);
95 bool isIntegerArithmeticType(Type Ty); 95 bool isIntegerArithmeticType(Type Ty);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 }; 183 };
184 184
185 inline Ostream &operator<<(Ostream &Stream, const FuncSigType &Sig) { 185 inline Ostream &operator<<(Ostream &Stream, const FuncSigType &Sig) {
186 Sig.dump(Stream); 186 Sig.dump(Stream);
187 return Stream; 187 return Stream;
188 } 188 }
189 189
190 } // end of namespace Ice 190 } // end of namespace Ice
191 191
192 #endif // SUBZERO_SRC_ICETYPES_H 192 #endif // SUBZERO_SRC_ICETYPES_H
OLDNEW
« no previous file with comments | « src/IceTranslator.cpp ('k') | src/PNaClTranslator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698