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

Side by Side Diff: src/IceInstMIPS32.h

Issue 2257043003: [SubZero] Provide repointEdges for MIPS (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 4 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/IceInstMIPS32.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/IceInstMIPS32.h - MIPS32 machine instrs --*- C++ -*-=== // 1 //===- subzero/src/IceInstMIPS32.h - MIPS32 machine instrs --*- C++ -*-=== //
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 /// \file 10 /// \file
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 return new (Func->allocate<InstMIPS32Br>()) 611 return new (Func->allocate<InstMIPS32Br>())
612 InstMIPS32Br(Func, TargetTrue, TargetFalse, Src0, NoLabel, Cond); 612 InstMIPS32Br(Func, TargetTrue, TargetFalse, Src0, NoLabel, Cond);
613 } 613 }
614 614
615 const CfgNode *getTargetTrue() const { return TargetTrue; } 615 const CfgNode *getTargetTrue() const { return TargetTrue; }
616 const CfgNode *getTargetFalse() const { return TargetFalse; } 616 const CfgNode *getTargetFalse() const { return TargetFalse; }
617 617
618 bool isUnconditionalBranch() const override { 618 bool isUnconditionalBranch() const override {
619 return Predicate == CondMIPS32::AL; 619 return Predicate == CondMIPS32::AL;
620 } 620 }
621 bool repointEdges(CfgNode *OldNode, CfgNode *NewNode) override { 621 bool repointEdges(CfgNode *OldNode, CfgNode *NewNode) override;
622 (void)OldNode;
623 (void)NewNode;
624 return true;
625 };
626 void emit(const Cfg *Func) const override; 622 void emit(const Cfg *Func) const override;
627 void emitIAS(const Cfg *Func) const override { (void)Func; }; 623 void emitIAS(const Cfg *Func) const override { (void)Func; };
628 void dump(const Cfg *Func) const override; 624 void dump(const Cfg *Func) const override;
629 static bool classof(const Inst *Instr) { return isClassof(Instr, Br); } 625 static bool classof(const Inst *Instr) { return isClassof(Instr, Br); }
630 626
631 private: 627 private:
632 InstMIPS32Br(Cfg *Func, const CfgNode *TargetTrue, const CfgNode *TargetFalse, 628 InstMIPS32Br(Cfg *Func, const CfgNode *TargetTrue, const CfgNode *TargetFalse,
633 const InstMIPS32Label *Label, const CondMIPS32::Cond Cond); 629 const InstMIPS32Label *Label, const CondMIPS32::Cond Cond);
634 630
635 InstMIPS32Br(Cfg *Func, const CfgNode *TargetTrue, const CfgNode *TargetFalse, 631 InstMIPS32Br(Cfg *Func, const CfgNode *TargetTrue, const CfgNode *TargetFalse,
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 template <> void InstMIPS32Mtlo::emit(const Cfg *Func) const; 845 template <> void InstMIPS32Mtlo::emit(const Cfg *Func) const;
850 template <> void InstMIPS32Mthi::emit(const Cfg *Func) const; 846 template <> void InstMIPS32Mthi::emit(const Cfg *Func) const;
851 template <> void InstMIPS32Mult::emit(const Cfg *Func) const; 847 template <> void InstMIPS32Mult::emit(const Cfg *Func) const;
852 template <> void InstMIPS32Multu::emit(const Cfg *Func) const; 848 template <> void InstMIPS32Multu::emit(const Cfg *Func) const;
853 template <> void InstMIPS32Lui::emit(const Cfg *Func) const; 849 template <> void InstMIPS32Lui::emit(const Cfg *Func) const;
854 850
855 } // end of namespace MIPS32 851 } // end of namespace MIPS32
856 } // end of namespace Ice 852 } // end of namespace Ice
857 853
858 #endif // SUBZERO_SRC_ICEINSTMIPS32_H 854 #endif // SUBZERO_SRC_ICEINSTMIPS32_H
OLDNEW
« no previous file with comments | « no previous file | src/IceInstMIPS32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698