| 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 769 | 771 |
| 770 void InstTarget::dump(const Cfg *Func) const { | 772 void InstTarget::dump(const Cfg *Func) const { |
| 771 Ostream &Str = Func->getContext()->getStrDump(); | 773 Ostream &Str = Func->getContext()->getStrDump(); |
| 772 Str << "[TARGET] "; | 774 Str << "[TARGET] "; |
| 773 Inst::dump(Func); | 775 Inst::dump(Func); |
| 774 } | 776 } |
| 775 | 777 |
| 776 void InstTarget::dumpExtras(const Cfg *Func) const { Inst::dumpExtras(Func); } | 778 void InstTarget::dumpExtras(const Cfg *Func) const { Inst::dumpExtras(Func); } |
| 777 | 779 |
| 778 } // end of namespace Ice | 780 } // end of namespace Ice |
| OLD | NEW |