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

Side by Side Diff: src/IceInst.cpp

Issue 1523873003: Subzero: Separate "\t" from "opcode" in asm emission. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Use string concatenation where possible Created 5 years 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
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 836 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 847
848 void InstBundleLock::emit(const Cfg *Func) const { 848 void InstBundleLock::emit(const Cfg *Func) const {
849 if (!BuildDefs::dump()) 849 if (!BuildDefs::dump())
850 return; 850 return;
851 Ostream &Str = Func->getContext()->getStrEmit(); 851 Ostream &Str = Func->getContext()->getStrEmit();
852 Str << "\t.bundle_lock"; 852 Str << "\t.bundle_lock";
853 switch (BundleOption) { 853 switch (BundleOption) {
854 case Opt_None: 854 case Opt_None:
855 break; 855 break;
856 case Opt_AlignToEnd: 856 case Opt_AlignToEnd:
857 Str << "\talign_to_end"; 857 Str << "\t"
858 "align_to_end";
858 break; 859 break;
859 } 860 }
860 Str << "\n"; 861 Str << "\n";
861 } 862 }
862 863
863 void InstBundleLock::dump(const Cfg *Func) const { 864 void InstBundleLock::dump(const Cfg *Func) const {
864 if (!BuildDefs::dump()) 865 if (!BuildDefs::dump())
865 return; 866 return;
866 Ostream &Str = Func->getContext()->getStrDump(); 867 Ostream &Str = Func->getContext()->getStrDump();
867 Str << "bundle_lock"; 868 Str << "bundle_lock";
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 // upper 32 bits of rax. We need to recognize and preserve these. 959 // upper 32 bits of rax. We need to recognize and preserve these.
959 return true; 960 return true;
960 } 961 }
961 if (!Dest->hasReg() && !SrcVar->hasReg() && 962 if (!Dest->hasReg() && !SrcVar->hasReg() &&
962 Dest->getStackOffset() == SrcVar->getStackOffset()) 963 Dest->getStackOffset() == SrcVar->getStackOffset())
963 return true; 964 return true;
964 return false; 965 return false;
965 } 966 }
966 967
967 } // end of namespace Ice 968 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceAssemblerARM32.cpp ('k') | src/IceInstARM32.cpp » ('j') | src/IceInstARM32.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698