| OLD | NEW |
| 1 //===- subzero/src/IceTargetLoweringX8632.cpp - x86-32 lowering -----------===// | 1 //===- subzero/src/IceTargetLoweringX8632.cpp - x86-32 lowering -----------===// |
| 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 implements the TargetLoweringX8632 class, which | 10 // This file implements the TargetLoweringX8632 class, which |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 } // end of namespace dummy3 | 259 } // end of namespace dummy3 |
| 260 | 260 |
| 261 } // end of anonymous namespace | 261 } // end of anonymous namespace |
| 262 | 262 |
| 263 TargetX8632::TargetX8632(Cfg *Func) | 263 TargetX8632::TargetX8632(Cfg *Func) |
| 264 : TargetLowering(Func), | 264 : TargetLowering(Func), |
| 265 InstructionSet(static_cast<X86InstructionSet>( | 265 InstructionSet(static_cast<X86InstructionSet>( |
| 266 Func->getContext()->getFlags().getTargetInstructionSet() - | 266 Func->getContext()->getFlags().getTargetInstructionSet() - |
| 267 TargetInstructionSet::X86InstructionSet_Begin)), | 267 TargetInstructionSet::X86InstructionSet_Begin)), |
| 268 IsEbpBasedFrame(false), NeedsStackAlignment(false), FrameSizeLocals(0), | 268 IsEbpBasedFrame(false), NeedsStackAlignment(false), FrameSizeLocals(0), |
| 269 SpillAreaSizeBytes(0), NextLabelNumber(0) { | 269 SpillAreaSizeBytes(0) { |
| 270 static_assert((X86InstructionSet::End - X86InstructionSet::Begin) == | 270 static_assert((X86InstructionSet::End - X86InstructionSet::Begin) == |
| 271 (TargetInstructionSet::X86InstructionSet_End - | 271 (TargetInstructionSet::X86InstructionSet_End - |
| 272 TargetInstructionSet::X86InstructionSet_Begin), | 272 TargetInstructionSet::X86InstructionSet_Begin), |
| 273 "X86InstructionSet range different from TargetInstructionSet"); | 273 "X86InstructionSet range different from TargetInstructionSet"); |
| 274 // TODO: Don't initialize IntegerRegisters and friends every time. | 274 // TODO: Don't initialize IntegerRegisters and friends every time. |
| 275 // Instead, initialize in some sort of static initializer for the | 275 // Instead, initialize in some sort of static initializer for the |
| 276 // class. | 276 // class. |
| 277 llvm::SmallBitVector IntegerRegisters(RegX8632::Reg_NUM); | 277 llvm::SmallBitVector IntegerRegisters(RegX8632::Reg_NUM); |
| 278 llvm::SmallBitVector IntegerRegistersI8(RegX8632::Reg_NUM); | 278 llvm::SmallBitVector IntegerRegistersI8(RegX8632::Reg_NUM); |
| 279 llvm::SmallBitVector FloatRegisters(RegX8632::Reg_NUM); | 279 llvm::SmallBitVector FloatRegisters(RegX8632::Reg_NUM); |
| (...skipping 4593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4873 case FT_Asm: | 4873 case FT_Asm: |
| 4874 case FT_Iasm: { | 4874 case FT_Iasm: { |
| 4875 OstreamLocker L(Ctx); | 4875 OstreamLocker L(Ctx); |
| 4876 emitConstantPool<PoolTypeConverter<float>>(Ctx); | 4876 emitConstantPool<PoolTypeConverter<float>>(Ctx); |
| 4877 emitConstantPool<PoolTypeConverter<double>>(Ctx); | 4877 emitConstantPool<PoolTypeConverter<double>>(Ctx); |
| 4878 } break; | 4878 } break; |
| 4879 } | 4879 } |
| 4880 } | 4880 } |
| 4881 | 4881 |
| 4882 } // end of namespace Ice | 4882 } // end of namespace Ice |
| OLD | NEW |