| OLD | NEW |
| 1 //===- subzero/src/IceInst.h - High-level instructions ----------*- C++ -*-===// | 1 //===- subzero/src/IceInst.h - High-level instructions ----------*- 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 the Inst class and its target-independent | 10 // This file declares the Inst class and its target-independent |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 #undef X | 196 #undef X |
| 197 _num | 197 _num |
| 198 }; | 198 }; |
| 199 | 199 |
| 200 static InstArithmetic *create(Cfg *Func, OpKind Op, Variable *Dest, | 200 static InstArithmetic *create(Cfg *Func, OpKind Op, Variable *Dest, |
| 201 Operand *Source1, Operand *Source2) { | 201 Operand *Source1, Operand *Source2) { |
| 202 return new (Func->allocateInst<InstArithmetic>()) | 202 return new (Func->allocateInst<InstArithmetic>()) |
| 203 InstArithmetic(Func, Op, Dest, Source1, Source2); | 203 InstArithmetic(Func, Op, Dest, Source1, Source2); |
| 204 } | 204 } |
| 205 OpKind getOp() const { return Op; } | 205 OpKind getOp() const { return Op; } |
| 206 static const char *getOpName(OpKind Op); |
| 206 bool isCommutative() const; | 207 bool isCommutative() const; |
| 207 virtual void dump(const Cfg *Func) const; | 208 virtual void dump(const Cfg *Func) const; |
| 208 static bool classof(const Inst *Inst) { | 209 static bool classof(const Inst *Inst) { |
| 209 return Inst->getKind() == Arithmetic; | 210 return Inst->getKind() == Arithmetic; |
| 210 } | 211 } |
| 211 | 212 |
| 212 private: | 213 private: |
| 213 InstArithmetic(Cfg *Func, OpKind Op, Variable *Dest, Operand *Source1, | 214 InstArithmetic(Cfg *Func, OpKind Op, Variable *Dest, Operand *Source1, |
| 214 Operand *Source2); | 215 Operand *Source2); |
| 215 InstArithmetic(const InstArithmetic &) LLVM_DELETED_FUNCTION; | 216 InstArithmetic(const InstArithmetic &) LLVM_DELETED_FUNCTION; |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 assert(Kind >= Target); | 749 assert(Kind >= Target); |
| 749 } | 750 } |
| 750 InstTarget(const InstTarget &) LLVM_DELETED_FUNCTION; | 751 InstTarget(const InstTarget &) LLVM_DELETED_FUNCTION; |
| 751 InstTarget &operator=(const InstTarget &) LLVM_DELETED_FUNCTION; | 752 InstTarget &operator=(const InstTarget &) LLVM_DELETED_FUNCTION; |
| 752 virtual ~InstTarget() {} | 753 virtual ~InstTarget() {} |
| 753 }; | 754 }; |
| 754 | 755 |
| 755 } // end of namespace Ice | 756 } // end of namespace Ice |
| 756 | 757 |
| 757 #endif // SUBZERO_SRC_ICEINST_H | 758 #endif // SUBZERO_SRC_ICEINST_H |
| OLD | NEW |