OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |