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

Side by Side Diff: src/IceTypes.h

Issue 265703002: Add Om1 lowering with no optimizations (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Merge changed from Karl's committed CL Created 6 years, 7 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/IceTargetLoweringX8632.def ('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
11 // in Subzero. Every Subzero source file is expected to include 11 // in Subzero. Every Subzero source file is expected to include
12 // IceTypes.h. 12 // IceTypes.h.
13 // 13 //
14 //===----------------------------------------------------------------------===// 14 //===----------------------------------------------------------------------===//
15 15
16 #ifndef SUBZERO_SRC_ICETYPES_H 16 #ifndef SUBZERO_SRC_ICETYPES_H
17 #define SUBZERO_SRC_ICETYPES_H 17 #define SUBZERO_SRC_ICETYPES_H
18 18
19 #include "IceTypes.def" 19 #include "IceTypes.def"
20 20
21 namespace Ice { 21 namespace Ice {
22 22
23 enum Type { 23 enum Type {
24 #define X(tag, size, align, str) tag, 24 #define X(tag, size, align, str) tag,
25 ICETYPE_TABLE 25 ICETYPE_TABLE
26 #undef X 26 #undef X
27 }; 27 };
28 28
29 enum TargetArch {
30 Target_X8632,
31 Target_X8664,
32 Target_ARM32,
33 Target_ARM64
34 };
35
36 enum OptLevel {
37 Opt_m1,
38 Opt_0,
39 Opt_1,
40 Opt_2
41 };
42
29 size_t typeWidthInBytes(Type Ty); 43 size_t typeWidthInBytes(Type Ty);
30 size_t typeAlignInBytes(Type Ty); 44 size_t typeAlignInBytes(Type Ty);
31 45
32 template <> Ostream &operator<<(class Ostream &Str, const Type &Ty); 46 template <> Ostream &operator<<(class Ostream &Str, const Type &Ty);
33 47
34 } // end of namespace Ice 48 } // end of namespace Ice
35 49
36 #endif // SUBZERO_SRC_ICETYPES_H 50 #endif // SUBZERO_SRC_ICETYPES_H
OLDNEW
« no previous file with comments | « src/IceTargetLoweringX8632.def ('k') | src/IceTypes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698