| 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 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1129 InstARM32Mov &operator=(const InstARM32Mov &) = delete; | 1129 InstARM32Mov &operator=(const InstARM32Mov &) = delete; |
| 1130 | 1130 |
| 1131 public: | 1131 public: |
| 1132 static InstARM32Mov *create(Cfg *Func, Variable *Dest, Operand *Src, | 1132 static InstARM32Mov *create(Cfg *Func, Variable *Dest, Operand *Src, |
| 1133 CondARM32::Cond Predicate) { | 1133 CondARM32::Cond Predicate) { |
| 1134 return new (Func->allocate<InstARM32Mov>()) | 1134 return new (Func->allocate<InstARM32Mov>()) |
| 1135 InstARM32Mov(Func, Dest, Src, Predicate); | 1135 InstARM32Mov(Func, Dest, Src, Predicate); |
| 1136 } | 1136 } |
| 1137 bool isRedundantAssign() const override { | 1137 bool isRedundantAssign() const override { |
| 1138 return !isMultiDest() && !isMultiSource() && | 1138 return !isMultiDest() && !isMultiSource() && |
| 1139 getPredicate() == CondARM32::AL && |
| 1139 checkForRedundantAssign(getDest(), getSrc(0)); | 1140 checkForRedundantAssign(getDest(), getSrc(0)); |
| 1140 } | 1141 } |
| 1141 bool isVarAssign() const override { return llvm::isa<Variable>(getSrc(0)); } | 1142 bool isVarAssign() const override { return llvm::isa<Variable>(getSrc(0)); } |
| 1142 void emit(const Cfg *Func) const override; | 1143 void emit(const Cfg *Func) const override; |
| 1143 void emitIAS(const Cfg *Func) const override; | 1144 void emitIAS(const Cfg *Func) const override; |
| 1144 void dump(const Cfg *Func) const override; | 1145 void dump(const Cfg *Func) const override; |
| 1145 static bool classof(const Inst *Inst) { return isClassof(Inst, Mov); } | 1146 static bool classof(const Inst *Inst) { return isClassof(Inst, Mov); } |
| 1146 | 1147 |
| 1147 bool isMultiDest() const { return DestHi != nullptr; } | 1148 bool isMultiDest() const { return DestHi != nullptr; } |
| 1148 | 1149 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1245 // default implementations. Without this, there is the possibility of ODR | 1246 // default implementations. Without this, there is the possibility of ODR |
| 1246 // violations and link errors. | 1247 // violations and link errors. |
| 1247 | 1248 |
| 1248 template <> void InstARM32Ldr::emit(const Cfg *Func) const; | 1249 template <> void InstARM32Ldr::emit(const Cfg *Func) const; |
| 1249 template <> void InstARM32Movw::emit(const Cfg *Func) const; | 1250 template <> void InstARM32Movw::emit(const Cfg *Func) const; |
| 1250 template <> void InstARM32Movt::emit(const Cfg *Func) const; | 1251 template <> void InstARM32Movt::emit(const Cfg *Func) const; |
| 1251 | 1252 |
| 1252 } // end of namespace Ice | 1253 } // end of namespace Ice |
| 1253 | 1254 |
| 1254 #endif // SUBZERO_SRC_ICEINSTARM32_H | 1255 #endif // SUBZERO_SRC_ICEINSTARM32_H |
| OLD | NEW |