Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Side by Side Diff: src/IceInstARM32.cpp

Issue 1638123002: Fix template method InstARM32FourAddrFP to only have one definition. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceInstARM32.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 Str << ", "; 220 Str << ", ";
221 Inst->getSrc(2)->emit(Func); 221 Inst->getSrc(2)->emit(Func);
222 } 222 }
223 223
224 template <InstARM32::InstKindARM32 K> 224 template <InstARM32::InstKindARM32 K>
225 void InstARM32FourAddrGPR<K>::emitIAS(const Cfg *Func) const { 225 void InstARM32FourAddrGPR<K>::emitIAS(const Cfg *Func) const {
226 emitUsingTextFixup(Func); 226 emitUsingTextFixup(Func);
227 } 227 }
228 228
229 template <InstARM32::InstKindARM32 K> 229 template <InstARM32::InstKindARM32 K>
230 void InstARM32FourAddrFP<K>::emitIAS(const Cfg *Func) const {
231 emitUsingTextFixup(Func);
232 }
233
234 template <InstARM32::InstKindARM32 K>
230 void InstARM32ThreeAddrFP<K>::emitIAS(const Cfg *Func) const { 235 void InstARM32ThreeAddrFP<K>::emitIAS(const Cfg *Func) const {
231 emitUsingTextFixup(Func); 236 emitUsingTextFixup(Func);
232 } 237 }
233 238
234 template <> void InstARM32Mla::emitIAS(const Cfg *Func) const { 239 template <> void InstARM32Mla::emitIAS(const Cfg *Func) const {
235 assert(getSrcSize() == 3); 240 assert(getSrcSize() == 3);
236 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 241 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
237 Asm->mla(getDest(), getSrc(0), getSrc(1), getSrc(2), getPredicate()); 242 Asm->mla(getDest(), getSrc(0), getSrc(1), getSrc(2), getPredicate());
238 if (Asm->needsTextFixup()) 243 if (Asm->needsTextFixup())
239 emitUsingTextFixup(Func); 244 emitUsingTextFixup(Func);
(...skipping 2111 matching lines...) Expand 10 before | Expand all | Expand 10 after
2351 2356
2352 template class InstARM32FourAddrGPR<InstARM32::Mla>; 2357 template class InstARM32FourAddrGPR<InstARM32::Mla>;
2353 template class InstARM32FourAddrGPR<InstARM32::Mls>; 2358 template class InstARM32FourAddrGPR<InstARM32::Mls>;
2354 2359
2355 template class InstARM32CmpLike<InstARM32::Cmn>; 2360 template class InstARM32CmpLike<InstARM32::Cmn>;
2356 template class InstARM32CmpLike<InstARM32::Cmp>; 2361 template class InstARM32CmpLike<InstARM32::Cmp>;
2357 template class InstARM32CmpLike<InstARM32::Tst>; 2362 template class InstARM32CmpLike<InstARM32::Tst>;
2358 2363
2359 } // end of namespace ARM32 2364 } // end of namespace ARM32
2360 } // end of namespace Ice 2365 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceInstARM32.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698