| 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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 Str << " //"; | 451 Str << " //"; |
| 452 dump(Func); | 452 dump(Func); |
| 453 dumpExtras(Func); | 453 dumpExtras(Func); |
| 454 Str << "\n"; | 454 Str << "\n"; |
| 455 } | 455 } |
| 456 | 456 |
| 457 void Inst::emit(const Cfg * /*Func*/) const { | 457 void Inst::emit(const Cfg * /*Func*/) const { |
| 458 llvm_unreachable("emit() called on a non-lowered instruction"); | 458 llvm_unreachable("emit() called on a non-lowered instruction"); |
| 459 } | 459 } |
| 460 | 460 |
| 461 void Inst::emitIAS(const Cfg *Func) const { emit(Func); } |
| 462 |
| 461 void Inst::dump(const Cfg *Func) const { | 463 void Inst::dump(const Cfg *Func) const { |
| 462 Ostream &Str = Func->getContext()->getStrDump(); | 464 Ostream &Str = Func->getContext()->getStrDump(); |
| 463 dumpDest(Func); | 465 dumpDest(Func); |
| 464 Str << " =~ "; | 466 Str << " =~ "; |
| 465 dumpSources(Func); | 467 dumpSources(Func); |
| 466 } | 468 } |
| 467 | 469 |
| 468 void Inst::dumpExtras(const Cfg *Func) const { | 470 void Inst::dumpExtras(const Cfg *Func) const { |
| 469 Ostream &Str = Func->getContext()->getStrDump(); | 471 Ostream &Str = Func->getContext()->getStrDump(); |
| 470 bool First = true; | 472 bool First = true; |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 | 755 |
| 754 void InstTarget::dump(const Cfg *Func) const { | 756 void InstTarget::dump(const Cfg *Func) const { |
| 755 Ostream &Str = Func->getContext()->getStrDump(); | 757 Ostream &Str = Func->getContext()->getStrDump(); |
| 756 Str << "[TARGET] "; | 758 Str << "[TARGET] "; |
| 757 Inst::dump(Func); | 759 Inst::dump(Func); |
| 758 } | 760 } |
| 759 | 761 |
| 760 void InstTarget::dumpExtras(const Cfg *Func) const { Inst::dumpExtras(Func); } | 762 void InstTarget::dumpExtras(const Cfg *Func) const { Inst::dumpExtras(Func); } |
| 761 | 763 |
| 762 } // end of namespace Ice | 764 } // end of namespace Ice |
| OLD | NEW |