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 1745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1756 if (!BuildDefs::dump()) | 1756 if (!BuildDefs::dump()) |
1757 return; | 1757 return; |
1758 Ostream &Str = Func->getContext()->getStrEmit(); | 1758 Ostream &Str = Func->getContext()->getStrEmit(); |
1759 assert(getSrcSize() == 0); | 1759 assert(getSrcSize() == 0); |
1760 Str << "\t" | 1760 Str << "\t" |
1761 "dmb" | 1761 "dmb" |
1762 "\t" | 1762 "\t" |
1763 "sy"; | 1763 "sy"; |
1764 } | 1764 } |
1765 | 1765 |
| 1766 void InstARM32Dmb::emitIAS(const Cfg *Func) const { |
| 1767 assert(getSrcSize() == 0); |
| 1768 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 1769 constexpr ARM32::IValueT SyOption = 0xF; // i.e. 1111 |
| 1770 Asm->dmb(SyOption); |
| 1771 if (Asm->needsTextFixup()) |
| 1772 emitUsingTextFixup(Func); |
| 1773 } |
| 1774 |
1766 void InstARM32Dmb::dump(const Cfg *Func) const { | 1775 void InstARM32Dmb::dump(const Cfg *Func) const { |
1767 if (!BuildDefs::dump()) | 1776 if (!BuildDefs::dump()) |
1768 return; | 1777 return; |
1769 Func->getContext()->getStrDump() << "dmb\tsy"; | 1778 Func->getContext()->getStrDump() << "dmb\tsy"; |
1770 } | 1779 } |
1771 | 1780 |
1772 void OperandARM32Mem::emit(const Cfg *Func) const { | 1781 void OperandARM32Mem::emit(const Cfg *Func) const { |
1773 if (!BuildDefs::dump()) | 1782 if (!BuildDefs::dump()) |
1774 return; | 1783 return; |
1775 Ostream &Str = Func->getContext()->getStrEmit(); | 1784 Ostream &Str = Func->getContext()->getStrEmit(); |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2011 template class InstARM32UnaryopFP<InstARM32::Vsqrt>; | 2020 template class InstARM32UnaryopFP<InstARM32::Vsqrt>; |
2012 | 2021 |
2013 template class InstARM32FourAddrGPR<InstARM32::Mla>; | 2022 template class InstARM32FourAddrGPR<InstARM32::Mla>; |
2014 template class InstARM32FourAddrGPR<InstARM32::Mls>; | 2023 template class InstARM32FourAddrGPR<InstARM32::Mls>; |
2015 | 2024 |
2016 template class InstARM32CmpLike<InstARM32::Cmn>; | 2025 template class InstARM32CmpLike<InstARM32::Cmn>; |
2017 template class InstARM32CmpLike<InstARM32::Cmp>; | 2026 template class InstARM32CmpLike<InstARM32::Cmp>; |
2018 template class InstARM32CmpLike<InstARM32::Tst>; | 2027 template class InstARM32CmpLike<InstARM32::Tst>; |
2019 | 2028 |
2020 } // end of namespace Ice | 2029 } // end of namespace Ice |
OLD | NEW |