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

Side by Side Diff: src/IceTypes.def

Issue 395193005: Start processing function blocks in Subzero. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits in patch set 4. Created 6 years, 5 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
OLDNEW
1 //===- subzero/src/IceTypes.def - X-macros for ICE types --------*- C++ -*-===// 1 //===- subzero/src/IceTypes.def - X-macros for 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 defines properties of ICE primitive types in the form of 10 // This file defines properties of ICE primitive types in the form of
11 // x-macros. 11 // x-macros.
12 // 12 //
13 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===//
14 14
15 #ifndef SUBZERO_SRC_ICETYPES_DEF 15 #ifndef SUBZERO_SRC_ICETYPES_DEF
16 #define SUBZERO_SRC_ICETYPES_DEF 16 #define SUBZERO_SRC_ICETYPES_DEF
17 17
18 #define ICETYPE_TABLE \ 18 #define ICETYPE_TABLE \
19 /* enum value, size, align, # elts, element type, printable string */ \ 19 /* enum value, size, align, # elts, element type, printable string \
20 , flags */ \
jvoung (off chromium) 2014/07/22 18:40:18 maybe put the comma in the previous line?
Karl 2014/07/23 20:22:20 Done.
20 /* (size and alignment in bytes) */ \ 21 /* (size and alignment in bytes) */ \
21 X(IceType_void, 0, 0, 1, IceType_void, "void") \ 22 X(IceType_void, 0, 0, 1, IceType_void, "void", 0) \
22 X(IceType_i1, 1, 1, 1, IceType_i1, "i1") \ 23 X(IceType_i1, 1, 1, 1, IceType_i1, "i1", \
23 X(IceType_i8, 1, 1, 1, IceType_i8, "i8") \ 24 TypeFlagIsInteger) \
24 X(IceType_i16, 2, 1, 1, IceType_i16, "i16") \ 25 X(IceType_i8, 1, 1, 1, IceType_i8, "i8", \
25 X(IceType_i32, 4, 1, 1, IceType_i32, "i32") \ 26 TypeFlagIsInteger) \
26 X(IceType_i64, 8, 1, 1, IceType_i64, "i64") \ 27 X(IceType_i16, 2, 1, 1, IceType_i16, "i16", \
27 X(IceType_f32, 4, 4, 1, IceType_f32, "float") \ 28 TypeFlagIsInteger) \
28 X(IceType_f64, 8, 8, 1, IceType_f64, "double") \ 29 X(IceType_i32, 4, 1, 1, IceType_i32, "i32", \
29 X(IceType_v4i1, 16, 1, 4, IceType_i1, "<4 x i1>") \ 30 TypeFlagIsInteger) \
30 X(IceType_v8i1, 16, 1, 8, IceType_i1, "<8 x i1>") \ 31 X(IceType_i64, 8, 1, 1, IceType_i64, "i64", \
31 X(IceType_v16i1, 16, 1, 16, IceType_i1, "<16 x i1>") \ 32 TypeFlagIsInteger) \
32 X(IceType_v16i8, 16, 1, 16, IceType_i8, "<16 x i8>") \ 33 X(IceType_f32, 4, 4, 1, IceType_f32, "float", \
33 X(IceType_v8i16, 16, 2, 8, IceType_i16, "<8 x i16>") \ 34 TypeFlagIsFloating) \
34 X(IceType_v4i32, 16, 4, 4, IceType_i32, "<4 x i32>") \ 35 X(IceType_f64, 8, 8, 1, IceType_f64, "double", \
35 X(IceType_v4f32, 16, 4, 4, IceType_f32, "<4 x float>") \ 36 TypeFlagIsFloating) \
37 X(IceType_v4i1, 16, 1, 4, IceType_i1, "<4 x i1>", 0) \
38 X(IceType_v8i1, 16, 1, 8, IceType_i1, "<8 x i1>", 0) \
39 X(IceType_v16i1, 16, 1, 16, IceType_i1, "<16 x i1>", 0) \
40 X(IceType_v16i8, 16, 1, 16, IceType_i8, "<16 x i8>", 0) \
41 X(IceType_v8i16, 16, 2, 8, IceType_i16, "<8 x i16>", 0) \
42 X(IceType_v4i32, 16, 4, 4, IceType_i32, "<4 x i32>", 0) \
43 X(IceType_v4f32, 16, 4, 4, IceType_f32, "<4 x float>", 0) \
36 //#define X(tag, size, align, elts, elty, str) 44 //#define X(tag, size, align, elts, elty, str)
37 45
38 #endif // SUBZERO_SRC_ICETYPES_DEF 46 #endif // SUBZERO_SRC_ICETYPES_DEF
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698