| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 typedef llvm::ilist<Inst> InstList; | 96 typedef llvm::ilist<Inst> InstList; |
| 97 // Ideally PhiList would be llvm::ilist<InstPhi>, and similar for | 97 // Ideally PhiList would be llvm::ilist<InstPhi>, and similar for |
| 98 // AssignList, but this runs into issues with SFINAE. | 98 // AssignList, but this runs into issues with SFINAE. |
| 99 typedef InstList PhiList; | 99 typedef InstList PhiList; |
| 100 typedef InstList AssignList; | 100 typedef InstList AssignList; |
| 101 // VarList and NodeList are arena-allocated from the Cfg's allocator. | 101 // VarList and NodeList are arena-allocated from the Cfg's allocator. |
| 102 typedef std::vector<Variable *, CfgLocalAllocator<Variable *>> VarList; | 102 typedef std::vector<Variable *, CfgLocalAllocator<Variable *>> VarList; |
| 103 typedef std::vector<CfgNode *, CfgLocalAllocator<CfgNode *>> NodeList; | 103 typedef std::vector<CfgNode *, CfgLocalAllocator<CfgNode *>> NodeList; |
| 104 typedef std::vector<Constant *> ConstantList; | 104 typedef std::vector<Constant *> ConstantList; |
| 105 | 105 |
| 106 typedef std::vector<VariableDeclaration *> VariableDeclarationList; |
| 107 |
| 106 // SizeT is for holding small-ish limits like number of source | 108 // SizeT is for holding small-ish limits like number of source |
| 107 // operands in an instruction. It is used instead of size_t (which | 109 // operands in an instruction. It is used instead of size_t (which |
| 108 // may be 64-bits wide) when we want to save space. | 110 // may be 64-bits wide) when we want to save space. |
| 109 typedef uint32_t SizeT; | 111 typedef uint32_t SizeT; |
| 110 | 112 |
| 111 // InstNumberT is for holding an instruction number. Instruction | 113 // InstNumberT is for holding an instruction number. Instruction |
| 112 // numbers are used for representing Variable live ranges. | 114 // numbers are used for representing Variable live ranges. |
| 113 typedef int32_t InstNumberT; | 115 typedef int32_t InstNumberT; |
| 114 | 116 |
| 115 // A LiveBeginEndMapEntry maps a Variable::Number value to an | 117 // A LiveBeginEndMapEntry maps a Variable::Number value to an |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 return llvm::make_range(Container.rbegin(), Container.rend()); | 210 return llvm::make_range(Container.rbegin(), Container.rend()); |
| 209 } | 211 } |
| 210 template <typename T> | 212 template <typename T> |
| 211 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) { | 213 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) { |
| 212 return llvm::make_range(Container.rbegin(), Container.rend()); | 214 return llvm::make_range(Container.rbegin(), Container.rend()); |
| 213 } | 215 } |
| 214 | 216 |
| 215 } // end of namespace Ice | 217 } // end of namespace Ice |
| 216 | 218 |
| 217 #endif // SUBZERO_SRC_ICEDEFS_H | 219 #endif // SUBZERO_SRC_ICEDEFS_H |
| OLD | NEW |