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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 static InstARM32UnaryopGPR *create(Cfg *Func, Variable *Dest, Operand *Src, | 411 static InstARM32UnaryopGPR *create(Cfg *Func, Variable *Dest, Operand *Src, |
412 CondARM32::Cond Predicate) { | 412 CondARM32::Cond Predicate) { |
413 return new (Func->allocate<InstARM32UnaryopGPR>()) | 413 return new (Func->allocate<InstARM32UnaryopGPR>()) |
414 InstARM32UnaryopGPR(Func, Dest, Src, Predicate); | 414 InstARM32UnaryopGPR(Func, Dest, Src, Predicate); |
415 } | 415 } |
416 void emit(const Cfg *Func) const override { | 416 void emit(const Cfg *Func) const override { |
417 if (!BuildDefs::dump()) | 417 if (!BuildDefs::dump()) |
418 return; | 418 return; |
419 emitUnaryopGPR(Opcode, this, Func, NeedsWidthSuffix); | 419 emitUnaryopGPR(Opcode, this, Func, NeedsWidthSuffix); |
420 } | 420 } |
| 421 void emitIAS(const Cfg *Func) const override; |
421 void dump(const Cfg *Func) const override { | 422 void dump(const Cfg *Func) const override { |
422 if (!BuildDefs::dump()) | 423 if (!BuildDefs::dump()) |
423 return; | 424 return; |
424 Ostream &Str = Func->getContext()->getStrDump(); | 425 Ostream &Str = Func->getContext()->getStrDump(); |
425 dumpDest(Func); | 426 dumpDest(Func); |
426 Str << " = "; | 427 Str << " = "; |
427 dumpOpcodePred(Str, Opcode, getDest()->getType()); | 428 dumpOpcodePred(Str, Opcode, getDest()->getType()); |
428 Str << " "; | 429 Str << " "; |
429 dumpSources(Func); | 430 dumpSources(Func); |
430 } | 431 } |
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1229 // default implementations. Without this, there is the possibility of ODR | 1230 // default implementations. Without this, there is the possibility of ODR |
1230 // violations and link errors. | 1231 // violations and link errors. |
1231 | 1232 |
1232 template <> void InstARM32Ldr::emit(const Cfg *Func) const; | 1233 template <> void InstARM32Ldr::emit(const Cfg *Func) const; |
1233 template <> void InstARM32Movw::emit(const Cfg *Func) const; | 1234 template <> void InstARM32Movw::emit(const Cfg *Func) const; |
1234 template <> void InstARM32Movt::emit(const Cfg *Func) const; | 1235 template <> void InstARM32Movt::emit(const Cfg *Func) const; |
1235 | 1236 |
1236 } // end of namespace Ice | 1237 } // end of namespace Ice |
1237 | 1238 |
1238 #endif // SUBZERO_SRC_ICEINSTARM32_H | 1239 #endif // SUBZERO_SRC_ICEINSTARM32_H |
OLD | NEW |