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

Side by Side Diff: src/IceInst.cpp

Issue 574133002: Add initial integrated assembler w/ some Xmm ops. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: remove duplicate pxor, and use enum 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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 Str << " //"; 451 Str << " //";
452 dump(Func); 452 dump(Func);
453 dumpExtras(Func); 453 dumpExtras(Func);
454 Str << "\n"; 454 Str << "\n";
455 } 455 }
456 456
457 void Inst::emit(const Cfg * /*Func*/) const { 457 void Inst::emit(const Cfg * /*Func*/) const {
458 llvm_unreachable("emit() called on a non-lowered instruction"); 458 llvm_unreachable("emit() called on a non-lowered instruction");
459 } 459 }
460 460
461 void Inst::emitIAS(const Cfg *Func) const { emit(Func); }
462
461 void Inst::dump(const Cfg *Func) const { 463 void Inst::dump(const Cfg *Func) const {
462 Ostream &Str = Func->getContext()->getStrDump(); 464 Ostream &Str = Func->getContext()->getStrDump();
463 dumpDest(Func); 465 dumpDest(Func);
464 Str << " =~ "; 466 Str << " =~ ";
465 dumpSources(Func); 467 dumpSources(Func);
466 } 468 }
467 469
468 void Inst::dumpExtras(const Cfg *Func) const { 470 void Inst::dumpExtras(const Cfg *Func) const {
469 Ostream &Str = Func->getContext()->getStrDump(); 471 Ostream &Str = Func->getContext()->getStrDump();
470 bool First = true; 472 bool First = true;
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 755
754 void InstTarget::dump(const Cfg *Func) const { 756 void InstTarget::dump(const Cfg *Func) const {
755 Ostream &Str = Func->getContext()->getStrDump(); 757 Ostream &Str = Func->getContext()->getStrDump();
756 Str << "[TARGET] "; 758 Str << "[TARGET] ";
757 Inst::dump(Func); 759 Inst::dump(Func);
758 } 760 }
759 761
760 void InstTarget::dumpExtras(const Cfg *Func) const { Inst::dumpExtras(Func); } 762 void InstTarget::dumpExtras(const Cfg *Func) const { Inst::dumpExtras(Func); }
761 763
762 } // end of namespace Ice 764 } // 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