| 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 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 << "\talign_to_end"; |
| 858 break; | 858 break; |
| 859 } | 859 } |
| 860 Str << "\n"; |
| 860 } | 861 } |
| 861 | 862 |
| 862 void InstBundleLock::dump(const Cfg *Func) const { | 863 void InstBundleLock::dump(const Cfg *Func) const { |
| 863 if (!BuildDefs::dump()) | 864 if (!BuildDefs::dump()) |
| 864 return; | 865 return; |
| 865 Ostream &Str = Func->getContext()->getStrDump(); | 866 Ostream &Str = Func->getContext()->getStrDump(); |
| 866 Str << "bundle_lock"; | 867 Str << "bundle_lock"; |
| 867 switch (BundleOption) { | 868 switch (BundleOption) { |
| 868 case Opt_None: | 869 case Opt_None: |
| 869 break; | 870 break; |
| 870 case Opt_AlignToEnd: | 871 case Opt_AlignToEnd: |
| 871 Str << " align_to_end"; | 872 Str << " align_to_end"; |
| 872 break; | 873 break; |
| 873 } | 874 } |
| 874 } | 875 } |
| 875 | 876 |
| 876 void InstBundleUnlock::emit(const Cfg *Func) const { | 877 void InstBundleUnlock::emit(const Cfg *Func) const { |
| 877 if (!BuildDefs::dump()) | 878 if (!BuildDefs::dump()) |
| 878 return; | 879 return; |
| 879 Ostream &Str = Func->getContext()->getStrEmit(); | 880 Ostream &Str = Func->getContext()->getStrEmit(); |
| 880 Str << "\t.bundle_unlock"; | 881 Str << "\t.bundle_unlock"; |
| 882 Str << "\n"; |
| 881 } | 883 } |
| 882 | 884 |
| 883 void InstBundleUnlock::dump(const Cfg *Func) const { | 885 void InstBundleUnlock::dump(const Cfg *Func) const { |
| 884 if (!BuildDefs::dump()) | 886 if (!BuildDefs::dump()) |
| 885 return; | 887 return; |
| 886 Ostream &Str = Func->getContext()->getStrDump(); | 888 Ostream &Str = Func->getContext()->getStrDump(); |
| 887 Str << "bundle_unlock"; | 889 Str << "bundle_unlock"; |
| 888 } | 890 } |
| 889 | 891 |
| 890 void InstFakeDef::emit(const Cfg *Func) const { | 892 void InstFakeDef::emit(const Cfg *Func) const { |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 956 // upper 32 bits of rax. We need to recognize and preserve these. | 958 // upper 32 bits of rax. We need to recognize and preserve these. |
| 957 return true; | 959 return true; |
| 958 } | 960 } |
| 959 if (!Dest->hasReg() && !SrcVar->hasReg() && | 961 if (!Dest->hasReg() && !SrcVar->hasReg() && |
| 960 Dest->getStackOffset() == SrcVar->getStackOffset()) | 962 Dest->getStackOffset() == SrcVar->getStackOffset()) |
| 961 return true; | 963 return true; |
| 962 return false; | 964 return false; |
| 963 } | 965 } |
| 964 | 966 |
| 965 } // end of namespace Ice | 967 } // end of namespace Ice |
| OLD | NEW |