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 /// \file | 10 /// \file |
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
889 | 889 |
890 void InstFakeDef::emit(const Cfg *Func) const { | 890 void InstFakeDef::emit(const Cfg *Func) const { |
891 if (!BuildDefs::dump()) | 891 if (!BuildDefs::dump()) |
892 return; | 892 return; |
893 // Go ahead and "emit" these for now, since they are relatively rare. | 893 // Go ahead and "emit" these for now, since they are relatively rare. |
894 Ostream &Str = Func->getContext()->getStrEmit(); | 894 Ostream &Str = Func->getContext()->getStrEmit(); |
895 Str << "\t# "; | 895 Str << "\t# "; |
896 getDest()->emit(Func); | 896 getDest()->emit(Func); |
897 Str << " = def.pseudo "; | 897 Str << " = def.pseudo "; |
898 emitSources(Func); | 898 emitSources(Func); |
| 899 Str << "\n"; |
899 } | 900 } |
900 | 901 |
901 void InstFakeDef::dump(const Cfg *Func) const { | 902 void InstFakeDef::dump(const Cfg *Func) const { |
902 if (!BuildDefs::dump()) | 903 if (!BuildDefs::dump()) |
903 return; | 904 return; |
904 Ostream &Str = Func->getContext()->getStrDump(); | 905 Ostream &Str = Func->getContext()->getStrDump(); |
905 dumpDest(Func); | 906 dumpDest(Func); |
906 Str << " = def.pseudo "; | 907 Str << " = def.pseudo "; |
907 dumpSources(Func); | 908 dumpSources(Func); |
908 } | 909 } |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
955 // upper 32 bits of rax. We need to recognize and preserve these. | 956 // upper 32 bits of rax. We need to recognize and preserve these. |
956 return true; | 957 return true; |
957 } | 958 } |
958 if (!Dest->hasReg() && !SrcVar->hasReg() && | 959 if (!Dest->hasReg() && !SrcVar->hasReg() && |
959 Dest->getStackOffset() == SrcVar->getStackOffset()) | 960 Dest->getStackOffset() == SrcVar->getStackOffset()) |
960 return true; | 961 return true; |
961 return false; | 962 return false; |
962 } | 963 } |
963 | 964 |
964 } // end of namespace Ice | 965 } // end of namespace Ice |
OLD | NEW |