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

Side by Side Diff: src/IceTypes.h

Issue 805943002: Remove TypeConverter and Module from minimal subzero build. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add missing comment. Created 6 years 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/IceTypeConverter.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 // 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
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
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
OLDNEW
« no previous file with comments | « src/IceTypeConverter.cpp ('k') | src/PNaClTranslator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698