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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 typedef uint32_t SizeT; | 99 typedef uint32_t SizeT; |
100 | 100 |
101 // InstNumberT is for holding an instruction number. Instruction | 101 // InstNumberT is for holding an instruction number. Instruction |
102 // numbers are used for representing Variable live ranges. | 102 // numbers are used for representing Variable live ranges. |
103 typedef int32_t InstNumberT; | 103 typedef int32_t InstNumberT; |
104 | 104 |
105 // A LiveBeginEndMapEntry maps a Variable::Number value to an | 105 // A LiveBeginEndMapEntry maps a Variable::Number value to an |
106 // Inst::Number value, giving the instruction number that begins or | 106 // Inst::Number value, giving the instruction number that begins or |
107 // ends a variable's live range. | 107 // ends a variable's live range. |
108 typedef std::pair<SizeT, InstNumberT> LiveBeginEndMapEntry; | 108 typedef std::pair<SizeT, InstNumberT> LiveBeginEndMapEntry; |
109 typedef std::vector<LiveBeginEndMapEntry> LiveBeginEndMap; | 109 typedef std::vector<LiveBeginEndMapEntry, |
| 110 CfgLocalAllocator<LiveBeginEndMapEntry> > LiveBeginEndMap; |
110 typedef llvm::BitVector LivenessBV; | 111 typedef llvm::BitVector LivenessBV; |
111 | 112 |
112 typedef uint32_t TimerStackIdT; | 113 typedef uint32_t TimerStackIdT; |
113 typedef uint32_t TimerIdT; | 114 typedef uint32_t TimerIdT; |
114 | 115 |
115 // PNaCl is ILP32, so theoretically we should only need 32-bit offsets. | 116 // PNaCl is ILP32, so theoretically we should only need 32-bit offsets. |
116 typedef int32_t RelocOffsetT; | 117 typedef int32_t RelocOffsetT; |
117 enum { RelocAddrSize = 4 }; | 118 enum { RelocAddrSize = 4 }; |
118 | 119 |
119 enum LivenessMode { | 120 enum LivenessMode { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 IceV_Most = IceV_All & ~IceV_LinearScan | 153 IceV_Most = IceV_All & ~IceV_LinearScan |
153 }; | 154 }; |
154 typedef uint32_t VerboseMask; | 155 typedef uint32_t VerboseMask; |
155 | 156 |
156 typedef llvm::raw_ostream Ostream; | 157 typedef llvm::raw_ostream Ostream; |
157 typedef llvm::raw_fd_ostream Fdstream; | 158 typedef llvm::raw_fd_ostream Fdstream; |
158 | 159 |
159 } // end of namespace Ice | 160 } // end of namespace Ice |
160 | 161 |
161 #endif // SUBZERO_SRC_ICEDEFS_H | 162 #endif // SUBZERO_SRC_ICEDEFS_H |
OLD | NEW |