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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // ends a variable's live range. | 78 // ends a variable's live range. |
79 typedef std::pair<SizeT, InstNumberT> LiveBeginEndMapEntry; | 79 typedef std::pair<SizeT, InstNumberT> LiveBeginEndMapEntry; |
80 typedef std::vector<LiveBeginEndMapEntry> LiveBeginEndMap; | 80 typedef std::vector<LiveBeginEndMapEntry> LiveBeginEndMap; |
81 typedef llvm::BitVector LivenessBV; | 81 typedef llvm::BitVector LivenessBV; |
82 | 82 |
83 typedef uint32_t TimerStackIdT; | 83 typedef uint32_t TimerStackIdT; |
84 typedef uint32_t TimerIdT; | 84 typedef uint32_t TimerIdT; |
85 | 85 |
86 // PNaCl is ILP32, so theoretically we should only need 32-bit offsets. | 86 // PNaCl is ILP32, so theoretically we should only need 32-bit offsets. |
87 typedef int32_t RelocOffsetT; | 87 typedef int32_t RelocOffsetT; |
| 88 enum { RelocAddrSize = 4 }; |
88 | 89 |
89 enum LivenessMode { | 90 enum LivenessMode { |
90 // Basic version of live-range-end calculation. Marks the last uses | 91 // Basic version of live-range-end calculation. Marks the last uses |
91 // of variables based on dataflow analysis. Records the set of | 92 // of variables based on dataflow analysis. Records the set of |
92 // live-in and live-out variables for each block. Identifies and | 93 // live-in and live-out variables for each block. Identifies and |
93 // deletes dead instructions (primarily stores). | 94 // deletes dead instructions (primarily stores). |
94 Liveness_Basic, | 95 Liveness_Basic, |
95 | 96 |
96 // In addition to Liveness_Basic, also calculate the complete | 97 // In addition to Liveness_Basic, also calculate the complete |
97 // live range for each variable in a form suitable for interference | 98 // live range for each variable in a form suitable for interference |
(...skipping 17 matching lines...) Expand all Loading... |
115 IceV_All = ~IceV_None, | 116 IceV_All = ~IceV_None, |
116 IceV_Most = IceV_All & ~IceV_LinearScan | 117 IceV_Most = IceV_All & ~IceV_LinearScan |
117 }; | 118 }; |
118 typedef uint32_t VerboseMask; | 119 typedef uint32_t VerboseMask; |
119 | 120 |
120 typedef llvm::raw_ostream Ostream; | 121 typedef llvm::raw_ostream Ostream; |
121 | 122 |
122 } // end of namespace Ice | 123 } // end of namespace Ice |
123 | 124 |
124 #endif // SUBZERO_SRC_ICEDEFS_H | 125 #endif // SUBZERO_SRC_ICEDEFS_H |
OLD | NEW |