Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Side by Side Diff: src/IceInst.cpp

Issue 1431353003: Subzero: For filetype=asm, don't print a blank line for pseudo instrs. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceInstARM32.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceInstARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698