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 10 matching lines...) Expand all Loading... |
21 #include <cstdio> // snprintf | 21 #include <cstdio> // snprintf |
22 #include <functional> // std::less | 22 #include <functional> // std::less |
23 #include <limits> | 23 #include <limits> |
24 #include <list> | 24 #include <list> |
25 #include <map> | 25 #include <map> |
26 #include <set> | 26 #include <set> |
27 #include <string> | 27 #include <string> |
28 #include <vector> | 28 #include <vector> |
29 #include "llvm/ADT/ArrayRef.h" | 29 #include "llvm/ADT/ArrayRef.h" |
30 #include "llvm/ADT/BitVector.h" | 30 #include "llvm/ADT/BitVector.h" |
| 31 #include "llvm/ADT/ilist.h" |
| 32 #include "llvm/ADT/ilist_node.h" |
31 #include "llvm/ADT/SmallBitVector.h" | 33 #include "llvm/ADT/SmallBitVector.h" |
32 #include "llvm/ADT/STLExtras.h" | 34 #include "llvm/ADT/STLExtras.h" |
33 #include "llvm/Support/Casting.h" | 35 #include "llvm/Support/Casting.h" |
34 #include "llvm/Support/raw_ostream.h" | 36 #include "llvm/Support/raw_ostream.h" |
35 | 37 |
36 namespace Ice { | 38 namespace Ice { |
37 | 39 |
38 class Cfg; | 40 class Cfg; |
39 class CfgNode; | 41 class CfgNode; |
40 class Constant; | 42 class Constant; |
41 class FunctionDeclaration; | 43 class FunctionDeclaration; |
42 class GlobalContext; | 44 class GlobalContext; |
43 class GlobalDeclaration; | 45 class GlobalDeclaration; |
44 class Inst; | 46 class Inst; |
45 class InstAssign; | 47 class InstAssign; |
46 class InstPhi; | 48 class InstPhi; |
47 class InstTarget; | 49 class InstTarget; |
48 class LiveRange; | 50 class LiveRange; |
49 class Liveness; | 51 class Liveness; |
50 class Operand; | 52 class Operand; |
51 class TargetLowering; | 53 class TargetLowering; |
52 class Variable; | 54 class Variable; |
53 class VariableDeclaration; | 55 class VariableDeclaration; |
54 class VariablesMetadata; | 56 class VariablesMetadata; |
55 | 57 |
56 // TODO: Switch over to LLVM's ADT container classes. | 58 // TODO: Switch over to LLVM's ADT container classes. |
57 // http://llvm.org/docs/ProgrammersManual.html#picking-the-right-data-structure-
for-a-task | 59 // http://llvm.org/docs/ProgrammersManual.html#picking-the-right-data-structure-
for-a-task |
58 typedef std::string IceString; | 60 typedef std::string IceString; |
59 typedef std::list<Inst *> InstList; | 61 typedef llvm::ilist<Inst> InstList; |
60 typedef std::list<InstAssign *> AssignList; | 62 typedef std::list<InstAssign *> AssignList; |
61 typedef std::list<InstPhi *> PhiList; | 63 typedef std::list<InstPhi *> PhiList; |
62 typedef std::vector<Variable *> VarList; | 64 typedef std::vector<Variable *> VarList; |
63 typedef std::vector<Operand *> OperandList; | 65 typedef std::vector<Operand *> OperandList; |
64 typedef std::vector<CfgNode *> NodeList; | 66 typedef std::vector<CfgNode *> NodeList; |
65 typedef std::vector<Constant *> ConstantList; | 67 typedef std::vector<Constant *> ConstantList; |
66 | 68 |
67 // SizeT is for holding small-ish limits like number of source | 69 // SizeT is for holding small-ish limits like number of source |
68 // 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 |
69 // may be 64-bits wide) when we want to save space. | 71 // may be 64-bits wide) when we want to save space. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 IceV_All = ~IceV_None, | 118 IceV_All = ~IceV_None, |
117 IceV_Most = IceV_All & ~IceV_LinearScan | 119 IceV_Most = IceV_All & ~IceV_LinearScan |
118 }; | 120 }; |
119 typedef uint32_t VerboseMask; | 121 typedef uint32_t VerboseMask; |
120 | 122 |
121 typedef llvm::raw_ostream Ostream; | 123 typedef llvm::raw_ostream Ostream; |
122 | 124 |
123 } // end of namespace Ice | 125 } // end of namespace Ice |
124 | 126 |
125 #endif // SUBZERO_SRC_ICEDEFS_H | 127 #endif // SUBZERO_SRC_ICEDEFS_H |
OLD | NEW |