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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 // SizeT is for holding small-ish limits like number of source | 63 // SizeT is for holding small-ish limits like number of source |
64 // operands in an instruction. It is used instead of size_t (which | 64 // operands in an instruction. It is used instead of size_t (which |
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 TimerIdT; | 73 typedef uint32_t TimerIdT; |
73 | 74 |
74 enum LivenessMode { | 75 enum LivenessMode { |
75 // Basic version of live-range-end calculation. Marks the last uses | 76 // Basic version of live-range-end calculation. Marks the last uses |
76 // of variables based on dataflow analysis. Records the set of | 77 // of variables based on dataflow analysis. Records the set of |
77 // live-in and live-out variables for each block. Identifies and | 78 // live-in and live-out variables for each block. Identifies and |
78 // deletes dead instructions (primarily stores). | 79 // deletes dead instructions (primarily stores). |
79 Liveness_Basic, | 80 Liveness_Basic, |
80 | 81 |
81 // In addition to Liveness_Basic, also calculate the complete | 82 // In addition to Liveness_Basic, also calculate the complete |
(...skipping 18 matching lines...) Expand all Loading... |
100 IceV_All = ~IceV_None, | 101 IceV_All = ~IceV_None, |
101 IceV_Most = IceV_All & ~IceV_LinearScan | 102 IceV_Most = IceV_All & ~IceV_LinearScan |
102 }; | 103 }; |
103 typedef uint32_t VerboseMask; | 104 typedef uint32_t VerboseMask; |
104 | 105 |
105 typedef llvm::raw_ostream Ostream; | 106 typedef llvm::raw_ostream Ostream; |
106 | 107 |
107 } // end of namespace Ice | 108 } // end of namespace Ice |
108 | 109 |
109 #endif // SUBZERO_SRC_ICEDEFS_H | 110 #endif // SUBZERO_SRC_ICEDEFS_H |
OLD | NEW |