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

Side by Side Diff: src/IceInst.cpp

Issue 557533003: Subzero: Make sure alloca with align=0 is handled correctly. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Remap align=0 to align=1 in lowering 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 | « no previous file | src/IceTargetLoweringX8632.cpp » ('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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 void Inst::dumpDest(const Cfg *Func) const { 527 void Inst::dumpDest(const Cfg *Func) const {
528 if (getDest()) 528 if (getDest())
529 getDest()->dump(Func); 529 getDest()->dump(Func);
530 } 530 }
531 531
532 void InstAlloca::dump(const Cfg *Func) const { 532 void InstAlloca::dump(const Cfg *Func) const {
533 Ostream &Str = Func->getContext()->getStrDump(); 533 Ostream &Str = Func->getContext()->getStrDump();
534 dumpDest(Func); 534 dumpDest(Func);
535 Str << " = alloca i8, i32 "; 535 Str << " = alloca i8, i32 ";
536 getSizeInBytes()->dump(Func); 536 getSizeInBytes()->dump(Func);
537 Str << ", align " << getAlignInBytes(); 537 if (getAlignInBytes())
538 Str << ", align " << getAlignInBytes();
538 } 539 }
539 540
540 void InstArithmetic::dump(const Cfg *Func) const { 541 void InstArithmetic::dump(const Cfg *Func) const {
541 Ostream &Str = Func->getContext()->getStrDump(); 542 Ostream &Str = Func->getContext()->getStrDump();
542 dumpDest(Func); 543 dumpDest(Func);
543 Str << " = " << InstArithmeticAttributes[getOp()].DisplayString << " " 544 Str << " = " << InstArithmeticAttributes[getOp()].DisplayString << " "
544 << getDest()->getType() << " "; 545 << getDest()->getType() << " ";
545 dumpSources(Func); 546 dumpSources(Func);
546 } 547 }
547 548
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 762
762 void InstTarget::dump(const Cfg *Func) const { 763 void InstTarget::dump(const Cfg *Func) const {
763 Ostream &Str = Func->getContext()->getStrDump(); 764 Ostream &Str = Func->getContext()->getStrDump();
764 Str << "[TARGET] "; 765 Str << "[TARGET] ";
765 Inst::dump(Func); 766 Inst::dump(Func);
766 } 767 }
767 768
768 void InstTarget::dumpExtras(const Cfg *Func) const { Inst::dumpExtras(Func); } 769 void InstTarget::dumpExtras(const Cfg *Func) const { Inst::dumpExtras(Func); }
769 770
770 } // end of namespace Ice 771 } // end of namespace Ice
OLDNEW
« no previous file with comments | « no previous file | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698