| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 // This is a nop if the operand is already a legal memory operand. | 162 // This is a nop if the operand is already a legal memory operand. |
| 163 OperandX8632Mem *FormMemoryOperand(Operand *Ptr, Type Ty); | 163 OperandX8632Mem *FormMemoryOperand(Operand *Ptr, Type Ty); |
| 164 | 164 |
| 165 Variable *makeReg(Type Ty, int32_t RegNum = Variable::NoRegister); | 165 Variable *makeReg(Type Ty, int32_t RegNum = Variable::NoRegister); |
| 166 InstCall *makeHelperCall(const IceString &Name, Variable *Dest, | 166 InstCall *makeHelperCall(const IceString &Name, Variable *Dest, |
| 167 SizeT MaxSrcs) { | 167 SizeT MaxSrcs) { |
| 168 bool SuppressMangling = true; | 168 bool SuppressMangling = true; |
| 169 const Type FunctionPointerType = IceType_i32; | 169 const Type FunctionPointerType = IceType_i32; |
| 170 Constant *CallTarget = | 170 Constant *CallTarget = |
| 171 Ctx->getConstantSym(FunctionPointerType, 0, Name, SuppressMangling); | 171 Ctx->getConstantSym(FunctionPointerType, 0, Name, SuppressMangling); |
| 172 InstCall *Call = InstCall::create(Func, MaxSrcs, Dest, CallTarget); | 172 InstCall *Call = InstCall::create(Func, MaxSrcs, Dest, CallTarget, false); |
| 173 return Call; | 173 return Call; |
| 174 } | 174 } |
| 175 static Type stackSlotType(); | 175 static Type stackSlotType(); |
| 176 | 176 |
| 177 Variable *copyToReg(Operand *Src, int32_t RegNum = Variable::NoRegister); | 177 Variable *copyToReg(Operand *Src, int32_t RegNum = Variable::NoRegister); |
| 178 | 178 |
| 179 // Returns a vector in a register with the given constant entries. | 179 // Returns a vector in a register with the given constant entries. |
| 180 Variable *makeVectorOfZeros(Type Ty, int32_t RegNum = Variable::NoRegister); | 180 Variable *makeVectorOfZeros(Type Ty, int32_t RegNum = Variable::NoRegister); |
| 181 Variable *makeVectorOfOnes(Type Ty, int32_t RegNum = Variable::NoRegister); | 181 Variable *makeVectorOfOnes(Type Ty, int32_t RegNum = Variable::NoRegister); |
| 182 Variable *makeVectorOfMinusOnes(Type Ty, | 182 Variable *makeVectorOfMinusOnes(Type Ty, |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 }; | 511 }; |
| 512 | 512 |
| 513 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const; | 513 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const; |
| 514 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const; | 514 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const; |
| 515 template <> void ConstantFloat::emit(GlobalContext *Ctx) const; | 515 template <> void ConstantFloat::emit(GlobalContext *Ctx) const; |
| 516 template <> void ConstantDouble::emit(GlobalContext *Ctx) const; | 516 template <> void ConstantDouble::emit(GlobalContext *Ctx) const; |
| 517 | 517 |
| 518 } // end of namespace Ice | 518 } // end of namespace Ice |
| 519 | 519 |
| 520 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H | 520 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H |
| OLD | NEW |