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

Side by Side Diff: src/IceInst.cpp

Issue 476323004: Start adding an integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: make fixups part of address Created 6 years, 3 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/IceInst.h ('k') | src/IceInstX8632.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/IceInst.cpp - High-level instruction implementation ----===// 1 //===- subzero/src/IceInst.cpp - High-level 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 // This file implements the Inst class, primarily the various 10 // This file implements the Inst class, primarily the various
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 Str << " //"; 467 Str << " //";
468 dump(Func); 468 dump(Func);
469 dumpExtras(Func); 469 dumpExtras(Func);
470 Str << "\n"; 470 Str << "\n";
471 } 471 }
472 472
473 void Inst::emit(const Cfg * /*Func*/) const { 473 void Inst::emit(const Cfg * /*Func*/) const {
474 llvm_unreachable("emit() called on a non-lowered instruction"); 474 llvm_unreachable("emit() called on a non-lowered instruction");
475 } 475 }
476 476
477 void Inst::emitIAS(const Cfg *Func) const { emit(Func); }
478
477 void Inst::dump(const Cfg *Func) const { 479 void Inst::dump(const Cfg *Func) const {
478 Ostream &Str = Func->getContext()->getStrDump(); 480 Ostream &Str = Func->getContext()->getStrDump();
479 dumpDest(Func); 481 dumpDest(Func);
480 Str << " =~ "; 482 Str << " =~ ";
481 dumpSources(Func); 483 dumpSources(Func);
482 } 484 }
483 485
484 void Inst::dumpExtras(const Cfg *Func) const { 486 void Inst::dumpExtras(const Cfg *Func) const {
485 Ostream &Str = Func->getContext()->getStrDump(); 487 Ostream &Str = Func->getContext()->getStrDump();
486 bool First = true; 488 bool First = true;
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 765
764 void InstTarget::dump(const Cfg *Func) const { 766 void InstTarget::dump(const Cfg *Func) const {
765 Ostream &Str = Func->getContext()->getStrDump(); 767 Ostream &Str = Func->getContext()->getStrDump();
766 Str << "[TARGET] "; 768 Str << "[TARGET] ";
767 Inst::dump(Func); 769 Inst::dump(Func);
768 } 770 }
769 771
770 void InstTarget::dumpExtras(const Cfg *Func) const { Inst::dumpExtras(Func); } 772 void InstTarget::dumpExtras(const Cfg *Func) const { Inst::dumpExtras(Func); }
771 773
772 } // end of namespace Ice 774 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceInst.h ('k') | src/IceInstX8632.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698