| OLD | NEW |
| 1 //===- subzero/src/IceInstMIPS32.h - MIPS32 machine instrs --*- C++ -*-=== // | 1 //===- subzero/src/IceInstMIPS32.h - MIPS32 machine instrs --*- 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 /// \file | 10 /// \file |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 class TargetMIPS32; | 27 class TargetMIPS32; |
| 28 | 28 |
| 29 /// Base class for Mips instructions. | 29 /// Base class for Mips instructions. |
| 30 class InstMIPS32 : public InstTarget { | 30 class InstMIPS32 : public InstTarget { |
| 31 InstMIPS32() = delete; | 31 InstMIPS32() = delete; |
| 32 InstMIPS32(const InstMIPS32 &) = delete; | 32 InstMIPS32(const InstMIPS32 &) = delete; |
| 33 InstMIPS32 &operator=(const InstMIPS32 &) = delete; | 33 InstMIPS32 &operator=(const InstMIPS32 &) = delete; |
| 34 | 34 |
| 35 public: | 35 public: |
| 36 enum InstKindMIPS32 { k__Start = Inst::Target, Ret }; | 36 enum InstKindMIPS32 { k__Start = Inst::Target0, Ret }; |
| 37 | 37 |
| 38 static const char *getWidthString(Type Ty); | 38 static const char *getWidthString(Type Ty); |
| 39 | 39 |
| 40 void dump(const Cfg *Func) const override; | 40 void dump(const Cfg *Func) const override; |
| 41 | 41 |
| 42 protected: | 42 protected: |
| 43 InstMIPS32(Cfg *Func, InstKindMIPS32 Kind, SizeT Maxsrcs, Variable *Dest) | 43 InstMIPS32(Cfg *Func, InstKindMIPS32 Kind, SizeT Maxsrcs, Variable *Dest) |
| 44 : InstTarget(Func, static_cast<InstKind>(Kind), Maxsrcs, Dest) {} | 44 : InstTarget(Func, static_cast<InstKind>(Kind), Maxsrcs, Dest) {} |
| 45 static bool isClassof(const Inst *Inst, InstKindMIPS32 MyKind) { | 45 static bool isClassof(const Inst *Inst, InstKindMIPS32 MyKind) { |
| 46 return Inst->getKind() == static_cast<InstKind>(MyKind); | 46 return Inst->getKind() == static_cast<InstKind>(MyKind); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 71 void dump(const Cfg *Func) const override; | 71 void dump(const Cfg *Func) const override; |
| 72 static bool classof(const Inst *Inst) { return isClassof(Inst, Ret); } | 72 static bool classof(const Inst *Inst) { return isClassof(Inst, Ret); } |
| 73 | 73 |
| 74 private: | 74 private: |
| 75 InstMIPS32Ret(Cfg *Func, Variable *RA, Variable *Source); | 75 InstMIPS32Ret(Cfg *Func, Variable *RA, Variable *Source); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // end of namespace Ice | 78 } // end of namespace Ice |
| 79 | 79 |
| 80 #endif // SUBZERO_SRC_ICEINSTMIPS32_H | 80 #endif // SUBZERO_SRC_ICEINSTMIPS32_H |
| OLD | NEW |