| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 int32_t RegNum = Variable::NoRegister); | 173 int32_t RegNum = Variable::NoRegister); |
| 174 Variable *makeVectorOfHighOrderBits(Type Ty, | 174 Variable *makeVectorOfHighOrderBits(Type Ty, |
| 175 int32_t RegNum = Variable::NoRegister); | 175 int32_t RegNum = Variable::NoRegister); |
| 176 | 176 |
| 177 // Return a memory operand corresponding to a stack allocated Variable. | 177 // Return a memory operand corresponding to a stack allocated Variable. |
| 178 OperandX8632Mem *getMemoryOperandForStackSlot(Type Ty, Variable *Slot, | 178 OperandX8632Mem *getMemoryOperandForStackSlot(Type Ty, Variable *Slot, |
| 179 uint32_t Offset = 0); | 179 uint32_t Offset = 0); |
| 180 | 180 |
| 181 void makeRandomRegisterPermutation( | 181 void makeRandomRegisterPermutation( |
| 182 llvm::SmallVectorImpl<int32_t> &Permutation, | 182 llvm::SmallVectorImpl<int32_t> &Permutation, |
| 183 const llvm::SmallBitVector &ExcludeRegisters) const; | 183 const llvm::SmallBitVector &ExcludeRegisters) const override; |
| 184 | 184 |
| 185 // The following are helpers that insert lowered x86 instructions | 185 // The following are helpers that insert lowered x86 instructions |
| 186 // with minimal syntactic overhead, so that the lowering code can | 186 // with minimal syntactic overhead, so that the lowering code can |
| 187 // look as close to assembly as practical. | 187 // look as close to assembly as practical. |
| 188 void _adc(Variable *Dest, Operand *Src0) { | 188 void _adc(Variable *Dest, Operand *Src0) { |
| 189 Context.insert(InstX8632Adc::create(Func, Dest, Src0)); | 189 Context.insert(InstX8632Adc::create(Func, Dest, Src0)); |
| 190 } | 190 } |
| 191 void _add(Variable *Dest, Operand *Src0) { | 191 void _add(Variable *Dest, Operand *Src0) { |
| 192 Context.insert(InstX8632Add::create(Func, Dest, Src0)); | 192 Context.insert(InstX8632Add::create(Func, Dest, Src0)); |
| 193 } | 193 } |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 }; | 510 }; |
| 511 | 511 |
| 512 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const; | 512 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const; |
| 513 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const; | 513 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const; |
| 514 template <> void ConstantFloat::emit(GlobalContext *Ctx) const; | 514 template <> void ConstantFloat::emit(GlobalContext *Ctx) const; |
| 515 template <> void ConstantDouble::emit(GlobalContext *Ctx) const; | 515 template <> void ConstantDouble::emit(GlobalContext *Ctx) const; |
| 516 | 516 |
| 517 } // end of namespace Ice | 517 } // end of namespace Ice |
| 518 | 518 |
| 519 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H | 519 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H |
| OLD | NEW |