| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 105 |
| 106 // InstNumberT is for holding an instruction number. Instruction | 106 // InstNumberT is for holding an instruction number. Instruction |
| 107 // numbers are used for representing Variable live ranges. | 107 // numbers are used for representing Variable live ranges. |
| 108 typedef int32_t InstNumberT; | 108 typedef int32_t InstNumberT; |
| 109 | 109 |
| 110 // A LiveBeginEndMapEntry maps a Variable::Number value to an | 110 // A LiveBeginEndMapEntry maps a Variable::Number value to an |
| 111 // Inst::Number value, giving the instruction number that begins or | 111 // Inst::Number value, giving the instruction number that begins or |
| 112 // ends a variable's live range. | 112 // ends a variable's live range. |
| 113 typedef std::pair<SizeT, InstNumberT> LiveBeginEndMapEntry; | 113 typedef std::pair<SizeT, InstNumberT> LiveBeginEndMapEntry; |
| 114 typedef std::vector<LiveBeginEndMapEntry, | 114 typedef std::vector<LiveBeginEndMapEntry, |
| 115 CfgLocalAllocator<LiveBeginEndMapEntry> > LiveBeginEndMap; | 115 CfgLocalAllocator<LiveBeginEndMapEntry>> LiveBeginEndMap; |
| 116 typedef llvm::BitVector LivenessBV; | 116 typedef llvm::BitVector LivenessBV; |
| 117 | 117 |
| 118 typedef uint32_t TimerStackIdT; | 118 typedef uint32_t TimerStackIdT; |
| 119 typedef uint32_t TimerIdT; | 119 typedef uint32_t TimerIdT; |
| 120 | 120 |
| 121 // PNaCl is ILP32, so theoretically we should only need 32-bit offsets. | 121 // PNaCl is ILP32, so theoretically we should only need 32-bit offsets. |
| 122 typedef int32_t RelocOffsetT; | 122 typedef int32_t RelocOffsetT; |
| 123 enum { RelocAddrSize = 4 }; | 123 enum { RelocAddrSize = 4 }; |
| 124 | 124 |
| 125 enum LivenessMode { | 125 enum LivenessMode { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 return llvm::make_range(Container.rbegin(), Container.rend()); | 169 return llvm::make_range(Container.rbegin(), Container.rend()); |
| 170 } | 170 } |
| 171 template <typename T> | 171 template <typename T> |
| 172 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) { | 172 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) { |
| 173 return llvm::make_range(Container.rbegin(), Container.rend()); | 173 return llvm::make_range(Container.rbegin(), Container.rend()); |
| 174 } | 174 } |
| 175 | 175 |
| 176 } // end of namespace Ice | 176 } // end of namespace Ice |
| 177 | 177 |
| 178 #endif // SUBZERO_SRC_ICEDEFS_H | 178 #endif // SUBZERO_SRC_ICEDEFS_H |
| OLD | NEW |