| OLD | NEW |
| 1 //===- subzero/src/IceInstARM32.h - ARM32 machine instructions --*- C++ -*-===// | 1 //===- subzero/src/IceInstARM32.h - ARM32 machine instructions --*- 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 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 ++Sum; | 735 ++Sum; |
| 736 if (getTargetTrue()) | 736 if (getTargetTrue()) |
| 737 ++Sum; | 737 ++Sum; |
| 738 if (getTargetFalse()) | 738 if (getTargetFalse()) |
| 739 ++Sum; | 739 ++Sum; |
| 740 return Sum; | 740 return Sum; |
| 741 } | 741 } |
| 742 bool isUnconditionalBranch() const override { | 742 bool isUnconditionalBranch() const override { |
| 743 return getPredicate() == CondARM32::AL; | 743 return getPredicate() == CondARM32::AL; |
| 744 } | 744 } |
| 745 bool repointEdge(CfgNode *OldNode, CfgNode *NewNode) override; | 745 bool repointEdges(CfgNode *OldNode, CfgNode *NewNode) override; |
| 746 void emit(const Cfg *Func) const override; | 746 void emit(const Cfg *Func) const override; |
| 747 void emitIAS(const Cfg *Func) const override; | 747 void emitIAS(const Cfg *Func) const override; |
| 748 void dump(const Cfg *Func) const override; | 748 void dump(const Cfg *Func) const override; |
| 749 static bool classof(const Inst *Inst) { return isClassof(Inst, Br); } | 749 static bool classof(const Inst *Inst) { return isClassof(Inst, Br); } |
| 750 | 750 |
| 751 private: | 751 private: |
| 752 InstARM32Br(Cfg *Func, const CfgNode *TargetTrue, const CfgNode *TargetFalse, | 752 InstARM32Br(Cfg *Func, const CfgNode *TargetTrue, const CfgNode *TargetFalse, |
| 753 const InstARM32Label *Label, CondARM32::Cond Predicate); | 753 const InstARM32Label *Label, CondARM32::Cond Predicate); |
| 754 | 754 |
| 755 const CfgNode *TargetTrue; | 755 const CfgNode *TargetTrue; |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 972 // Declare partial template specializations of emit() methods that | 972 // Declare partial template specializations of emit() methods that |
| 973 // already have default implementations. Without this, there is the | 973 // already have default implementations. Without this, there is the |
| 974 // possibility of ODR violations and link errors. | 974 // possibility of ODR violations and link errors. |
| 975 | 975 |
| 976 template <> void InstARM32Movw::emit(const Cfg *Func) const; | 976 template <> void InstARM32Movw::emit(const Cfg *Func) const; |
| 977 template <> void InstARM32Movt::emit(const Cfg *Func) const; | 977 template <> void InstARM32Movt::emit(const Cfg *Func) const; |
| 978 | 978 |
| 979 } // end of namespace Ice | 979 } // end of namespace Ice |
| 980 | 980 |
| 981 #endif // SUBZERO_SRC_ICEINSTARM32_H | 981 #endif // SUBZERO_SRC_ICEINSTARM32_H |
| OLD | NEW |