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

Side by Side Diff: src/IceInstARM32.cpp

Issue 1407273006: Generate block labels in the ARM hybrid assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nit. Created 5 years, 2 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') | tests_lit/assembler/arm32/add.ll » ('j') | 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 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/IceInstARM32.h ('k') | tests_lit/assembler/arm32/add.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698