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

Side by Side Diff: src/IceTargetLoweringMIPS32.h

Issue 1661233002: Subzero: Prototype to simplify makereg calls (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: changes suggested by stichnot Created 4 years, 10 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.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/IceTargetLoweringMIPS32.h - MIPS32 lowering ---*- C++-*-===// 1 //===- subzero/src/IceTargetLoweringMIPS32.h - MIPS32 lowering ---*- 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 }; 220 };
221 typedef uint32_t LegalMask; 221 typedef uint32_t LegalMask;
222 Operand *legalize(Operand *From, LegalMask Allowed = Legal_Default, 222 Operand *legalize(Operand *From, LegalMask Allowed = Legal_Default,
223 RegNumT RegNum = RegNumT()); 223 RegNumT RegNum = RegNumT());
224 224
225 Variable *legalizeToVar(Operand *From, RegNumT RegNum = RegNumT()); 225 Variable *legalizeToVar(Operand *From, RegNumT RegNum = RegNumT());
226 226
227 Variable *legalizeToReg(Operand *From, RegNumT RegNum = RegNumT()); 227 Variable *legalizeToReg(Operand *From, RegNumT RegNum = RegNumT());
228 228
229 Variable *makeReg(Type Ty, RegNumT RegNum = RegNumT()); 229 Variable *makeReg(Type Ty, RegNumT RegNum = RegNumT());
230
231 Variable *I32Reg(RegNumT RegNum = RegNumT()) {
232 return makeReg(IceType_i32, RegNum);
233 }
234
230 static Type stackSlotType(); 235 static Type stackSlotType();
231 Variable *copyToReg(Operand *Src, RegNumT RegNum = RegNumT()); 236 Variable *copyToReg(Operand *Src, RegNumT RegNum = RegNumT());
232 237
233 void addProlog(CfgNode *Node) override; 238 void addProlog(CfgNode *Node) override;
234 void addEpilog(CfgNode *Node) override; 239 void addEpilog(CfgNode *Node) override;
235 240
236 // Ensure that a 64-bit Variable has been split into 2 32-bit 241 // Ensure that a 64-bit Variable has been split into 2 32-bit
237 // Variables, creating them if necessary. This is needed for all 242 // Variables, creating them if necessary. This is needed for all
238 // I64 operations. 243 // I64 operations.
239 void split64(Variable *Var); 244 void split64(Variable *Var);
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 explicit TargetHeaderMIPS32(GlobalContext *Ctx); 338 explicit TargetHeaderMIPS32(GlobalContext *Ctx);
334 339
335 private: 340 private:
336 ~TargetHeaderMIPS32() = default; 341 ~TargetHeaderMIPS32() = default;
337 }; 342 };
338 343
339 } // end of namespace MIPS32 344 } // end of namespace MIPS32
340 } // end of namespace Ice 345 } // end of namespace Ice
341 346
342 #endif // SUBZERO_SRC_ICETARGETLOWERINGMIPS32_H 347 #endif // SUBZERO_SRC_ICETARGETLOWERINGMIPS32_H
OLDNEW
« no previous file with comments | « no previous file | src/IceTargetLoweringMIPS32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698