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

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: Adds --force to check-spec 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
« no previous file with comments | « no previous file | src/IceInstARM32.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/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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/IceInstARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698