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

Side by Side Diff: src/IceTargetLoweringARM32.h

Issue 1245063003: Rename legalizeToVar to the more accurate legalizeToReg. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 5 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/IceTargetLoweringARM32.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/IceTargetLoweringARM32.h - ARM32 lowering ----*- C++ -*-===// 1 //===- subzero/src/IceTargetLoweringARM32.h - ARM32 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 Legal_None = 0, 142 Legal_None = 0,
143 Legal_Reg = 1 << 0, /// physical register, not stack location 143 Legal_Reg = 1 << 0, /// physical register, not stack location
144 Legal_Flex = 1 << 1, /// A flexible operand2, which can hold rotated 144 Legal_Flex = 1 << 1, /// A flexible operand2, which can hold rotated
145 /// small immediates, or shifted registers. 145 /// small immediates, or shifted registers.
146 Legal_Mem = 1 << 2, /// includes [r0, r1 lsl #2] as well as [sp, #12] 146 Legal_Mem = 1 << 2, /// includes [r0, r1 lsl #2] as well as [sp, #12]
147 Legal_All = ~Legal_None 147 Legal_All = ~Legal_None
148 }; 148 };
149 typedef uint32_t LegalMask; 149 typedef uint32_t LegalMask;
150 Operand *legalize(Operand *From, LegalMask Allowed = Legal_All, 150 Operand *legalize(Operand *From, LegalMask Allowed = Legal_All,
151 int32_t RegNum = Variable::NoRegister); 151 int32_t RegNum = Variable::NoRegister);
152 Variable *legalizeToVar(Operand *From, int32_t RegNum = Variable::NoRegister); 152 Variable *legalizeToReg(Operand *From, int32_t RegNum = Variable::NoRegister);
153 OperandARM32Mem *formMemoryOperand(Operand *Ptr, Type Ty); 153 OperandARM32Mem *formMemoryOperand(Operand *Ptr, Type Ty);
154 154
155 Variable *makeReg(Type Ty, int32_t RegNum = Variable::NoRegister); 155 Variable *makeReg(Type Ty, int32_t RegNum = Variable::NoRegister);
156 static Type stackSlotType(); 156 static Type stackSlotType();
157 Variable *copyToReg(Operand *Src, int32_t RegNum = Variable::NoRegister); 157 Variable *copyToReg(Operand *Src, int32_t RegNum = Variable::NoRegister);
158 void alignRegisterPow2(Variable *Reg, uint32_t Align); 158 void alignRegisterPow2(Variable *Reg, uint32_t Align);
159 159
160 /// Returns a vector in a register with the given constant entries. 160 /// Returns a vector in a register with the given constant entries.
161 Variable *makeVectorOfZeros(Type Ty, int32_t RegNum = Variable::NoRegister); 161 Variable *makeVectorOfZeros(Type Ty, int32_t RegNum = Variable::NoRegister);
162 162
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 461
462 private: 462 private:
463 ~TargetHeaderARM32() = default; 463 ~TargetHeaderARM32() = default;
464 464
465 TargetARM32Features CPUFeatures; 465 TargetARM32Features CPUFeatures;
466 }; 466 };
467 467
468 } // end of namespace Ice 468 } // end of namespace Ice
469 469
470 #endif // SUBZERO_SRC_ICETARGETLOWERINGARM32_H 470 #endif // SUBZERO_SRC_ICETARGETLOWERINGARM32_H
OLDNEW
« no previous file with comments | « no previous file | src/IceTargetLoweringARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698