OLD | NEW |
1 //===- subzero/src/IceInstMips32.cpp - Mips32 instruction implementation --===// | 1 //===- subzero/src/IceInstMips32.cpp - Mips32 instruction implementation --===// |
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 30 matching lines...) Expand all Loading... |
41 // assert(!isNegAddrMode()); | 41 // assert(!isNegAddrMode()); |
42 NumVars = 1; | 42 NumVars = 1; |
43 Vars = &this->Base; | 43 Vars = &this->Base; |
44 } | 44 } |
45 | 45 |
46 const char *InstMIPS32::getWidthString(Type Ty) { | 46 const char *InstMIPS32::getWidthString(Type Ty) { |
47 (void)Ty; | 47 (void)Ty; |
48 return "TBD"; | 48 return "TBD"; |
49 } | 49 } |
50 | 50 |
51 | |
52 template <> const char *InstMIPS32Addiu::Opcode = "addiu"; | 51 template <> const char *InstMIPS32Addiu::Opcode = "addiu"; |
53 template <> const char *InstMIPS32Lui::Opcode = "lui"; | 52 template <> const char *InstMIPS32Lui::Opcode = "lui"; |
54 template <> const char *InstMIPS32La::Opcode = "la"; | 53 template <> const char *InstMIPS32La::Opcode = "la"; |
55 | 54 |
56 template <> const char *InstMIPS32Ori::Opcode = "ori"; | 55 template <> const char *InstMIPS32Ori::Opcode = "ori"; |
57 | 56 |
58 InstMIPS32Mov::InstMIPS32Mov(Cfg *Func, Variable *Dest, Operand *Src) | 57 InstMIPS32Mov::InstMIPS32Mov(Cfg *Func, Variable *Dest, Operand *Src) |
59 : InstMIPS32(Func, InstMIPS32::Mov, 2, Dest) { | 58 : InstMIPS32(Func, InstMIPS32::Mov, 2, Dest) { |
60 auto *Dest64 = llvm::dyn_cast<Variable64On32>(Dest); | 59 auto *Dest64 = llvm::dyn_cast<Variable64On32>(Dest); |
61 auto *Src64 = llvm::dyn_cast<Variable64On32>(Src); | 60 auto *Src64 = llvm::dyn_cast<Variable64On32>(Src); |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 // Type SrcTy = Inst->getSrc(0)->getType(); | 230 // Type SrcTy = Inst->getSrc(0)->getType(); |
232 Str << "\t" | 231 Str << "\t" |
233 << "move" | 232 << "move" |
234 << "\t"; | 233 << "\t"; |
235 getDest()->emit(Func); | 234 getDest()->emit(Func); |
236 Str << ", "; | 235 Str << ", "; |
237 getSrc(0)->emit(Func); | 236 getSrc(0)->emit(Func); |
238 } | 237 } |
239 | 238 |
240 } // end of namespace Ice | 239 } // end of namespace Ice |
OLD | NEW |