| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 InstCall *Call = InstCall::create(Func, MaxSrcs, Dest, CallTarget); | 146 InstCall *Call = InstCall::create(Func, MaxSrcs, Dest, CallTarget); |
| 147 return Call; | 147 return Call; |
| 148 } | 148 } |
| 149 static Type stackSlotType(); | 149 static Type stackSlotType(); |
| 150 | 150 |
| 151 Variable *copyToReg(Operand *Src, int32_t RegNum = Variable::NoRegister); | 151 Variable *copyToReg(Operand *Src, int32_t RegNum = Variable::NoRegister); |
| 152 | 152 |
| 153 // Returns a vector in a register with the given constant entries. | 153 // Returns a vector in a register with the given constant entries. |
| 154 Variable *makeVectorOfZeros(Type Ty, int32_t RegNum = Variable::NoRegister); | 154 Variable *makeVectorOfZeros(Type Ty, int32_t RegNum = Variable::NoRegister); |
| 155 Variable *makeVectorOfOnes(Type Ty, int32_t RegNum = Variable::NoRegister); | 155 Variable *makeVectorOfOnes(Type Ty, int32_t RegNum = Variable::NoRegister); |
| 156 Variable *makeVectorOfMinusOnes(Type Ty, |
| 157 int32_t RegNum = Variable::NoRegister); |
| 158 Variable *makeVectorOfHighOrderBits(Type Ty, |
| 159 int32_t RegNum = Variable::NoRegister); |
| 156 | 160 |
| 157 // Return a memory operand corresponding to a stack allocated Variable. | 161 // Return a memory operand corresponding to a stack allocated Variable. |
| 158 OperandX8632Mem *getMemoryOperandForStackSlot(Type Ty, Variable *Slot, | 162 OperandX8632Mem *getMemoryOperandForStackSlot(Type Ty, Variable *Slot, |
| 159 uint32_t Offset = 0); | 163 uint32_t Offset = 0); |
| 160 | 164 |
| 161 // The following are helpers that insert lowered x86 instructions | 165 // The following are helpers that insert lowered x86 instructions |
| 162 // with minimal syntactic overhead, so that the lowering code can | 166 // with minimal syntactic overhead, so that the lowering code can |
| 163 // look as close to assembly as practical. | 167 // look as close to assembly as practical. |
| 164 void _adc(Variable *Dest, Operand *Src0) { | 168 void _adc(Variable *Dest, Operand *Src0) { |
| 165 Context.insert(InstX8632Adc::create(Func, Dest, Src0)); | 169 Context.insert(InstX8632Adc::create(Func, Dest, Src0)); |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 virtual ~TargetGlobalInitX8632() {} | 452 virtual ~TargetGlobalInitX8632() {} |
| 449 }; | 453 }; |
| 450 | 454 |
| 451 template <> void ConstantInteger::emit(GlobalContext *Ctx) const; | 455 template <> void ConstantInteger::emit(GlobalContext *Ctx) const; |
| 452 template <> void ConstantFloat::emit(GlobalContext *Ctx) const; | 456 template <> void ConstantFloat::emit(GlobalContext *Ctx) const; |
| 453 template <> void ConstantDouble::emit(GlobalContext *Ctx) const; | 457 template <> void ConstantDouble::emit(GlobalContext *Ctx) const; |
| 454 | 458 |
| 455 } // end of namespace Ice | 459 } // end of namespace Ice |
| 456 | 460 |
| 457 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H | 461 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H |
| OLD | NEW |