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

Side by Side Diff: src/IceTargetLoweringARM32.h

Issue 1233903002: Factor out legalization of undef, and handle more cases for ARM. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: stuff 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 Legal_Reg = 1 << 0, /// physical register, not stack location 139 Legal_Reg = 1 << 0, /// physical register, not stack location
140 Legal_Flex = 1 << 1, /// A flexible operand2, which can hold rotated 140 Legal_Flex = 1 << 1, /// A flexible operand2, which can hold rotated
141 /// small immediates, or shifted registers. 141 /// small immediates, or shifted registers.
142 Legal_Mem = 1 << 2, /// includes [r0, r1 lsl #2] as well as [sp, #12] 142 Legal_Mem = 1 << 2, /// includes [r0, r1 lsl #2] as well as [sp, #12]
143 Legal_All = ~Legal_None 143 Legal_All = ~Legal_None
144 }; 144 };
145 typedef uint32_t LegalMask; 145 typedef uint32_t LegalMask;
146 Operand *legalize(Operand *From, LegalMask Allowed = Legal_All, 146 Operand *legalize(Operand *From, LegalMask Allowed = Legal_All,
147 int32_t RegNum = Variable::NoRegister); 147 int32_t RegNum = Variable::NoRegister);
148 Variable *legalizeToVar(Operand *From, int32_t RegNum = Variable::NoRegister); 148 Variable *legalizeToVar(Operand *From, int32_t RegNum = Variable::NoRegister);
149 Operand *legalizeUndef(Operand *From, int32_t RegNum = Variable::NoRegister);
149 OperandARM32Mem *formMemoryOperand(Operand *Ptr, Type Ty); 150 OperandARM32Mem *formMemoryOperand(Operand *Ptr, Type Ty);
150 151
151 Variable *makeReg(Type Ty, int32_t RegNum = Variable::NoRegister); 152 Variable *makeReg(Type Ty, int32_t RegNum = Variable::NoRegister);
152 static Type stackSlotType(); 153 static Type stackSlotType();
153 Variable *copyToReg(Operand *Src, int32_t RegNum = Variable::NoRegister); 154 Variable *copyToReg(Operand *Src, int32_t RegNum = Variable::NoRegister);
154 void alignRegisterPow2(Variable *Reg, uint32_t Align); 155 void alignRegisterPow2(Variable *Reg, uint32_t Align);
155 156
156 /// Returns a vector in a register with the given constant entries. 157 /// Returns a vector in a register with the given constant entries.
157 Variable *makeVectorOfZeros(Type Ty, int32_t RegNum = Variable::NoRegister); 158 Variable *makeVectorOfZeros(Type Ty, int32_t RegNum = Variable::NoRegister);
158 159
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 458
458 private: 459 private:
459 ~TargetHeaderARM32() = default; 460 ~TargetHeaderARM32() = default;
460 461
461 TargetARM32Features CPUFeatures; 462 TargetARM32Features CPUFeatures;
462 }; 463 };
463 464
464 } // end of namespace Ice 465 } // end of namespace Ice
465 466
466 #endif // SUBZERO_SRC_ICETARGETLOWERINGARM32_H 467 #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