| 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 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1047 } else { | 1047 } else { |
| 1048 getSrc(0)->dump(Func); | 1048 getSrc(0)->dump(Func); |
| 1049 Str << ","; | 1049 Str << ","; |
| 1050 emitRelocOp(Str, Reloc); | 1050 emitRelocOp(Str, Reloc); |
| 1051 Str << "("; | 1051 Str << "("; |
| 1052 getSrc(1)->dump(Func); | 1052 getSrc(1)->dump(Func); |
| 1053 Str << ")"; | 1053 Str << ")"; |
| 1054 } | 1054 } |
| 1055 } | 1055 } |
| 1056 | 1056 |
| 1057 uint32_t getImmediateValue() const { return Imm; } |
| 1058 |
| 1057 static bool classof(const Inst *Inst) { return isClassof(Inst, K); } | 1059 static bool classof(const Inst *Inst) { return isClassof(Inst, K); } |
| 1058 | 1060 |
| 1059 private: | 1061 private: |
| 1060 InstMIPS32Imm16(Cfg *Func, Variable *Dest, Operand *Source, uint32_t Imm, | 1062 InstMIPS32Imm16(Cfg *Func, Variable *Dest, Operand *Source, uint32_t Imm, |
| 1061 RelocOp Reloc = RO_No) | 1063 RelocOp Reloc = RO_No) |
| 1062 : InstMIPS32(Func, K, 1, Dest), Reloc(Reloc), Imm(Imm) { | 1064 : InstMIPS32(Func, K, 1, Dest), Reloc(Reloc), Imm(Imm) { |
| 1063 addSource(Source); | 1065 addSource(Source); |
| 1064 } | 1066 } |
| 1065 | 1067 |
| 1066 InstMIPS32Imm16(Cfg *Func, Variable *Dest, uint32_t Imm, | 1068 InstMIPS32Imm16(Cfg *Func, Variable *Dest, uint32_t Imm, |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1351 template <> void InstMIPS32Trunc_l_s::emitIAS(const Cfg *Func) const; | 1353 template <> void InstMIPS32Trunc_l_s::emitIAS(const Cfg *Func) const; |
| 1352 template <> void InstMIPS32Trunc_w_d::emitIAS(const Cfg *Func) const; | 1354 template <> void InstMIPS32Trunc_w_d::emitIAS(const Cfg *Func) const; |
| 1353 template <> void InstMIPS32Trunc_w_s::emitIAS(const Cfg *Func) const; | 1355 template <> void InstMIPS32Trunc_w_s::emitIAS(const Cfg *Func) const; |
| 1354 template <> void InstMIPS32Xor::emitIAS(const Cfg *Func) const; | 1356 template <> void InstMIPS32Xor::emitIAS(const Cfg *Func) const; |
| 1355 template <> void InstMIPS32Xori::emitIAS(const Cfg *Func) const; | 1357 template <> void InstMIPS32Xori::emitIAS(const Cfg *Func) const; |
| 1356 | 1358 |
| 1357 } // end of namespace MIPS32 | 1359 } // end of namespace MIPS32 |
| 1358 } // end of namespace Ice | 1360 } // end of namespace Ice |
| 1359 | 1361 |
| 1360 #endif // SUBZERO_SRC_ICEINSTMIPS32_H | 1362 #endif // SUBZERO_SRC_ICEINSTMIPS32_H |
| OLD | NEW |