OLD | NEW |
1 //===- subzero/src/IceInstARM32.cpp - ARM32 instruction implementation ----===// | 1 //===- subzero/src/IceInstARM32.cpp - ARM32 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 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 getCallTarget()->dump(Func); | 794 getCallTarget()->dump(Func); |
795 } | 795 } |
796 | 796 |
797 void InstARM32Label::emit(const Cfg *Func) const { | 797 void InstARM32Label::emit(const Cfg *Func) const { |
798 if (!BuildDefs::dump()) | 798 if (!BuildDefs::dump()) |
799 return; | 799 return; |
800 Ostream &Str = Func->getContext()->getStrEmit(); | 800 Ostream &Str = Func->getContext()->getStrEmit(); |
801 Str << getName(Func) << ":"; | 801 Str << getName(Func) << ":"; |
802 } | 802 } |
803 | 803 |
| 804 void InstARM32Label::emitIAS(const Cfg *Func) const { |
| 805 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 806 Asm->bindLocalLabel(Number); |
| 807 if (Asm->needsTextFixup()) |
| 808 emitUsingTextFixup(Func); |
| 809 } |
| 810 |
804 void InstARM32Label::dump(const Cfg *Func) const { | 811 void InstARM32Label::dump(const Cfg *Func) const { |
805 if (!BuildDefs::dump()) | 812 if (!BuildDefs::dump()) |
806 return; | 813 return; |
807 Ostream &Str = Func->getContext()->getStrDump(); | 814 Ostream &Str = Func->getContext()->getStrDump(); |
808 Str << getName(Func) << ":"; | 815 Str << getName(Func) << ":"; |
809 } | 816 } |
810 | 817 |
811 template <> void InstARM32Ldr::emit(const Cfg *Func) const { | 818 template <> void InstARM32Ldr::emit(const Cfg *Func) const { |
812 if (!BuildDefs::dump()) | 819 if (!BuildDefs::dump()) |
813 return; | 820 return; |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1417 template class InstARM32ThreeAddrGPR<InstARM32::Udiv>; | 1424 template class InstARM32ThreeAddrGPR<InstARM32::Udiv>; |
1418 | 1425 |
1419 template class InstARM32ThreeAddrFP<InstARM32::Vadd>; | 1426 template class InstARM32ThreeAddrFP<InstARM32::Vadd>; |
1420 template class InstARM32ThreeAddrFP<InstARM32::Vdiv>; | 1427 template class InstARM32ThreeAddrFP<InstARM32::Vdiv>; |
1421 template class InstARM32ThreeAddrFP<InstARM32::Vmul>; | 1428 template class InstARM32ThreeAddrFP<InstARM32::Vmul>; |
1422 template class InstARM32ThreeAddrFP<InstARM32::Vsub>; | 1429 template class InstARM32ThreeAddrFP<InstARM32::Vsub>; |
1423 | 1430 |
1424 template class InstARM32TwoAddrGPR<InstARM32::Movt>; | 1431 template class InstARM32TwoAddrGPR<InstARM32::Movt>; |
1425 | 1432 |
1426 } // end of namespace Ice | 1433 } // end of namespace Ice |
OLD | NEW |