| 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 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 static InstARM32CmpLike *create(Cfg *Func, Variable *Src0, Operand *Src1, | 710 static InstARM32CmpLike *create(Cfg *Func, Variable *Src0, Operand *Src1, |
| 711 CondARM32::Cond Predicate) { | 711 CondARM32::Cond Predicate) { |
| 712 return new (Func->allocate<InstARM32CmpLike>()) | 712 return new (Func->allocate<InstARM32CmpLike>()) |
| 713 InstARM32CmpLike(Func, Src0, Src1, Predicate); | 713 InstARM32CmpLike(Func, Src0, Src1, Predicate); |
| 714 } | 714 } |
| 715 void emit(const Cfg *Func) const override { | 715 void emit(const Cfg *Func) const override { |
| 716 if (!BuildDefs::dump()) | 716 if (!BuildDefs::dump()) |
| 717 return; | 717 return; |
| 718 emitCmpLike(Opcode, this, Func); | 718 emitCmpLike(Opcode, this, Func); |
| 719 } | 719 } |
| 720 void emitIAS(const Cfg *Func) const override; |
| 720 void dump(const Cfg *Func) const override { | 721 void dump(const Cfg *Func) const override { |
| 721 if (!BuildDefs::dump()) | 722 if (!BuildDefs::dump()) |
| 722 return; | 723 return; |
| 723 Ostream &Str = Func->getContext()->getStrDump(); | 724 Ostream &Str = Func->getContext()->getStrDump(); |
| 724 dumpOpcodePred(Str, Opcode, getSrc(0)->getType()); | 725 dumpOpcodePred(Str, Opcode, getSrc(0)->getType()); |
| 725 Str << " "; | 726 Str << " "; |
| 726 dumpSources(Func); | 727 dumpSources(Func); |
| 727 } | 728 } |
| 728 static bool classof(const Inst *Inst) { return isClassof(Inst, K); } | 729 static bool classof(const Inst *Inst) { return isClassof(Inst, K); } |
| 729 | 730 |
| (...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1232 // default implementations. Without this, there is the possibility of ODR | 1233 // default implementations. Without this, there is the possibility of ODR |
| 1233 // violations and link errors. | 1234 // violations and link errors. |
| 1234 | 1235 |
| 1235 template <> void InstARM32Ldr::emit(const Cfg *Func) const; | 1236 template <> void InstARM32Ldr::emit(const Cfg *Func) const; |
| 1236 template <> void InstARM32Movw::emit(const Cfg *Func) const; | 1237 template <> void InstARM32Movw::emit(const Cfg *Func) const; |
| 1237 template <> void InstARM32Movt::emit(const Cfg *Func) const; | 1238 template <> void InstARM32Movt::emit(const Cfg *Func) const; |
| 1238 | 1239 |
| 1239 } // end of namespace Ice | 1240 } // end of namespace Ice |
| 1240 | 1241 |
| 1241 #endif // SUBZERO_SRC_ICEINSTARM32_H | 1242 #endif // SUBZERO_SRC_ICEINSTARM32_H |
| OLD | NEW |