| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 #undef X | 194 #undef X |
| 195 _num | 195 _num |
| 196 }; | 196 }; |
| 197 | 197 |
| 198 static InstArithmetic *create(Cfg *Func, OpKind Op, Variable *Dest, | 198 static InstArithmetic *create(Cfg *Func, OpKind Op, Variable *Dest, |
| 199 Operand *Source1, Operand *Source2) { | 199 Operand *Source1, Operand *Source2) { |
| 200 return new (Func->allocateInst<InstArithmetic>()) | 200 return new (Func->allocateInst<InstArithmetic>()) |
| 201 InstArithmetic(Func, Op, Dest, Source1, Source2); | 201 InstArithmetic(Func, Op, Dest, Source1, Source2); |
| 202 } | 202 } |
| 203 OpKind getOp() const { return Op; } | 203 OpKind getOp() const { return Op; } |
| 204 static const char *getOpName(OpKind Op); |
| 204 bool isCommutative() const; | 205 bool isCommutative() const; |
| 205 virtual void dump(const Cfg *Func) const; | 206 virtual void dump(const Cfg *Func) const; |
| 206 static bool classof(const Inst *Inst) { | 207 static bool classof(const Inst *Inst) { |
| 207 return Inst->getKind() == Arithmetic; | 208 return Inst->getKind() == Arithmetic; |
| 208 } | 209 } |
| 209 | 210 |
| 210 private: | 211 private: |
| 211 InstArithmetic(Cfg *Func, OpKind Op, Variable *Dest, Operand *Source1, | 212 InstArithmetic(Cfg *Func, OpKind Op, Variable *Dest, Operand *Source1, |
| 212 Operand *Source2); | 213 Operand *Source2); |
| 213 InstArithmetic(const InstArithmetic &) LLVM_DELETED_FUNCTION; | 214 InstArithmetic(const InstArithmetic &) LLVM_DELETED_FUNCTION; |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 assert(Kind >= Target); | 702 assert(Kind >= Target); |
| 702 } | 703 } |
| 703 InstTarget(const InstTarget &) LLVM_DELETED_FUNCTION; | 704 InstTarget(const InstTarget &) LLVM_DELETED_FUNCTION; |
| 704 InstTarget &operator=(const InstTarget &) LLVM_DELETED_FUNCTION; | 705 InstTarget &operator=(const InstTarget &) LLVM_DELETED_FUNCTION; |
| 705 virtual ~InstTarget() {} | 706 virtual ~InstTarget() {} |
| 706 }; | 707 }; |
| 707 | 708 |
| 708 } // end of namespace Ice | 709 } // end of namespace Ice |
| 709 | 710 |
| 710 #endif // SUBZERO_SRC_ICEINST_H | 711 #endif // SUBZERO_SRC_ICEINST_H |
| OLD | NEW |