| 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 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 | 510 |
| 511 void emit(const Cfg *Func) const override { | 511 void emit(const Cfg *Func) const override { |
| 512 if (!BuildDefs::dump()) | 512 if (!BuildDefs::dump()) |
| 513 return; | 513 return; |
| 514 Ostream &Str = Func->getContext()->getStrEmit(); | 514 Ostream &Str = Func->getContext()->getStrEmit(); |
| 515 assert(getSrcSize() == 2); | 515 assert(getSrcSize() == 2); |
| 516 Str << "\t" << Opcode << "\t"; | 516 Str << "\t" << Opcode << "\t"; |
| 517 getSrc(0)->emit(Func); | 517 getSrc(0)->emit(Func); |
| 518 Str << ", "; | 518 Str << ", "; |
| 519 emitRelocOp(Str, Reloc); | 519 emitRelocOp(Str, Reloc); |
| 520 Str << (Reloc ? "(" : ""); | |
| 521 getSrc(1)->emit(Func); | 520 getSrc(1)->emit(Func); |
| 522 Str << (Reloc ? ")" : ""); | |
| 523 } | 521 } |
| 524 | 522 |
| 525 void emitIAS(const Cfg *Func) const override { | 523 void emitIAS(const Cfg *Func) const override { |
| 526 (void)Func; | 524 (void)Func; |
| 527 llvm_unreachable("Not yet implemented"); | 525 llvm_unreachable("Not yet implemented"); |
| 528 } | 526 } |
| 529 | 527 |
| 530 void dump(const Cfg *Func) const override { | 528 void dump(const Cfg *Func) const override { |
| 531 if (!BuildDefs::dump()) | 529 if (!BuildDefs::dump()) |
| 532 return; | 530 return; |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 template <> void InstMIPS32Mtlo::emit(const Cfg *Func) const; | 849 template <> void InstMIPS32Mtlo::emit(const Cfg *Func) const; |
| 852 template <> void InstMIPS32Mthi::emit(const Cfg *Func) const; | 850 template <> void InstMIPS32Mthi::emit(const Cfg *Func) const; |
| 853 template <> void InstMIPS32Mult::emit(const Cfg *Func) const; | 851 template <> void InstMIPS32Mult::emit(const Cfg *Func) const; |
| 854 template <> void InstMIPS32Multu::emit(const Cfg *Func) const; | 852 template <> void InstMIPS32Multu::emit(const Cfg *Func) const; |
| 855 template <> void InstMIPS32Lui::emit(const Cfg *Func) const; | 853 template <> void InstMIPS32Lui::emit(const Cfg *Func) const; |
| 856 | 854 |
| 857 } // end of namespace MIPS32 | 855 } // end of namespace MIPS32 |
| 858 } // end of namespace Ice | 856 } // end of namespace Ice |
| 859 | 857 |
| 860 #endif // SUBZERO_SRC_ICEINSTMIPS32_H | 858 #endif // SUBZERO_SRC_ICEINSTMIPS32_H |
| OLD | NEW |