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

Side by Side Diff: src/IceInstX86BaseImpl.h

Issue 1651163002: Subzero. Enables moar complex relocation offsets. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: make format 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/IceInstX86Base.h ('k') | src/IceOperand.h » ('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/IceInstX86BaseImpl.h - Generic X86 instructions -*- C++ -*=// 1 //===- subzero/src/IceInstX86BaseImpl.h - Generic X86 instructions -*- C++ -*=//
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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 void InstImpl<TraitsType>::InstX86Label::emit(const Cfg *Func) const { 452 void InstImpl<TraitsType>::InstX86Label::emit(const Cfg *Func) const {
453 if (!BuildDefs::dump()) 453 if (!BuildDefs::dump())
454 return; 454 return;
455 Ostream &Str = Func->getContext()->getStrEmit(); 455 Ostream &Str = Func->getContext()->getStrEmit();
456 Str << getName(Func) << ":"; 456 Str << getName(Func) << ":";
457 } 457 }
458 458
459 template <typename TraitsType> 459 template <typename TraitsType>
460 void InstImpl<TraitsType>::InstX86Label::emitIAS(const Cfg *Func) const { 460 void InstImpl<TraitsType>::InstX86Label::emitIAS(const Cfg *Func) const {
461 Assembler *Asm = Func->getAssembler<Assembler>(); 461 Assembler *Asm = Func->getAssembler<Assembler>();
462 if (IsReturnLocation) { 462 Asm->bindLocalLabel(Number);
463 Asm->addRelocationAtCurrentPosition(getName(Func)); 463 if (OffsetReloc != nullptr) {
464 Asm->bindRelocOffset(OffsetReloc);
464 } 465 }
465 Asm->bindLocalLabel(Number);
466 } 466 }
467 467
468 template <typename TraitsType> 468 template <typename TraitsType>
469 void InstImpl<TraitsType>::InstX86Label::dump(const Cfg *Func) const { 469 void InstImpl<TraitsType>::InstX86Label::dump(const Cfg *Func) const {
470 if (!BuildDefs::dump()) 470 if (!BuildDefs::dump())
471 return; 471 return;
472 Ostream &Str = Func->getContext()->getStrDump(); 472 Ostream &Str = Func->getContext()->getStrDump();
473 Str << getName(Func) << ":"; 473 Str << getName(Func) << ":";
474 } 474 }
475 475
(...skipping 2430 matching lines...) Expand 10 before | Expand all | Expand 10 after
2906 return; 2906 return;
2907 Ostream &Str = Func->getContext()->getStrDump(); 2907 Ostream &Str = Func->getContext()->getStrDump();
2908 Str << "IACA_END"; 2908 Str << "IACA_END";
2909 } 2909 }
2910 2910
2911 } // end of namespace X86NAMESPACE 2911 } // end of namespace X86NAMESPACE
2912 2912
2913 } // end of namespace Ice 2913 } // end of namespace Ice
2914 2914
2915 #endif // SUBZERO_SRC_ICEINSTX86BASEIMPL_H 2915 #endif // SUBZERO_SRC_ICEINSTX86BASEIMPL_H
OLDNEW
« no previous file with comments | « src/IceInstX86Base.h ('k') | src/IceOperand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698