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

Side by Side Diff: src/IceInstARM32.h

Issue 1414483008: Add CMP(register) and CMP(Immediate) to ARM integerated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. 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 | « src/IceAssemblerARM32.cpp ('k') | 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 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 static InstARM32CmpLike *create(Cfg *Func, Variable *Src0, Operand *Src1, 710 static InstARM32CmpLike *create(Cfg *Func, Variable *Src0, Operand *Src1,
711 CondARM32::Cond Predicate) { 711 CondARM32::Cond Predicate) {
712 return new (Func->allocate<InstARM32CmpLike>()) 712 return new (Func->allocate<InstARM32CmpLike>())
713 InstARM32CmpLike(Func, Src0, Src1, Predicate); 713 InstARM32CmpLike(Func, Src0, Src1, Predicate);
714 } 714 }
715 void emit(const Cfg *Func) const override { 715 void emit(const Cfg *Func) const override {
716 if (!BuildDefs::dump()) 716 if (!BuildDefs::dump())
717 return; 717 return;
718 emitCmpLike(Opcode, this, Func); 718 emitCmpLike(Opcode, this, Func);
719 } 719 }
720 void emitIAS(const Cfg *Func) const override;
720 void dump(const Cfg *Func) const override { 721 void dump(const Cfg *Func) const override {
721 if (!BuildDefs::dump()) 722 if (!BuildDefs::dump())
722 return; 723 return;
723 Ostream &Str = Func->getContext()->getStrDump(); 724 Ostream &Str = Func->getContext()->getStrDump();
724 dumpOpcodePred(Str, Opcode, getSrc(0)->getType()); 725 dumpOpcodePred(Str, Opcode, getSrc(0)->getType());
725 Str << " "; 726 Str << " ";
726 dumpSources(Func); 727 dumpSources(Func);
727 } 728 }
728 static bool classof(const Inst *Inst) { return isClassof(Inst, K); } 729 static bool classof(const Inst *Inst) { return isClassof(Inst, K); }
729 730
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
1232 // default implementations. Without this, there is the possibility of ODR 1233 // default implementations. Without this, there is the possibility of ODR
1233 // violations and link errors. 1234 // violations and link errors.
1234 1235
1235 template <> void InstARM32Ldr::emit(const Cfg *Func) const; 1236 template <> void InstARM32Ldr::emit(const Cfg *Func) const;
1236 template <> void InstARM32Movw::emit(const Cfg *Func) const; 1237 template <> void InstARM32Movw::emit(const Cfg *Func) const;
1237 template <> void InstARM32Movt::emit(const Cfg *Func) const; 1238 template <> void InstARM32Movt::emit(const Cfg *Func) const;
1238 1239
1239 } // end of namespace Ice 1240 } // end of namespace Ice
1240 1241
1241 #endif // SUBZERO_SRC_ICEINSTARM32_H 1242 #endif // SUBZERO_SRC_ICEINSTARM32_H
OLDNEW
« no previous file with comments | « src/IceAssemblerARM32.cpp ('k') | src/IceInstARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698