OLD | NEW |
1 //===- subzero/src/IceTargetLoweringX86Base.h - x86 lowering ----*- C++ -*-===// | 1 //===- subzero/src/IceTargetLoweringX86Base.h - x86 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 Legal_None = 0, | 223 Legal_None = 0, |
224 Legal_Reg = 1 << 0, // physical register, not stack location | 224 Legal_Reg = 1 << 0, // physical register, not stack location |
225 Legal_Imm = 1 << 1, | 225 Legal_Imm = 1 << 1, |
226 Legal_Mem = 1 << 2, // includes [eax+4*ecx] as well as [esp+12] | 226 Legal_Mem = 1 << 2, // includes [eax+4*ecx] as well as [esp+12] |
227 Legal_All = ~Legal_None | 227 Legal_All = ~Legal_None |
228 }; | 228 }; |
229 typedef uint32_t LegalMask; | 229 typedef uint32_t LegalMask; |
230 Operand *legalize(Operand *From, LegalMask Allowed = Legal_All, | 230 Operand *legalize(Operand *From, LegalMask Allowed = Legal_All, |
231 int32_t RegNum = Variable::NoRegister); | 231 int32_t RegNum = Variable::NoRegister); |
232 Variable *legalizeToVar(Operand *From, int32_t RegNum = Variable::NoRegister); | 232 Variable *legalizeToVar(Operand *From, int32_t RegNum = Variable::NoRegister); |
| 233 Operand *legalizeUndef(Operand *From, int32_t RegNum = Variable::NoRegister); |
233 /// Legalize the first source operand for use in the cmp instruction. | 234 /// Legalize the first source operand for use in the cmp instruction. |
234 Operand *legalizeSrc0ForCmp(Operand *Src0, Operand *Src1); | 235 Operand *legalizeSrc0ForCmp(Operand *Src0, Operand *Src1); |
235 /// Turn a pointer operand into a memory operand that can be | 236 /// Turn a pointer operand into a memory operand that can be |
236 /// used by a real load/store operation. Legalizes the operand as well. | 237 /// used by a real load/store operation. Legalizes the operand as well. |
237 /// This is a nop if the operand is already a legal memory operand. | 238 /// This is a nop if the operand is already a legal memory operand. |
238 typename Traits::X86OperandMem *formMemoryOperand(Operand *Ptr, Type Ty, | 239 typename Traits::X86OperandMem *formMemoryOperand(Operand *Ptr, Type Ty, |
239 bool DoLegalize = true); | 240 bool DoLegalize = true); |
240 | 241 |
241 Variable *makeReg(Type Ty, int32_t RegNum = Variable::NoRegister); | 242 Variable *makeReg(Type Ty, int32_t RegNum = Variable::NoRegister); |
242 static Type stackSlotType(); | 243 static Type stackSlotType(); |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 private: | 614 private: |
614 ~TargetX86Base() override {} | 615 ~TargetX86Base() override {} |
615 BoolFolding FoldingInfo; | 616 BoolFolding FoldingInfo; |
616 }; | 617 }; |
617 } // end of namespace X86Internal | 618 } // end of namespace X86Internal |
618 } // end of namespace Ice | 619 } // end of namespace Ice |
619 | 620 |
620 #include "IceTargetLoweringX86BaseImpl.h" | 621 #include "IceTargetLoweringX86BaseImpl.h" |
621 | 622 |
622 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H | 623 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H |
OLD | NEW |