OLD | NEW |
1 //===- subzero/src/IceInst.cpp - High-level instruction implementation ----===// | 1 //===- subzero/src/IceInst.cpp - High-level 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 // This file implements the Inst class, primarily the various | 10 // This file implements the Inst class, primarily the various |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 Str << " //"; | 467 Str << " //"; |
468 dump(Func); | 468 dump(Func); |
469 dumpExtras(Func); | 469 dumpExtras(Func); |
470 Str << "\n"; | 470 Str << "\n"; |
471 } | 471 } |
472 | 472 |
473 void Inst::emit(const Cfg * /*Func*/) const { | 473 void Inst::emit(const Cfg * /*Func*/) const { |
474 llvm_unreachable("emit() called on a non-lowered instruction"); | 474 llvm_unreachable("emit() called on a non-lowered instruction"); |
475 } | 475 } |
476 | 476 |
| 477 void Inst::emitIAS(const Cfg *Func) const { emit(Func); } |
| 478 |
477 void Inst::dump(const Cfg *Func) const { | 479 void Inst::dump(const Cfg *Func) const { |
478 Ostream &Str = Func->getContext()->getStrDump(); | 480 Ostream &Str = Func->getContext()->getStrDump(); |
479 dumpDest(Func); | 481 dumpDest(Func); |
480 Str << " =~ "; | 482 Str << " =~ "; |
481 dumpSources(Func); | 483 dumpSources(Func); |
482 } | 484 } |
483 | 485 |
484 void Inst::dumpExtras(const Cfg *Func) const { | 486 void Inst::dumpExtras(const Cfg *Func) const { |
485 Ostream &Str = Func->getContext()->getStrDump(); | 487 Ostream &Str = Func->getContext()->getStrDump(); |
486 bool First = true; | 488 bool First = true; |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 | 765 |
764 void InstTarget::dump(const Cfg *Func) const { | 766 void InstTarget::dump(const Cfg *Func) const { |
765 Ostream &Str = Func->getContext()->getStrDump(); | 767 Ostream &Str = Func->getContext()->getStrDump(); |
766 Str << "[TARGET] "; | 768 Str << "[TARGET] "; |
767 Inst::dump(Func); | 769 Inst::dump(Func); |
768 } | 770 } |
769 | 771 |
770 void InstTarget::dumpExtras(const Cfg *Func) const { Inst::dumpExtras(Func); } | 772 void InstTarget::dumpExtras(const Cfg *Func) const { Inst::dumpExtras(Func); } |
771 | 773 |
772 } // end of namespace Ice | 774 } // end of namespace Ice |
OLD | NEW |