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 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 489 |
490 virtual void lower(const GlobalAddress &Addr, | 490 virtual void lower(const GlobalVariable &Vbl, bool DisableTranslation) final; |
491 bool DisableTranslation) override; | |
492 | 491 |
493 protected: | 492 protected: |
494 TargetGlobalInitX8632(GlobalContext *Ctx); | 493 TargetGlobalInitX8632(GlobalContext *Ctx); |
495 | 494 |
496 private: | 495 private: |
497 TargetGlobalInitX8632(const TargetGlobalInitX8632 &) = delete; | 496 TargetGlobalInitX8632(const TargetGlobalInitX8632 &) = delete; |
498 TargetGlobalInitX8632 &operator=(const TargetGlobalInitX8632 &) = delete; | 497 TargetGlobalInitX8632 &operator=(const TargetGlobalInitX8632 &) = delete; |
499 ~TargetGlobalInitX8632() override {} | 498 ~TargetGlobalInitX8632() override {} |
500 }; | 499 }; |
501 | 500 |
502 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const; | 501 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const; |
503 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const; | 502 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const; |
504 template <> void ConstantFloat::emit(GlobalContext *Ctx) const; | 503 template <> void ConstantFloat::emit(GlobalContext *Ctx) const; |
505 template <> void ConstantDouble::emit(GlobalContext *Ctx) const; | 504 template <> void ConstantDouble::emit(GlobalContext *Ctx) const; |
506 | 505 |
507 } // end of namespace Ice | 506 } // end of namespace Ice |
508 | 507 |
509 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H | 508 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H |
OLD | NEW |