| OLD | NEW |
| 1 //===- subzero/src/IceTargetLoweringX8632.h - x86-32 lowering ---*- C++ -*-===// | 1 //===- subzero/src/IceTargetLoweringX8632.h - x86-32 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 // This file declares the TargetLoweringX8632 class, which | 10 // This file declares the TargetLoweringX8632 class, which |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 }; | 222 }; |
| 223 typedef uint32_t LegalMask; | 223 typedef uint32_t LegalMask; |
| 224 Operand *legalize(Operand *From, LegalMask Allowed = Legal_All, | 224 Operand *legalize(Operand *From, LegalMask Allowed = Legal_All, |
| 225 int32_t RegNum = Variable::NoRegister); | 225 int32_t RegNum = Variable::NoRegister); |
| 226 Variable *legalizeToVar(Operand *From, int32_t RegNum = Variable::NoRegister); | 226 Variable *legalizeToVar(Operand *From, int32_t RegNum = Variable::NoRegister); |
| 227 // Legalize the first source operand for use in the cmp instruction. | 227 // Legalize the first source operand for use in the cmp instruction. |
| 228 Operand *legalizeSrc0ForCmp(Operand *Src0, Operand *Src1); | 228 Operand *legalizeSrc0ForCmp(Operand *Src0, Operand *Src1); |
| 229 // Turn a pointer operand into a memory operand that can be | 229 // Turn a pointer operand into a memory operand that can be |
| 230 // used by a real load/store operation. Legalizes the operand as well. | 230 // used by a real load/store operation. Legalizes the operand as well. |
| 231 // This is a nop if the operand is already a legal memory operand. | 231 // This is a nop if the operand is already a legal memory operand. |
| 232 OperandX8632Mem *FormMemoryOperand(Operand *Ptr, Type Ty); | 232 OperandX8632Mem *formMemoryOperand(Operand *Ptr, Type Ty); |
| 233 | 233 |
| 234 Variable *makeReg(Type Ty, int32_t RegNum = Variable::NoRegister); | 234 Variable *makeReg(Type Ty, int32_t RegNum = Variable::NoRegister); |
| 235 static Type stackSlotType(); | 235 static Type stackSlotType(); |
| 236 | 236 |
| 237 Variable *copyToReg(Operand *Src, int32_t RegNum = Variable::NoRegister); | 237 Variable *copyToReg(Operand *Src, int32_t RegNum = Variable::NoRegister); |
| 238 | 238 |
| 239 // Returns a vector in a register with the given constant entries. | 239 // Returns a vector in a register with the given constant entries. |
| 240 Variable *makeVectorOfZeros(Type Ty, int32_t RegNum = Variable::NoRegister); | 240 Variable *makeVectorOfZeros(Type Ty, int32_t RegNum = Variable::NoRegister); |
| 241 Variable *makeVectorOfOnes(Type Ty, int32_t RegNum = Variable::NoRegister); | 241 Variable *makeVectorOfOnes(Type Ty, int32_t RegNum = Variable::NoRegister); |
| 242 Variable *makeVectorOfMinusOnes(Type Ty, | 242 Variable *makeVectorOfMinusOnes(Type Ty, |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 | 591 |
| 592 private: | 592 private: |
| 593 void lowerGlobal(const VariableDeclaration &Var) const; | 593 void lowerGlobal(const VariableDeclaration &Var) const; |
| 594 ~TargetDataX8632() override {} | 594 ~TargetDataX8632() override {} |
| 595 template <typename T> static void emitConstantPool(GlobalContext *Ctx); | 595 template <typename T> static void emitConstantPool(GlobalContext *Ctx); |
| 596 }; | 596 }; |
| 597 | 597 |
| 598 } // end of namespace Ice | 598 } // end of namespace Ice |
| 599 | 599 |
| 600 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H | 600 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H |
| OLD | NEW |