Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: src/IceInstMIPS32.cpp

Issue 1418523002: Add hybrid assembler concept to ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceInstMIPS32.h ('k') | tests_lit/assembler/arm32/add.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/IceInstMIPS32.h ('k') | tests_lit/assembler/arm32/add.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698