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

Side by Side Diff: src/IceTypes.h

Issue 561883002: Add load and store instructions to Subzero bitcode reader. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix isses in patch set 2. Created 6 years, 3 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/IceInst.h ('k') | src/IceTypes.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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 bool isIntegerType(Type Ty); // scalar or vector 52 bool isIntegerType(Type Ty); // scalar or vector
53 bool isScalarIntegerType(Type Ty); 53 bool isScalarIntegerType(Type Ty);
54 bool isVectorIntegerType(Type Ty); 54 bool isVectorIntegerType(Type Ty);
55 bool isIntegerArithmeticType(Type Ty); 55 bool isIntegerArithmeticType(Type Ty);
56 56
57 bool isFloatingType(Type Ty); // scalar or vector 57 bool isFloatingType(Type Ty); // scalar or vector
58 bool isScalarFloatingType(Type Ty); 58 bool isScalarFloatingType(Type Ty);
59 bool isVectorFloatingType(Type Ty); 59 bool isVectorFloatingType(Type Ty);
60 60
61 /// Returns true if the given type can be used in a load instruction.
62 bool isLoadStoreType(Type Ty);
63
61 /// Returns type generated by applying the compare instructions (icmp and fcmp) 64 /// Returns type generated by applying the compare instructions (icmp and fcmp)
62 /// to arguments of the given type. Returns IceType_void if compare is not 65 /// to arguments of the given type. Returns IceType_void if compare is not
63 /// allowed. 66 /// allowed.
64 Type getCompareResultType(Type Ty); 67 Type getCompareResultType(Type Ty);
65 68
66 template <typename StreamType> 69 template <typename StreamType>
67 inline StreamType &operator<<(StreamType &Str, const Type &Ty) { 70 inline StreamType &operator<<(StreamType &Str, const Type &Ty) {
68 Str << typeString(Ty); 71 Str << typeString(Ty);
69 return Str; 72 return Str;
70 } 73 }
71 74
72 } // end of namespace Ice 75 } // end of namespace Ice
73 76
74 #endif // SUBZERO_SRC_ICETYPES_H 77 #endif // SUBZERO_SRC_ICETYPES_H
OLDNEW
« no previous file with comments | « src/IceInst.h ('k') | src/IceTypes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698