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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 class TargetLowering; | 54 class TargetLowering; |
55 class Variable; | 55 class Variable; |
56 | 56 |
57 // TODO: Switch over to LLVM's ADT container classes. | 57 // TODO: Switch over to LLVM's ADT container classes. |
58 // http://llvm.org/docs/ProgrammersManual.html#picking-the-right-data-structure-
for-a-task | 58 // http://llvm.org/docs/ProgrammersManual.html#picking-the-right-data-structure-
for-a-task |
59 typedef std::string IceString; | 59 typedef std::string IceString; |
60 typedef std::list<Inst *> InstList; | 60 typedef std::list<Inst *> InstList; |
61 typedef std::list<InstPhi *> PhiList; | 61 typedef std::list<InstPhi *> PhiList; |
62 typedef std::vector<Variable *> VarList; | 62 typedef std::vector<Variable *> VarList; |
63 typedef std::vector<CfgNode *> NodeList; | 63 typedef std::vector<CfgNode *> NodeList; |
| 64 typedef std::vector<Constant *> ConstantList; |
64 | 65 |
65 // SizeT is for holding small-ish limits like number of source | 66 // SizeT is for holding small-ish limits like number of source |
66 // operands in an instruction. It is used instead of size_t (which | 67 // operands in an instruction. It is used instead of size_t (which |
67 // may be 64-bits wide) when we want to save space. | 68 // may be 64-bits wide) when we want to save space. |
68 typedef uint32_t SizeT; | 69 typedef uint32_t SizeT; |
69 | 70 |
70 enum VerboseItem { | 71 enum VerboseItem { |
71 IceV_None = 0, | 72 IceV_None = 0, |
72 IceV_Instructions = 1 << 0, | 73 IceV_Instructions = 1 << 0, |
73 IceV_Deleted = 1 << 1, | 74 IceV_Deleted = 1 << 1, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 121 |
121 private: | 122 private: |
122 const llvm::TimeRecord Start; | 123 const llvm::TimeRecord Start; |
123 Timer(const Timer &) LLVM_DELETED_FUNCTION; | 124 Timer(const Timer &) LLVM_DELETED_FUNCTION; |
124 Timer &operator=(const Timer &) LLVM_DELETED_FUNCTION; | 125 Timer &operator=(const Timer &) LLVM_DELETED_FUNCTION; |
125 }; | 126 }; |
126 | 127 |
127 } // end of namespace Ice | 128 } // end of namespace Ice |
128 | 129 |
129 #endif // SUBZERO_SRC_ICEDEFS_H | 130 #endif // SUBZERO_SRC_ICEDEFS_H |
OLD | NEW |