| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 enum OperandLegalization { | 239 enum OperandLegalization { |
| 240 Legal_None = 0, | 240 Legal_None = 0, |
| 241 Legal_Reg = 1 << 0, // physical register, not stack location | 241 Legal_Reg = 1 << 0, // physical register, not stack location |
| 242 Legal_Imm = 1 << 1, | 242 Legal_Imm = 1 << 1, |
| 243 Legal_Mem = 1 << 2, // includes [eax+4*ecx] as well as [esp+12] | 243 Legal_Mem = 1 << 2, // includes [eax+4*ecx] as well as [esp+12] |
| 244 Legal_All = ~Legal_None | 244 Legal_All = ~Legal_None |
| 245 }; | 245 }; |
| 246 typedef uint32_t LegalMask; | 246 typedef uint32_t LegalMask; |
| 247 Operand *legalize(Operand *From, LegalMask Allowed = Legal_All, | 247 Operand *legalize(Operand *From, LegalMask Allowed = Legal_All, |
| 248 int32_t RegNum = Variable::NoRegister); | 248 int32_t RegNum = Variable::NoRegister); |
| 249 Variable *legalizeToVar(Operand *From, int32_t RegNum = Variable::NoRegister); | 249 Variable *legalizeToReg(Operand *From, int32_t RegNum = Variable::NoRegister); |
| 250 /// Legalize the first source operand for use in the cmp instruction. | 250 /// Legalize the first source operand for use in the cmp instruction. |
| 251 Operand *legalizeSrc0ForCmp(Operand *Src0, Operand *Src1); | 251 Operand *legalizeSrc0ForCmp(Operand *Src0, Operand *Src1); |
| 252 /// Turn a pointer operand into a memory operand that can be | 252 /// Turn a pointer operand into a memory operand that can be |
| 253 /// used by a real load/store operation. Legalizes the operand as well. | 253 /// used by a real load/store operation. Legalizes the operand as well. |
| 254 /// This is a nop if the operand is already a legal memory operand. | 254 /// This is a nop if the operand is already a legal memory operand. |
| 255 typename Traits::X86OperandMem *formMemoryOperand(Operand *Ptr, Type Ty, | 255 typename Traits::X86OperandMem *formMemoryOperand(Operand *Ptr, Type Ty, |
| 256 bool DoLegalize = true); | 256 bool DoLegalize = true); |
| 257 | 257 |
| 258 Variable *makeReg(Type Ty, int32_t RegNum = Variable::NoRegister); | 258 Variable *makeReg(Type Ty, int32_t RegNum = Variable::NoRegister); |
| 259 static Type stackSlotType(); | 259 static Type stackSlotType(); |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 private: | 630 private: |
| 631 ~TargetX86Base() override {} | 631 ~TargetX86Base() override {} |
| 632 BoolFolding FoldingInfo; | 632 BoolFolding FoldingInfo; |
| 633 }; | 633 }; |
| 634 } // end of namespace X86Internal | 634 } // end of namespace X86Internal |
| 635 } // end of namespace Ice | 635 } // end of namespace Ice |
| 636 | 636 |
| 637 #include "IceTargetLoweringX86BaseImpl.h" | 637 #include "IceTargetLoweringX86BaseImpl.h" |
| 638 | 638 |
| 639 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H | 639 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H |
| OLD | NEW |