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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 | 604 |
605 void InstExtractElement::dump(const Cfg *Func) const { | 605 void InstExtractElement::dump(const Cfg *Func) const { |
606 Ostream &Str = Func->getContext()->getStrDump(); | 606 Ostream &Str = Func->getContext()->getStrDump(); |
607 dumpDest(Func); | 607 dumpDest(Func); |
608 Str << " = extractelement "; | 608 Str << " = extractelement "; |
609 Str << getSrc(0)->getType() << " "; | 609 Str << getSrc(0)->getType() << " "; |
610 getSrc(0)->dump(Func); | 610 getSrc(0)->dump(Func); |
611 Str << ", "; | 611 Str << ", "; |
612 Str << getSrc(1)->getType() << " "; | 612 Str << getSrc(1)->getType() << " "; |
613 getSrc(1)->dump(Func); | 613 getSrc(1)->dump(Func); |
614 }; | 614 } |
615 | 615 |
616 void InstInsertElement::dump(const Cfg *Func) const { | 616 void InstInsertElement::dump(const Cfg *Func) const { |
617 Ostream &Str = Func->getContext()->getStrDump(); | 617 Ostream &Str = Func->getContext()->getStrDump(); |
618 dumpDest(Func); | 618 dumpDest(Func); |
619 Str << " = insertelement "; | 619 Str << " = insertelement "; |
620 Str << getSrc(0)->getType() << " "; | 620 Str << getSrc(0)->getType() << " "; |
621 getSrc(0)->dump(Func); | 621 getSrc(0)->dump(Func); |
622 Str << ", "; | 622 Str << ", "; |
623 Str << getSrc(1)->getType() << " "; | 623 Str << getSrc(1)->getType() << " "; |
624 getSrc(1)->dump(Func); | 624 getSrc(1)->dump(Func); |
625 Str << ", "; | 625 Str << ", "; |
626 Str << getSrc(2)->getType() << " "; | 626 Str << getSrc(2)->getType() << " "; |
627 getSrc(2)->dump(Func); | 627 getSrc(2)->dump(Func); |
628 }; | 628 } |
629 | 629 |
630 void InstFcmp::dump(const Cfg *Func) const { | 630 void InstFcmp::dump(const Cfg *Func) const { |
631 Ostream &Str = Func->getContext()->getStrDump(); | 631 Ostream &Str = Func->getContext()->getStrDump(); |
632 dumpDest(Func); | 632 dumpDest(Func); |
633 Str << " = fcmp " << InstFcmpAttributes[getCondition()].DisplayString << " " | 633 Str << " = fcmp " << InstFcmpAttributes[getCondition()].DisplayString << " " |
634 << getSrc(0)->getType() << " "; | 634 << getSrc(0)->getType() << " "; |
635 dumpSources(Func); | 635 dumpSources(Func); |
636 } | 636 } |
637 | 637 |
638 void InstLoad::dump(const Cfg *Func) const { | 638 void InstLoad::dump(const Cfg *Func) const { |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 | 759 |
760 void InstTarget::dump(const Cfg *Func) const { | 760 void InstTarget::dump(const Cfg *Func) const { |
761 Ostream &Str = Func->getContext()->getStrDump(); | 761 Ostream &Str = Func->getContext()->getStrDump(); |
762 Str << "[TARGET] "; | 762 Str << "[TARGET] "; |
763 Inst::dump(Func); | 763 Inst::dump(Func); |
764 } | 764 } |
765 | 765 |
766 void InstTarget::dumpExtras(const Cfg *Func) const { Inst::dumpExtras(Func); } | 766 void InstTarget::dumpExtras(const Cfg *Func) const { Inst::dumpExtras(Func); } |
767 | 767 |
768 } // end of namespace Ice | 768 } // end of namespace Ice |
OLD | NEW |