| 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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 Str << " //"; | 466 Str << " //"; |
| 467 dump(Func); | 467 dump(Func); |
| 468 dumpExtras(Func); | 468 dumpExtras(Func); |
| 469 Str << "\n"; | 469 Str << "\n"; |
| 470 } | 470 } |
| 471 | 471 |
| 472 void Inst::emit(const Cfg * /*Func*/) const { | 472 void Inst::emit(const Cfg * /*Func*/) const { |
| 473 llvm_unreachable("emit() called on a non-lowered instruction"); | 473 llvm_unreachable("emit() called on a non-lowered instruction"); |
| 474 } | 474 } |
| 475 | 475 |
| 476 void Inst::emitIAS(const Cfg *Func) const { emit(Func); } |
| 477 |
| 476 void Inst::dump(const Cfg *Func) const { | 478 void Inst::dump(const Cfg *Func) const { |
| 477 Ostream &Str = Func->getContext()->getStrDump(); | 479 Ostream &Str = Func->getContext()->getStrDump(); |
| 478 dumpDest(Func); | 480 dumpDest(Func); |
| 479 Str << " =~ "; | 481 Str << " =~ "; |
| 480 dumpSources(Func); | 482 dumpSources(Func); |
| 481 } | 483 } |
| 482 | 484 |
| 483 void Inst::dumpExtras(const Cfg *Func) const { | 485 void Inst::dumpExtras(const Cfg *Func) const { |
| 484 Ostream &Str = Func->getContext()->getStrDump(); | 486 Ostream &Str = Func->getContext()->getStrDump(); |
| 485 bool First = true; | 487 bool First = true; |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 | 763 |
| 762 void InstTarget::dump(const Cfg *Func) const { | 764 void InstTarget::dump(const Cfg *Func) const { |
| 763 Ostream &Str = Func->getContext()->getStrDump(); | 765 Ostream &Str = Func->getContext()->getStrDump(); |
| 764 Str << "[TARGET] "; | 766 Str << "[TARGET] "; |
| 765 Inst::dump(Func); | 767 Inst::dump(Func); |
| 766 } | 768 } |
| 767 | 769 |
| 768 void InstTarget::dumpExtras(const Cfg *Func) const { Inst::dumpExtras(Func); } | 770 void InstTarget::dumpExtras(const Cfg *Func) const { Inst::dumpExtras(Func); } |
| 769 | 771 |
| 770 } // end of namespace Ice | 772 } // end of namespace Ice |
| OLD | NEW |