OLD | NEW |
---|---|
1 //===- subzero/src/IceDefs.h - Common Subzero declaraions -------*- C++ -*-===// | 1 //===- subzero/src/IceDefs.h - Common Subzero declaraions -------*- 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 various useful types and classes that have | 10 // This file declares various useful types and classes that have |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
65 // may be 64-bits wide) when we want to save space. | 65 // may be 64-bits wide) when we want to save space. |
66 typedef uint32_t SizeT; | 66 typedef uint32_t SizeT; |
67 | 67 |
68 // InstNumberT is for holding an instruction number. Instruction | 68 // InstNumberT is for holding an instruction number. Instruction |
69 // numbers are used for representing Variable live ranges. | 69 // numbers are used for representing Variable live ranges. |
70 typedef int32_t InstNumberT; | 70 typedef int32_t InstNumberT; |
71 | 71 |
72 typedef uint32_t TimerStackIdT; | 72 typedef uint32_t TimerStackIdT; |
73 typedef uint32_t TimerIdT; | 73 typedef uint32_t TimerIdT; |
74 | 74 |
75 // NaCl is ILP32, so theoretically we should only need 32-bit offsets. | |
Jim Stichnoth
2014/10/13 17:41:06
NaCl --> PNaCl, right?
The point being that we co
jvoung (off chromium)
2014/10/13 22:51:45
Done.
| |
76 typedef int32_t RelocOffsetT; | |
77 | |
75 enum LivenessMode { | 78 enum LivenessMode { |
76 // Basic version of live-range-end calculation. Marks the last uses | 79 // Basic version of live-range-end calculation. Marks the last uses |
77 // of variables based on dataflow analysis. Records the set of | 80 // of variables based on dataflow analysis. Records the set of |
78 // live-in and live-out variables for each block. Identifies and | 81 // live-in and live-out variables for each block. Identifies and |
79 // deletes dead instructions (primarily stores). | 82 // deletes dead instructions (primarily stores). |
80 Liveness_Basic, | 83 Liveness_Basic, |
81 | 84 |
82 // In addition to Liveness_Basic, also calculate the complete | 85 // In addition to Liveness_Basic, also calculate the complete |
83 // live range for each variable in a form suitable for interference | 86 // live range for each variable in a form suitable for interference |
84 // calculation and register allocation. | 87 // calculation and register allocation. |
(...skipping 16 matching lines...) Expand all Loading... | |
101 IceV_All = ~IceV_None, | 104 IceV_All = ~IceV_None, |
102 IceV_Most = IceV_All & ~IceV_LinearScan | 105 IceV_Most = IceV_All & ~IceV_LinearScan |
103 }; | 106 }; |
104 typedef uint32_t VerboseMask; | 107 typedef uint32_t VerboseMask; |
105 | 108 |
106 typedef llvm::raw_ostream Ostream; | 109 typedef llvm::raw_ostream Ostream; |
107 | 110 |
108 } // end of namespace Ice | 111 } // end of namespace Ice |
109 | 112 |
110 #endif // SUBZERO_SRC_ICEDEFS_H | 113 #endif // SUBZERO_SRC_ICEDEFS_H |
OLD | NEW |