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

Side by Side Diff: src/IceInstMIPS32.h

Issue 2425673002: [Subzero][MIPS32] Account for variable alloca alignment bytes in addProlog (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addressed review comments Created 4 years, 2 months 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/IceTargetLoweringMIPS32.h » ('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/IceInstMIPS32.h - MIPS32 machine instrs --*- C++ -*-----===// 1 //===- subzero/src/IceInstMIPS32.h - MIPS32 machine instrs --*- 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 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after
1047 } else { 1047 } else {
1048 getSrc(0)->dump(Func); 1048 getSrc(0)->dump(Func);
1049 Str << ","; 1049 Str << ",";
1050 emitRelocOp(Str, Reloc); 1050 emitRelocOp(Str, Reloc);
1051 Str << "("; 1051 Str << "(";
1052 getSrc(1)->dump(Func); 1052 getSrc(1)->dump(Func);
1053 Str << ")"; 1053 Str << ")";
1054 } 1054 }
1055 } 1055 }
1056 1056
1057 uint32_t getImmediateValue() const { return Imm; }
1058
1057 static bool classof(const Inst *Inst) { return isClassof(Inst, K); } 1059 static bool classof(const Inst *Inst) { return isClassof(Inst, K); }
1058 1060
1059 private: 1061 private:
1060 InstMIPS32Imm16(Cfg *Func, Variable *Dest, Operand *Source, uint32_t Imm, 1062 InstMIPS32Imm16(Cfg *Func, Variable *Dest, Operand *Source, uint32_t Imm,
1061 RelocOp Reloc = RO_No) 1063 RelocOp Reloc = RO_No)
1062 : InstMIPS32(Func, K, 1, Dest), Reloc(Reloc), Imm(Imm) { 1064 : InstMIPS32(Func, K, 1, Dest), Reloc(Reloc), Imm(Imm) {
1063 addSource(Source); 1065 addSource(Source);
1064 } 1066 }
1065 1067
1066 InstMIPS32Imm16(Cfg *Func, Variable *Dest, uint32_t Imm, 1068 InstMIPS32Imm16(Cfg *Func, Variable *Dest, uint32_t Imm,
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 template <> void InstMIPS32Trunc_l_s::emitIAS(const Cfg *Func) const; 1353 template <> void InstMIPS32Trunc_l_s::emitIAS(const Cfg *Func) const;
1352 template <> void InstMIPS32Trunc_w_d::emitIAS(const Cfg *Func) const; 1354 template <> void InstMIPS32Trunc_w_d::emitIAS(const Cfg *Func) const;
1353 template <> void InstMIPS32Trunc_w_s::emitIAS(const Cfg *Func) const; 1355 template <> void InstMIPS32Trunc_w_s::emitIAS(const Cfg *Func) const;
1354 template <> void InstMIPS32Xor::emitIAS(const Cfg *Func) const; 1356 template <> void InstMIPS32Xor::emitIAS(const Cfg *Func) const;
1355 template <> void InstMIPS32Xori::emitIAS(const Cfg *Func) const; 1357 template <> void InstMIPS32Xori::emitIAS(const Cfg *Func) const;
1356 1358
1357 } // end of namespace MIPS32 1359 } // end of namespace MIPS32
1358 } // end of namespace Ice 1360 } // end of namespace Ice
1359 1361
1360 #endif // SUBZERO_SRC_ICEINSTMIPS32_H 1362 #endif // SUBZERO_SRC_ICEINSTMIPS32_H
OLDNEW
« no previous file with comments | « no previous file | src/IceTargetLoweringMIPS32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698