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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 class Operand; | 55 class Operand; |
56 class TargetLowering; | 56 class TargetLowering; |
57 class Variable; | 57 class Variable; |
58 | 58 |
59 // TODO: Switch over to LLVM's ADT container classes. | 59 // TODO: Switch over to LLVM's ADT container classes. |
60 // http://llvm.org/docs/ProgrammersManual.html#picking-the-right-data-structure-
for-a-task | 60 // http://llvm.org/docs/ProgrammersManual.html#picking-the-right-data-structure-
for-a-task |
61 typedef std::string IceString; | 61 typedef std::string IceString; |
62 typedef std::list<Inst *> InstList; | 62 typedef std::list<Inst *> InstList; |
63 typedef std::list<InstPhi *> PhiList; | 63 typedef std::list<InstPhi *> PhiList; |
64 typedef std::vector<Variable *> VarList; | 64 typedef std::vector<Variable *> VarList; |
| 65 typedef std::vector<Operand *> OperandList; |
65 typedef std::vector<CfgNode *> NodeList; | 66 typedef std::vector<CfgNode *> NodeList; |
66 typedef std::vector<Constant *> ConstantList; | 67 typedef std::vector<Constant *> ConstantList; |
67 | 68 |
68 // SizeT is for holding small-ish limits like number of source | 69 // SizeT is for holding small-ish limits like number of source |
69 // operands in an instruction. It is used instead of size_t (which | 70 // operands in an instruction. It is used instead of size_t (which |
70 // may be 64-bits wide) when we want to save space. | 71 // may be 64-bits wide) when we want to save space. |
71 typedef uint32_t SizeT; | 72 typedef uint32_t SizeT; |
72 | 73 |
73 // InstNumberT is for holding an instruction number. Instruction | 74 // InstNumberT is for holding an instruction number. Instruction |
74 // numbers are used for representing Variable live ranges. | 75 // numbers are used for representing Variable live ranges. |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 141 |
141 private: | 142 private: |
142 const llvm::TimeRecord Start; | 143 const llvm::TimeRecord Start; |
143 Timer(const Timer &) LLVM_DELETED_FUNCTION; | 144 Timer(const Timer &) LLVM_DELETED_FUNCTION; |
144 Timer &operator=(const Timer &) LLVM_DELETED_FUNCTION; | 145 Timer &operator=(const Timer &) LLVM_DELETED_FUNCTION; |
145 }; | 146 }; |
146 | 147 |
147 } // end of namespace Ice | 148 } // end of namespace Ice |
148 | 149 |
149 #endif // SUBZERO_SRC_ICEDEFS_H | 150 #endif // SUBZERO_SRC_ICEDEFS_H |
OLD | NEW |