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

Side by Side Diff: src/IceInstARM32.h

Issue 1417393003: Subzero. ARM32. New bool folding. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fixes lit tests. Created 5 years, 1 month 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
OLDNEW
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 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 InstARM32Mov &operator=(const InstARM32Mov &) = delete; 1128 InstARM32Mov &operator=(const InstARM32Mov &) = delete;
1129 1129
1130 public: 1130 public:
1131 static InstARM32Mov *create(Cfg *Func, Variable *Dest, Operand *Src, 1131 static InstARM32Mov *create(Cfg *Func, Variable *Dest, Operand *Src,
1132 CondARM32::Cond Predicate) { 1132 CondARM32::Cond Predicate) {
1133 return new (Func->allocate<InstARM32Mov>()) 1133 return new (Func->allocate<InstARM32Mov>())
1134 InstARM32Mov(Func, Dest, Src, Predicate); 1134 InstARM32Mov(Func, Dest, Src, Predicate);
1135 } 1135 }
1136 bool isRedundantAssign() const override { 1136 bool isRedundantAssign() const override {
1137 return !isMultiDest() && !isMultiSource() && 1137 return !isMultiDest() && !isMultiSource() &&
1138 getPredicate() == CondARM32::AL &&
1138 checkForRedundantAssign(getDest(), getSrc(0)); 1139 checkForRedundantAssign(getDest(), getSrc(0));
1139 } 1140 }
1140 bool isVarAssign() const override { return llvm::isa<Variable>(getSrc(0)); } 1141 bool isVarAssign() const override { return llvm::isa<Variable>(getSrc(0)); }
1141 void emit(const Cfg *Func) const override; 1142 void emit(const Cfg *Func) const override;
1142 void emitIAS(const Cfg *Func) const override; 1143 void emitIAS(const Cfg *Func) const override;
1143 void dump(const Cfg *Func) const override; 1144 void dump(const Cfg *Func) const override;
1144 static bool classof(const Inst *Inst) { return isClassof(Inst, Mov); } 1145 static bool classof(const Inst *Inst) { return isClassof(Inst, Mov); }
1145 1146
1146 bool isMultiDest() const { return DestHi != nullptr; } 1147 bool isMultiDest() const { return DestHi != nullptr; }
1147 1148
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
1244 // default implementations. Without this, there is the possibility of ODR 1245 // default implementations. Without this, there is the possibility of ODR
1245 // violations and link errors. 1246 // violations and link errors.
1246 1247
1247 template <> void InstARM32Ldr::emit(const Cfg *Func) const; 1248 template <> void InstARM32Ldr::emit(const Cfg *Func) const;
1248 template <> void InstARM32Movw::emit(const Cfg *Func) const; 1249 template <> void InstARM32Movw::emit(const Cfg *Func) const;
1249 template <> void InstARM32Movt::emit(const Cfg *Func) const; 1250 template <> void InstARM32Movt::emit(const Cfg *Func) const;
1250 1251
1251 } // end of namespace Ice 1252 } // end of namespace Ice
1252 1253
1253 #endif // SUBZERO_SRC_ICEINSTARM32_H 1254 #endif // SUBZERO_SRC_ICEINSTARM32_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698