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 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 Str << "bundle_unlock"; | 940 Str << "bundle_unlock"; |
941 } | 941 } |
942 | 942 |
943 void InstFakeDef::emit(const Cfg *Func) const { | 943 void InstFakeDef::emit(const Cfg *Func) const { |
944 if (!BuildDefs::dump()) | 944 if (!BuildDefs::dump()) |
945 return; | 945 return; |
946 // Go ahead and "emit" these for now, since they are relatively rare. | 946 // Go ahead and "emit" these for now, since they are relatively rare. |
947 Ostream &Str = Func->getContext()->getStrEmit(); | 947 Ostream &Str = Func->getContext()->getStrEmit(); |
948 Str << "\t# "; | 948 Str << "\t# "; |
949 getDest()->emit(Func); | 949 getDest()->emit(Func); |
950 Str << " = def.pseudo "; | 950 Str << " = def.pseudo"; |
| 951 if (getSrcSize() > 0) |
| 952 Str << " "; |
951 emitSources(Func); | 953 emitSources(Func); |
952 Str << "\n"; | 954 Str << "\n"; |
953 } | 955 } |
954 | 956 |
955 void InstFakeDef::dump(const Cfg *Func) const { | 957 void InstFakeDef::dump(const Cfg *Func) const { |
956 if (!BuildDefs::dump()) | 958 if (!BuildDefs::dump()) |
957 return; | 959 return; |
958 Ostream &Str = Func->getContext()->getStrDump(); | 960 Ostream &Str = Func->getContext()->getStrDump(); |
959 dumpDest(Func); | 961 dumpDest(Func); |
960 Str << " = def.pseudo "; | 962 Str << " = def.pseudo "; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1009 // upper 32 bits of rax. We need to recognize and preserve these. | 1011 // upper 32 bits of rax. We need to recognize and preserve these. |
1010 return true; | 1012 return true; |
1011 } | 1013 } |
1012 if (!Dest->hasReg() && !SrcVar->hasReg() && | 1014 if (!Dest->hasReg() && !SrcVar->hasReg() && |
1013 Dest->getStackOffset() == SrcVar->getStackOffset()) | 1015 Dest->getStackOffset() == SrcVar->getStackOffset()) |
1014 return true; | 1016 return true; |
1015 return false; | 1017 return false; |
1016 } | 1018 } |
1017 | 1019 |
1018 } // end of namespace Ice | 1020 } // end of namespace Ice |
OLD | NEW |