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

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: lit test to check encodings, swap complexi8 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
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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 Str << " //"; 466 Str << " //";
467 dump(Func); 467 dump(Func);
468 dumpExtras(Func); 468 dumpExtras(Func);
469 Str << "\n"; 469 Str << "\n";
470 } 470 }
471 471
472 void Inst::emit(const Cfg * /*Func*/) const { 472 void Inst::emit(const Cfg * /*Func*/) const {
473 llvm_unreachable("emit() called on a non-lowered instruction"); 473 llvm_unreachable("emit() called on a non-lowered instruction");
474 } 474 }
475 475
476 void Inst::emitIAS(const Cfg *Func) const { emit(Func); }
477
476 void Inst::dump(const Cfg *Func) const { 478 void Inst::dump(const Cfg *Func) const {
477 Ostream &Str = Func->getContext()->getStrDump(); 479 Ostream &Str = Func->getContext()->getStrDump();
478 dumpDest(Func); 480 dumpDest(Func);
479 Str << " =~ "; 481 Str << " =~ ";
480 dumpSources(Func); 482 dumpSources(Func);
481 } 483 }
482 484
483 void Inst::dumpExtras(const Cfg *Func) const { 485 void Inst::dumpExtras(const Cfg *Func) const {
484 Ostream &Str = Func->getContext()->getStrDump(); 486 Ostream &Str = Func->getContext()->getStrDump();
485 bool First = true; 487 bool First = true;
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 763
762 void InstTarget::dump(const Cfg *Func) const { 764 void InstTarget::dump(const Cfg *Func) const {
763 Ostream &Str = Func->getContext()->getStrDump(); 765 Ostream &Str = Func->getContext()->getStrDump();
764 Str << "[TARGET] "; 766 Str << "[TARGET] ";
765 Inst::dump(Func); 767 Inst::dump(Func);
766 } 768 }
767 769
768 void InstTarget::dumpExtras(const Cfg *Func) const { Inst::dumpExtras(Func); } 770 void InstTarget::dumpExtras(const Cfg *Func) const { Inst::dumpExtras(Func); }
769 771
770 } // end of namespace Ice 772 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceInst.h ('k') | src/IceInstX8632.h » ('j') | src/IceInstX8632.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698