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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 return ".L" + Func->getFunctionName() + "$local$__" + std::to_string(Number); | 122 return ".L" + Func->getFunctionName() + "$local$__" + std::to_string(Number); |
123 } | 123 } |
124 | 124 |
125 void InstMIPS32Label::dump(const Cfg *Func) const { | 125 void InstMIPS32Label::dump(const Cfg *Func) const { |
126 if (!BuildDefs::dump()) | 126 if (!BuildDefs::dump()) |
127 return; | 127 return; |
128 Ostream &Str = Func->getContext()->getStrDump(); | 128 Ostream &Str = Func->getContext()->getStrDump(); |
129 Str << getName(Func) << ":"; | 129 Str << getName(Func) << ":"; |
130 } | 130 } |
131 | 131 |
| 132 void InstMIPS32Label::emit(const Cfg *Func) const { |
| 133 if (!BuildDefs::dump()) |
| 134 return; |
| 135 Ostream &Str = Func->getContext()->getStrEmit(); |
| 136 Str << getName(Func) << ":"; |
| 137 } |
| 138 |
132 void InstMIPS32Label::emitIAS(const Cfg *Func) const { | 139 void InstMIPS32Label::emitIAS(const Cfg *Func) const { |
133 (void)Func; | 140 (void)Func; |
134 llvm_unreachable("Not yet implemented"); | 141 llvm_unreachable("Not yet implemented"); |
135 } | 142 } |
136 | 143 |
137 InstMIPS32Call::InstMIPS32Call(Cfg *Func, Variable *Dest, Operand *CallTarget) | 144 InstMIPS32Call::InstMIPS32Call(Cfg *Func, Variable *Dest, Operand *CallTarget) |
138 : InstMIPS32(Func, InstMIPS32::Call, 1, Dest) { | 145 : InstMIPS32(Func, InstMIPS32::Call, 1, Dest) { |
139 HasSideEffects = true; | 146 HasSideEffects = true; |
140 addSource(CallTarget); | 147 addSource(CallTarget); |
141 } | 148 } |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 } | 445 } |
439 | 446 |
440 Str << "\t"; | 447 Str << "\t"; |
441 getDest()->emit(Func); | 448 getDest()->emit(Func); |
442 Str << ", "; | 449 Str << ", "; |
443 getSrc(0)->emit(Func); | 450 getSrc(0)->emit(Func); |
444 } | 451 } |
445 | 452 |
446 } // end of namespace MIPS32 | 453 } // end of namespace MIPS32 |
447 } // end of namespace Ice | 454 } // end of namespace Ice |
OLD | NEW |