| 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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 ~TargetX8632() override {} | 475 ~TargetX8632() override {} |
| 476 template <typename T> void emitConstantPool() const; | 476 template <typename T> void emitConstantPool() const; |
| 477 }; | 477 }; |
| 478 | 478 |
| 479 class TargetGlobalInitX8632 : public TargetGlobalInitLowering { | 479 class TargetGlobalInitX8632 : public TargetGlobalInitLowering { |
| 480 public: | 480 public: |
| 481 static TargetGlobalInitLowering *create(GlobalContext *Ctx) { | 481 static TargetGlobalInitLowering *create(GlobalContext *Ctx) { |
| 482 return new TargetGlobalInitX8632(Ctx); | 482 return new TargetGlobalInitX8632(Ctx); |
| 483 } | 483 } |
| 484 | 484 |
| 485 virtual void lower(const GlobalAddress &Addr, | 485 virtual void lower(const VariableDeclaration &Var) final; |
| 486 bool DisableTranslation) override; | |
| 487 | 486 |
| 488 protected: | 487 protected: |
| 489 TargetGlobalInitX8632(GlobalContext *Ctx); | 488 TargetGlobalInitX8632(GlobalContext *Ctx); |
| 490 | 489 |
| 491 private: | 490 private: |
| 492 TargetGlobalInitX8632(const TargetGlobalInitX8632 &) = delete; | 491 TargetGlobalInitX8632(const TargetGlobalInitX8632 &) = delete; |
| 493 TargetGlobalInitX8632 &operator=(const TargetGlobalInitX8632 &) = delete; | 492 TargetGlobalInitX8632 &operator=(const TargetGlobalInitX8632 &) = delete; |
| 494 ~TargetGlobalInitX8632() override {} | 493 ~TargetGlobalInitX8632() override {} |
| 495 }; | 494 }; |
| 496 | 495 |
| 497 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const; | 496 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const; |
| 498 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const; | 497 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const; |
| 499 template <> void ConstantFloat::emit(GlobalContext *Ctx) const; | 498 template <> void ConstantFloat::emit(GlobalContext *Ctx) const; |
| 500 template <> void ConstantDouble::emit(GlobalContext *Ctx) const; | 499 template <> void ConstantDouble::emit(GlobalContext *Ctx) const; |
| 501 | 500 |
| 502 } // end of namespace Ice | 501 } // end of namespace Ice |
| 503 | 502 |
| 504 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H | 503 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H |
| OLD | NEW |