| 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 15 matching lines...) Expand all Loading... |
| 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" | 31 #include "llvm/ADT/ilist.h" |
| 32 #include "llvm/ADT/ilist_node.h" | 32 #include "llvm/ADT/ilist_node.h" |
| 33 #include "llvm/ADT/SmallBitVector.h" | 33 #include "llvm/ADT/SmallBitVector.h" |
| 34 #include "llvm/ADT/STLExtras.h" | 34 #include "llvm/ADT/STLExtras.h" |
| 35 #include "llvm/Support/Casting.h" | 35 #include "llvm/Support/Casting.h" |
| 36 #include "llvm/Support/ELF.h" |
| 36 #include "llvm/Support/raw_ostream.h" | 37 #include "llvm/Support/raw_ostream.h" |
| 37 | 38 |
| 38 namespace Ice { | 39 namespace Ice { |
| 39 | 40 |
| 40 class Cfg; | 41 class Cfg; |
| 41 class CfgNode; | 42 class CfgNode; |
| 42 class Constant; | 43 class Constant; |
| 43 class FunctionDeclaration; | 44 class FunctionDeclaration; |
| 44 class GlobalContext; | 45 class GlobalContext; |
| 45 class GlobalDeclaration; | 46 class GlobalDeclaration; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 58 // TODO: Switch over to LLVM's ADT container classes. | 59 // TODO: Switch over to LLVM's ADT container classes. |
| 59 // 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 |
| 60 typedef std::string IceString; | 61 typedef std::string IceString; |
| 61 typedef llvm::ilist<Inst> InstList; | 62 typedef llvm::ilist<Inst> InstList; |
| 62 typedef std::list<InstAssign *> AssignList; | 63 typedef std::list<InstAssign *> AssignList; |
| 63 typedef std::list<InstPhi *> PhiList; | 64 typedef std::list<InstPhi *> PhiList; |
| 64 typedef std::vector<Variable *> VarList; | 65 typedef std::vector<Variable *> VarList; |
| 65 typedef std::vector<Operand *> OperandList; | 66 typedef std::vector<Operand *> OperandList; |
| 66 typedef std::vector<CfgNode *> NodeList; | 67 typedef std::vector<CfgNode *> NodeList; |
| 67 typedef std::vector<Constant *> ConstantList; | 68 typedef std::vector<Constant *> ConstantList; |
| 69 typedef std::vector<GlobalDeclaration *> GlobalDeclarationList; |
| 68 | 70 |
| 69 // SizeT is for holding small-ish limits like number of source | 71 // SizeT is for holding small-ish limits like number of source |
| 70 // operands in an instruction. It is used instead of size_t (which | 72 // operands in an instruction. It is used instead of size_t (which |
| 71 // may be 64-bits wide) when we want to save space. | 73 // may be 64-bits wide) when we want to save space. |
| 72 typedef uint32_t SizeT; | 74 typedef uint32_t SizeT; |
| 73 | 75 |
| 74 // InstNumberT is for holding an instruction number. Instruction | 76 // InstNumberT is for holding an instruction number. Instruction |
| 75 // numbers are used for representing Variable live ranges. | 77 // numbers are used for representing Variable live ranges. |
| 76 typedef int32_t InstNumberT; | 78 typedef int32_t InstNumberT; |
| 77 | 79 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 IceV_RegOrigins = 1 << 7, | 121 IceV_RegOrigins = 1 << 7, |
| 120 IceV_LinearScan = 1 << 8, | 122 IceV_LinearScan = 1 << 8, |
| 121 IceV_Frame = 1 << 9, | 123 IceV_Frame = 1 << 9, |
| 122 IceV_AddrOpt = 1 << 10, | 124 IceV_AddrOpt = 1 << 10, |
| 123 IceV_All = ~IceV_None, | 125 IceV_All = ~IceV_None, |
| 124 IceV_Most = IceV_All & ~IceV_LinearScan | 126 IceV_Most = IceV_All & ~IceV_LinearScan |
| 125 }; | 127 }; |
| 126 typedef uint32_t VerboseMask; | 128 typedef uint32_t VerboseMask; |
| 127 | 129 |
| 128 typedef llvm::raw_ostream Ostream; | 130 typedef llvm::raw_ostream Ostream; |
| 131 typedef llvm::raw_fd_ostream Fdstream; |
| 129 | 132 |
| 130 } // end of namespace Ice | 133 } // end of namespace Ice |
| 131 | 134 |
| 132 #endif // SUBZERO_SRC_ICEDEFS_H | 135 #endif // SUBZERO_SRC_ICEDEFS_H |
| OLD | NEW |