| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 class Operand; | 53 class Operand; |
| 54 class TargetLowering; | 54 class TargetLowering; |
| 55 class Variable; | 55 class Variable; |
| 56 class VariableDeclaration; | 56 class VariableDeclaration; |
| 57 class VariablesMetadata; | 57 class VariablesMetadata; |
| 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 llvm::ilist<Inst> InstList; | 62 typedef llvm::ilist<Inst> InstList; |
| 63 typedef std::list<InstAssign *> AssignList; | 63 // Ideally PhiList would be llvm::ilist<InstPhi>, and similar for |
| 64 typedef std::list<InstPhi *> PhiList; | 64 // AssignList, but this runs into issues with SFINAE. |
| 65 typedef InstList PhiList; |
| 66 typedef InstList AssignList; |
| 65 typedef std::vector<Variable *> VarList; | 67 typedef std::vector<Variable *> VarList; |
| 66 typedef std::vector<Operand *> OperandList; | |
| 67 typedef std::vector<CfgNode *> NodeList; | 68 typedef std::vector<CfgNode *> NodeList; |
| 68 typedef std::vector<Constant *> ConstantList; | 69 typedef std::vector<Constant *> ConstantList; |
| 69 | 70 |
| 70 // SizeT is for holding small-ish limits like number of source | 71 // SizeT is for holding small-ish limits like number of source |
| 71 // 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 |
| 72 // may be 64-bits wide) when we want to save space. | 73 // may be 64-bits wide) when we want to save space. |
| 73 typedef uint32_t SizeT; | 74 typedef uint32_t SizeT; |
| 74 | 75 |
| 75 // InstNumberT is for holding an instruction number. Instruction | 76 // InstNumberT is for holding an instruction number. Instruction |
| 76 // numbers are used for representing Variable live ranges. | 77 // numbers are used for representing Variable live ranges. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 IceV_Most = IceV_All & ~IceV_LinearScan | 126 IceV_Most = IceV_All & ~IceV_LinearScan |
| 126 }; | 127 }; |
| 127 typedef uint32_t VerboseMask; | 128 typedef uint32_t VerboseMask; |
| 128 | 129 |
| 129 typedef llvm::raw_ostream Ostream; | 130 typedef llvm::raw_ostream Ostream; |
| 130 typedef llvm::raw_fd_ostream Fdstream; | 131 typedef llvm::raw_fd_ostream Fdstream; |
| 131 | 132 |
| 132 } // end of namespace Ice | 133 } // end of namespace Ice |
| 133 | 134 |
| 134 #endif // SUBZERO_SRC_ICEDEFS_H | 135 #endif // SUBZERO_SRC_ICEDEFS_H |
| OLD | NEW |