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 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |