| 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 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1203 template <InstARM32::InstKindARM32 K> | 1203 template <InstARM32::InstKindARM32 K> |
| 1204 void InstARM32TwoAddrGPR<K>::emitIAS(const Cfg *Func) const { | 1204 void InstARM32TwoAddrGPR<K>::emitIAS(const Cfg *Func) const { |
| 1205 emitUsingTextFixup(Func); | 1205 emitUsingTextFixup(Func); |
| 1206 } | 1206 } |
| 1207 | 1207 |
| 1208 template <InstARM32::InstKindARM32 K, bool Nws> | 1208 template <InstARM32::InstKindARM32 K, bool Nws> |
| 1209 void InstARM32UnaryopGPR<K, Nws>::emitIAS(const Cfg *Func) const { | 1209 void InstARM32UnaryopGPR<K, Nws>::emitIAS(const Cfg *Func) const { |
| 1210 emitUsingTextFixup(Func); | 1210 emitUsingTextFixup(Func); |
| 1211 } | 1211 } |
| 1212 | 1212 |
| 1213 template <> void InstARM32Rbit::emitIAS(const Cfg *Func) const { |
| 1214 assert(getSrcSize() == 1); |
| 1215 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 1216 Asm->rbit(getDest(), getSrc(0), getPredicate()); |
| 1217 if (Asm->needsTextFixup()) |
| 1218 emitUsingTextFixup(Func); |
| 1219 } |
| 1220 |
| 1213 template <> void InstARM32Rev::emitIAS(const Cfg *Func) const { | 1221 template <> void InstARM32Rev::emitIAS(const Cfg *Func) const { |
| 1214 assert(getSrcSize() == 1); | 1222 assert(getSrcSize() == 1); |
| 1215 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 1223 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 1216 Asm->rev(getDest(), getSrc(0), getPredicate()); | 1224 Asm->rev(getDest(), getSrc(0), getPredicate()); |
| 1217 if (Asm->needsTextFixup()) | 1225 if (Asm->needsTextFixup()) |
| 1218 emitUsingTextFixup(Func); | 1226 emitUsingTextFixup(Func); |
| 1219 } | 1227 } |
| 1220 | 1228 |
| 1221 template <> void InstARM32Movw::emit(const Cfg *Func) const { | 1229 template <> void InstARM32Movw::emit(const Cfg *Func) const { |
| 1222 if (!BuildDefs::dump()) | 1230 if (!BuildDefs::dump()) |
| (...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2073 template class InstARM32UnaryopFP<InstARM32::Vsqrt>; | 2081 template class InstARM32UnaryopFP<InstARM32::Vsqrt>; |
| 2074 | 2082 |
| 2075 template class InstARM32FourAddrGPR<InstARM32::Mla>; | 2083 template class InstARM32FourAddrGPR<InstARM32::Mla>; |
| 2076 template class InstARM32FourAddrGPR<InstARM32::Mls>; | 2084 template class InstARM32FourAddrGPR<InstARM32::Mls>; |
| 2077 | 2085 |
| 2078 template class InstARM32CmpLike<InstARM32::Cmn>; | 2086 template class InstARM32CmpLike<InstARM32::Cmn>; |
| 2079 template class InstARM32CmpLike<InstARM32::Cmp>; | 2087 template class InstARM32CmpLike<InstARM32::Cmp>; |
| 2080 template class InstARM32CmpLike<InstARM32::Tst>; | 2088 template class InstARM32CmpLike<InstARM32::Tst>; |
| 2081 | 2089 |
| 2082 } // end of namespace Ice | 2090 } // end of namespace Ice |
| OLD | NEW |