| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 Variable *legalizeToVar(Operand *From, int32_t RegNum = Variable::NoRegister); | 155 Variable *legalizeToVar(Operand *From, int32_t RegNum = Variable::NoRegister); |
| 156 // Turn a pointer operand into a memory operand that can be | 156 // Turn a pointer operand into a memory operand that can be |
| 157 // used by a real load/store operation. Legalizes the operand as well. | 157 // used by a real load/store operation. Legalizes the operand as well. |
| 158 // This is a nop if the operand is already a legal memory operand. | 158 // This is a nop if the operand is already a legal memory operand. |
| 159 OperandX8632Mem *FormMemoryOperand(Operand *Ptr, Type Ty); | 159 OperandX8632Mem *FormMemoryOperand(Operand *Ptr, Type Ty); |
| 160 | 160 |
| 161 Variable *makeReg(Type Ty, int32_t RegNum = Variable::NoRegister); | 161 Variable *makeReg(Type Ty, int32_t RegNum = Variable::NoRegister); |
| 162 InstCall *makeHelperCall(const IceString &Name, Variable *Dest, | 162 InstCall *makeHelperCall(const IceString &Name, Variable *Dest, |
| 163 SizeT MaxSrcs) { | 163 SizeT MaxSrcs) { |
| 164 bool SuppressMangling = true; | 164 bool SuppressMangling = true; |
| 165 const Type FunctionPointerType = IceType_i32; | 165 Constant *CallTarget = Ctx->getConstantSym(0, Name, SuppressMangling); |
| 166 Constant *CallTarget = | |
| 167 Ctx->getConstantSym(FunctionPointerType, 0, Name, SuppressMangling); | |
| 168 InstCall *Call = InstCall::create(Func, MaxSrcs, Dest, CallTarget, false); | 166 InstCall *Call = InstCall::create(Func, MaxSrcs, Dest, CallTarget, false); |
| 169 return Call; | 167 return Call; |
| 170 } | 168 } |
| 171 static Type stackSlotType(); | 169 static Type stackSlotType(); |
| 172 | 170 |
| 173 Variable *copyToReg(Operand *Src, int32_t RegNum = Variable::NoRegister); | 171 Variable *copyToReg(Operand *Src, int32_t RegNum = Variable::NoRegister); |
| 174 | 172 |
| 175 // Returns a vector in a register with the given constant entries. | 173 // Returns a vector in a register with the given constant entries. |
| 176 Variable *makeVectorOfZeros(Type Ty, int32_t RegNum = Variable::NoRegister); | 174 Variable *makeVectorOfZeros(Type Ty, int32_t RegNum = Variable::NoRegister); |
| 177 Variable *makeVectorOfOnes(Type Ty, int32_t RegNum = Variable::NoRegister); | 175 Variable *makeVectorOfOnes(Type Ty, int32_t RegNum = Variable::NoRegister); |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 }; | 507 }; |
| 510 | 508 |
| 511 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const; | 509 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const; |
| 512 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const; | 510 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const; |
| 513 template <> void ConstantFloat::emit(GlobalContext *Ctx) const; | 511 template <> void ConstantFloat::emit(GlobalContext *Ctx) const; |
| 514 template <> void ConstantDouble::emit(GlobalContext *Ctx) const; | 512 template <> void ConstantDouble::emit(GlobalContext *Ctx) const; |
| 515 | 513 |
| 516 } // end of namespace Ice | 514 } // end of namespace Ice |
| 517 | 515 |
| 518 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H | 516 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H |
| OLD | NEW |