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

Side by Side Diff: src/IceRegistersMIPS32.h

Issue 2021033002: [Subzero][MIPS32] Add argument handling in LowerCall (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addressing review comments Created 4 years, 6 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/IceRegistersMIPS32.h - Register information --*- C++ -*-===// 1 //===- subzero/src/IceRegistersMIPS32.h - Register information --*- 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 return FPRRegister(RegNum - Reg_FPR_First); 82 return FPRRegister(RegNum - Reg_FPR_First);
83 } 83 }
84 84
85 static inline bool isFPRReg(RegNumT RegNum) { 85 static inline bool isFPRReg(RegNumT RegNum) {
86 return (int(Reg_FPR_First) <= int(RegNum)) && 86 return (int(Reg_FPR_First) <= int(RegNum)) &&
87 (unsigned(RegNum) <= Reg_FPR_Last); 87 (unsigned(RegNum) <= Reg_FPR_Last);
88 } 88 }
89 89
90 const char *getRegName(RegNumT RegNum); 90 const char *getRegName(RegNumT RegNum);
91 91
92 static inline RegNumT getI64PairFirstGPRNum(RegNumT RegNum) {
93 RegNum.assertIsValid();
94 return (RegNum == RegMIPS32::Reg_A0A1) ? RegMIPS32::Reg_A0
Jim Stichnoth 2016/06/02 14:09:53 This is still a problem, I think. It looks like g
95 : RegMIPS32::Reg_A2;
96 }
97
98 static inline RegNumT getI64PairSecondGPRNum(RegNumT RegNum) {
99 RegNum.assertIsValid();
100 return (RegNum == RegMIPS32::Reg_A0A1) ? RegMIPS32::Reg_A1
101 : RegMIPS32::Reg_A3;
102 }
103
92 } // end of namespace RegMIPS32 104 } // end of namespace RegMIPS32
93 105
94 // Extend enum RegClass with MIPS32-specific register classes (if any). 106 // Extend enum RegClass with MIPS32-specific register classes (if any).
95 enum RegClassMIPS32 : uint8_t { RCMIPS32_NUM = RC_Target }; 107 enum RegClassMIPS32 : uint8_t { RCMIPS32_NUM = RC_Target };
96 108
97 } // end of namespace MIPS32 109 } // end of namespace MIPS32
98 } // end of namespace Ice 110 } // end of namespace Ice
99 111
100 #endif // SUBZERO_SRC_ICEREGISTERSMIPS32_H 112 #endif // SUBZERO_SRC_ICEREGISTERSMIPS32_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