| 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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 size_t SpillAreaSizeBytes; | 468 size_t SpillAreaSizeBytes; |
| 469 llvm::SmallBitVector TypeToRegisterSet[IceType_NUM]; | 469 llvm::SmallBitVector TypeToRegisterSet[IceType_NUM]; |
| 470 llvm::SmallBitVector ScratchRegs; | 470 llvm::SmallBitVector ScratchRegs; |
| 471 llvm::SmallBitVector RegsUsed; | 471 llvm::SmallBitVector RegsUsed; |
| 472 SizeT NextLabelNumber; | 472 SizeT NextLabelNumber; |
| 473 bool ComputedLiveRanges; | 473 bool ComputedLiveRanges; |
| 474 VarList PhysicalRegisters; | 474 VarList PhysicalRegisters; |
| 475 static IceString RegNames[]; | 475 static IceString RegNames[]; |
| 476 | 476 |
| 477 private: | 477 private: |
| 478 TargetX8632(const TargetX8632 &) LLVM_DELETED_FUNCTION; | 478 TargetX8632(const TargetX8632 &) = delete; |
| 479 TargetX8632 &operator=(const TargetX8632 &) LLVM_DELETED_FUNCTION; | 479 TargetX8632 &operator=(const TargetX8632 &) = delete; |
| 480 ~TargetX8632() override {} | 480 ~TargetX8632() override {} |
| 481 template <typename T> void emitConstantPool() const; | 481 template <typename T> void emitConstantPool() const; |
| 482 }; | 482 }; |
| 483 | 483 |
| 484 class TargetGlobalInitX8632 : public TargetGlobalInitLowering { | 484 class TargetGlobalInitX8632 : public TargetGlobalInitLowering { |
| 485 public: | 485 public: |
| 486 static TargetGlobalInitLowering *create(GlobalContext *Ctx) { | 486 static TargetGlobalInitLowering *create(GlobalContext *Ctx) { |
| 487 return new TargetGlobalInitX8632(Ctx); | 487 return new TargetGlobalInitX8632(Ctx); |
| 488 } | 488 } |
| 489 void lower(const IceString &Name, SizeT Align, bool IsInternal, bool IsConst, | 489 void lower(const IceString &Name, SizeT Align, bool IsInternal, bool IsConst, |
| 490 bool IsZeroInitializer, SizeT Size, const char *Data, | 490 bool IsZeroInitializer, SizeT Size, const char *Data, |
| 491 bool DisableTranslation) override; | 491 bool DisableTranslation) override; |
| 492 | 492 |
| 493 protected: | 493 protected: |
| 494 TargetGlobalInitX8632(GlobalContext *Ctx); | 494 TargetGlobalInitX8632(GlobalContext *Ctx); |
| 495 | 495 |
| 496 private: | 496 private: |
| 497 TargetGlobalInitX8632(const TargetGlobalInitX8632 &) LLVM_DELETED_FUNCTION; | 497 TargetGlobalInitX8632(const TargetGlobalInitX8632 &) = delete; |
| 498 TargetGlobalInitX8632 & | 498 TargetGlobalInitX8632 &operator=(const TargetGlobalInitX8632 &) = delete; |
| 499 operator=(const TargetGlobalInitX8632 &) LLVM_DELETED_FUNCTION; | |
| 500 ~TargetGlobalInitX8632() override {} | 499 ~TargetGlobalInitX8632() override {} |
| 501 }; | 500 }; |
| 502 | 501 |
| 503 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const; | 502 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const; |
| 504 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const; | 503 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const; |
| 505 template <> void ConstantFloat::emit(GlobalContext *Ctx) const; | 504 template <> void ConstantFloat::emit(GlobalContext *Ctx) const; |
| 506 template <> void ConstantDouble::emit(GlobalContext *Ctx) const; | 505 template <> void ConstantDouble::emit(GlobalContext *Ctx) const; |
| 507 | 506 |
| 508 } // end of namespace Ice | 507 } // end of namespace Ice |
| 509 | 508 |
| 510 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H | 509 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H |
| OLD | NEW |