| 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 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 << getSrc(0)->getType() << " "; | 692 << getSrc(0)->getType() << " "; |
| 693 dumpSources(Func); | 693 dumpSources(Func); |
| 694 } | 694 } |
| 695 | 695 |
| 696 void InstLoad::dump(const Cfg *Func) const { | 696 void InstLoad::dump(const Cfg *Func) const { |
| 697 if (!ALLOW_DUMP) | 697 if (!ALLOW_DUMP) |
| 698 return; | 698 return; |
| 699 Ostream &Str = Func->getContext()->getStrDump(); | 699 Ostream &Str = Func->getContext()->getStrDump(); |
| 700 dumpDest(Func); | 700 dumpDest(Func); |
| 701 Type Ty = getDest()->getType(); | 701 Type Ty = getDest()->getType(); |
| 702 Str << " = load " << Ty << "* "; | 702 Str << " = load " << Ty << ", " << Ty << "* "; |
| 703 dumpSources(Func); | 703 dumpSources(Func); |
| 704 Str << ", align " << typeAlignInBytes(Ty); | 704 Str << ", align " << typeAlignInBytes(Ty); |
| 705 } | 705 } |
| 706 | 706 |
| 707 void InstStore::dump(const Cfg *Func) const { | 707 void InstStore::dump(const Cfg *Func) const { |
| 708 if (!ALLOW_DUMP) | 708 if (!ALLOW_DUMP) |
| 709 return; | 709 return; |
| 710 Ostream &Str = Func->getContext()->getStrDump(); | 710 Ostream &Str = Func->getContext()->getStrDump(); |
| 711 Type Ty = getData()->getType(); | 711 Type Ty = getData()->getType(); |
| 712 Str << "store " << Ty << " "; | 712 Str << "store " << Ty << " "; |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 883 // preserve these. | 883 // preserve these. |
| 884 return true; | 884 return true; |
| 885 } | 885 } |
| 886 if (!Dest->hasReg() && !SrcVar->hasReg() && | 886 if (!Dest->hasReg() && !SrcVar->hasReg() && |
| 887 Dest->getStackOffset() == SrcVar->getStackOffset()) | 887 Dest->getStackOffset() == SrcVar->getStackOffset()) |
| 888 return true; | 888 return true; |
| 889 return false; | 889 return false; |
| 890 } | 890 } |
| 891 | 891 |
| 892 } // end of namespace Ice | 892 } // end of namespace Ice |
| OLD | NEW |