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

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: Adding test 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') | src/IceTargetLoweringMIPS32.cpp » ('J')
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 == RegNumT::fixme(RegMIPS32::Reg_A0A1)) ? RegMIPS32::Reg_A0 : R egMIPS32::Reg_A2;
Jim Stichnoth 2016/05/31 16:37:45 This seems fine as long as RegNum is A0A1 or A2A3,
95 }
96
97 static inline RegNumT getI64PairSecondGPRNum(RegNumT RegNum) {
98 RegNum.assertIsValid();
99 return (RegNum == RegNumT::fixme(RegMIPS32::Reg_A0A1)) ? RegMIPS32::Reg_A1 : R egMIPS32::Reg_A3;
Jim Stichnoth 2016/05/31 16:37:45 80-col (run "make -f Makefile.standalone format" t
100 }
101
92 } // end of namespace RegMIPS32 102 } // end of namespace RegMIPS32
93 103
94 // Extend enum RegClass with MIPS32-specific register classes (if any). 104 // Extend enum RegClass with MIPS32-specific register classes (if any).
95 enum RegClassMIPS32 : uint8_t { RCMIPS32_NUM = RC_Target }; 105 enum RegClassMIPS32 : uint8_t { RCMIPS32_NUM = RC_Target };
96 106
97 } // end of namespace MIPS32 107 } // end of namespace MIPS32
98 } // end of namespace Ice 108 } // end of namespace Ice
99 109
100 #endif // SUBZERO_SRC_ICEREGISTERSMIPS32_H 110 #endif // SUBZERO_SRC_ICEREGISTERSMIPS32_H
OLDNEW
« no previous file with comments | « no previous file | src/IceTargetLoweringMIPS32.h » ('j') | src/IceTargetLoweringMIPS32.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698