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

Side by Side Diff: src/IceTargetLoweringARM32.h

Issue 1223133007: Factor out prelowerPhi for 32-bit targets. Disable adv phi lowering for ARM. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: fill in wqthe random test case for more undef 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 | « src/IcePhiLoweringImpl.h ('k') | 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 /// I64 operations. 96 /// I64 operations.
97 void split64(Variable *Var); 97 void split64(Variable *Var);
98 Operand *loOperand(Operand *Operand); 98 Operand *loOperand(Operand *Operand);
99 Operand *hiOperand(Operand *Operand); 99 Operand *hiOperand(Operand *Operand);
100 void finishArgumentLowering(Variable *Arg, Variable *FramePtr, 100 void finishArgumentLowering(Variable *Arg, Variable *FramePtr,
101 size_t BasicFrameOffset, size_t &InArgsSizeBytes); 101 size_t BasicFrameOffset, size_t &InArgsSizeBytes);
102 102
103 bool hasCPUFeature(TargetARM32Features::ARM32InstructionSet I) const { 103 bool hasCPUFeature(TargetARM32Features::ARM32InstructionSet I) const {
104 return CPUFeatures.hasFeature(I); 104 return CPUFeatures.hasFeature(I);
105 } 105 }
106 Operand *legalizeUndef(Operand *From, int32_t RegNum = Variable::NoRegister);
106 107
107 protected: 108 protected:
108 explicit TargetARM32(Cfg *Func); 109 explicit TargetARM32(Cfg *Func);
109 110
110 void postLower() override; 111 void postLower() override;
111 112
112 void lowerAlloca(const InstAlloca *Inst) override; 113 void lowerAlloca(const InstAlloca *Inst) override;
113 void lowerArithmetic(const InstArithmetic *Inst) override; 114 void lowerArithmetic(const InstArithmetic *Inst) override;
114 void lowerAssign(const InstAssign *Inst) override; 115 void lowerAssign(const InstAssign *Inst) override;
115 void lowerBr(const InstBr *Inst) override; 116 void lowerBr(const InstBr *Inst) override;
(...skipping 23 matching lines...) Expand all
139 Legal_Reg = 1 << 0, /// physical register, not stack location 140 Legal_Reg = 1 << 0, /// physical register, not stack location
140 Legal_Flex = 1 << 1, /// A flexible operand2, which can hold rotated 141 Legal_Flex = 1 << 1, /// A flexible operand2, which can hold rotated
141 /// small immediates, or shifted registers. 142 /// small immediates, or shifted registers.
142 Legal_Mem = 1 << 2, /// includes [r0, r1 lsl #2] as well as [sp, #12] 143 Legal_Mem = 1 << 2, /// includes [r0, r1 lsl #2] as well as [sp, #12]
143 Legal_All = ~Legal_None 144 Legal_All = ~Legal_None
144 }; 145 };
145 typedef uint32_t LegalMask; 146 typedef uint32_t LegalMask;
146 Operand *legalize(Operand *From, LegalMask Allowed = Legal_All, 147 Operand *legalize(Operand *From, LegalMask Allowed = Legal_All,
147 int32_t RegNum = Variable::NoRegister); 148 int32_t RegNum = Variable::NoRegister);
148 Variable *legalizeToVar(Operand *From, int32_t RegNum = Variable::NoRegister); 149 Variable *legalizeToVar(Operand *From, int32_t RegNum = Variable::NoRegister);
149 Operand *legalizeUndef(Operand *From, int32_t RegNum = Variable::NoRegister);
150 OperandARM32Mem *formMemoryOperand(Operand *Ptr, Type Ty); 150 OperandARM32Mem *formMemoryOperand(Operand *Ptr, Type Ty);
151 151
152 Variable *makeReg(Type Ty, int32_t RegNum = Variable::NoRegister); 152 Variable *makeReg(Type Ty, int32_t RegNum = Variable::NoRegister);
153 static Type stackSlotType(); 153 static Type stackSlotType();
154 Variable *copyToReg(Operand *Src, int32_t RegNum = Variable::NoRegister); 154 Variable *copyToReg(Operand *Src, int32_t RegNum = Variable::NoRegister);
155 void alignRegisterPow2(Variable *Reg, uint32_t Align); 155 void alignRegisterPow2(Variable *Reg, uint32_t Align);
156 156
157 /// Returns a vector in a register with the given constant entries. 157 /// Returns a vector in a register with the given constant entries.
158 Variable *makeVectorOfZeros(Type Ty, int32_t RegNum = Variable::NoRegister); 158 Variable *makeVectorOfZeros(Type Ty, int32_t RegNum = Variable::NoRegister);
159 159
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 458
459 private: 459 private:
460 ~TargetHeaderARM32() = default; 460 ~TargetHeaderARM32() = default;
461 461
462 TargetARM32Features CPUFeatures; 462 TargetARM32Features CPUFeatures;
463 }; 463 };
464 464
465 } // end of namespace Ice 465 } // end of namespace Ice
466 466
467 #endif // SUBZERO_SRC_ICETARGETLOWERINGARM32_H 467 #endif // SUBZERO_SRC_ICETARGETLOWERINGARM32_H
OLDNEW
« no previous file with comments | « src/IcePhiLoweringImpl.h ('k') | src/IceTargetLoweringARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698