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

Unified Diff: src/IceTypes.h

Issue 353553004: Add support for vector types and vector constants. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: src/IceTypes.h
diff --git a/src/IceTypes.h b/src/IceTypes.h
index a919465026d77a8fdb4af2ee3ad0cc671ee17cea..5b34070aa9562cc0049365f6636e15252e970f7e 100644
--- a/src/IceTypes.h
+++ b/src/IceTypes.h
@@ -21,7 +21,7 @@
namespace Ice {
enum Type {
-#define X(tag, size, align, str) tag,
+#define X(tag, size, align, elts, elty, str) tag,
ICETYPE_TABLE
#undef X
IceType_NUM
@@ -43,6 +43,8 @@ enum OptLevel {
size_t typeWidthInBytes(Type Ty);
size_t typeAlignInBytes(Type Ty);
+size_t typeNumElements(Type Ty);
+Type typeElementType(Type Ty);
template <> Ostream &operator<<(class Ostream &Str, const Type &Ty);

Powered by Google App Engine
This is Rietveld 408576698