| OLD | NEW |
| 1 //===- subzero/src/IceInstARM32.h - ARM32 machine instructions --*- C++ -*-===// | 1 //===- subzero/src/IceInstARM32.h - ARM32 machine instructions --*- 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 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 static InstARM32ThreeAddrFP *create(Cfg *Func, Variable *Dest, Variable *Src0, | 724 static InstARM32ThreeAddrFP *create(Cfg *Func, Variable *Dest, Variable *Src0, |
| 725 Variable *Src1) { | 725 Variable *Src1) { |
| 726 return new (Func->allocate<InstARM32ThreeAddrFP>()) | 726 return new (Func->allocate<InstARM32ThreeAddrFP>()) |
| 727 InstARM32ThreeAddrFP(Func, Dest, Src0, Src1); | 727 InstARM32ThreeAddrFP(Func, Dest, Src0, Src1); |
| 728 } | 728 } |
| 729 void emit(const Cfg *Func) const override { | 729 void emit(const Cfg *Func) const override { |
| 730 if (!BuildDefs::dump()) | 730 if (!BuildDefs::dump()) |
| 731 return; | 731 return; |
| 732 emitThreeAddrFP(Opcode, this, Func); | 732 emitThreeAddrFP(Opcode, this, Func); |
| 733 } | 733 } |
| 734 void emitIAS(const Cfg *Func) const override; |
| 734 void dump(const Cfg *Func) const override { | 735 void dump(const Cfg *Func) const override { |
| 735 if (!BuildDefs::dump()) | 736 if (!BuildDefs::dump()) |
| 736 return; | 737 return; |
| 737 Ostream &Str = Func->getContext()->getStrDump(); | 738 Ostream &Str = Func->getContext()->getStrDump(); |
| 738 dumpDest(Func); | 739 dumpDest(Func); |
| 739 Str << " = "; | 740 Str << " = "; |
| 740 Str << Opcode << "." << getDest()->getType() << " "; | 741 Str << Opcode << "." << getDest()->getType() << " "; |
| 741 dumpSources(Func); | 742 dumpSources(Func); |
| 742 } | 743 } |
| 743 static bool classof(const Inst *Inst) { return isClassof(Inst, K); } | 744 static bool classof(const Inst *Inst) { return isClassof(Inst, K); } |
| (...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1372 // default implementations. Without this, there is the possibility of ODR | 1373 // default implementations. Without this, there is the possibility of ODR |
| 1373 // violations and link errors. | 1374 // violations and link errors. |
| 1374 | 1375 |
| 1375 template <> void InstARM32Ldr::emit(const Cfg *Func) const; | 1376 template <> void InstARM32Ldr::emit(const Cfg *Func) const; |
| 1376 template <> void InstARM32Movw::emit(const Cfg *Func) const; | 1377 template <> void InstARM32Movw::emit(const Cfg *Func) const; |
| 1377 template <> void InstARM32Movt::emit(const Cfg *Func) const; | 1378 template <> void InstARM32Movt::emit(const Cfg *Func) const; |
| 1378 | 1379 |
| 1379 } // end of namespace Ice | 1380 } // end of namespace Ice |
| 1380 | 1381 |
| 1381 #endif // SUBZERO_SRC_ICEINSTARM32_H | 1382 #endif // SUBZERO_SRC_ICEINSTARM32_H |
| OLD | NEW |