Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Side by Side Diff: src/IceTargetLoweringX8632.h

Issue 1171563002: Subzero: Emit ARM build-attributes in the file scope (as header). (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: use class final, fix for mips32 Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 ~TargetX8632() override {} 574 ~TargetX8632() override {}
575 BoolFolding FoldingInfo; 575 BoolFolding FoldingInfo;
576 }; 576 };
577 577
578 class TargetDataX8632 : public TargetDataLowering { 578 class TargetDataX8632 : public TargetDataLowering {
579 TargetDataX8632() = delete; 579 TargetDataX8632() = delete;
580 TargetDataX8632(const TargetDataX8632 &) = delete; 580 TargetDataX8632(const TargetDataX8632 &) = delete;
581 TargetDataX8632 &operator=(const TargetDataX8632 &) = delete; 581 TargetDataX8632 &operator=(const TargetDataX8632 &) = delete;
582 582
583 public: 583 public:
584 static TargetDataLowering *create(GlobalContext *Ctx) { 584 static std::unique_ptr<TargetDataLowering> create(GlobalContext *Ctx) {
585 return new TargetDataX8632(Ctx); 585 return std::unique_ptr<TargetDataLowering>(new TargetDataX8632(Ctx));
586 } 586 }
587 587
588 void lowerGlobals(std::unique_ptr<VariableDeclarationList> Vars) const final; 588 void lowerGlobals(std::unique_ptr<VariableDeclarationList> Vars) const final;
589 void lowerConstants() const final; 589 void lowerConstants() const final;
590 590
591 protected: 591 protected:
592 explicit TargetDataX8632(GlobalContext *Ctx); 592 explicit TargetDataX8632(GlobalContext *Ctx);
593 593
594 private: 594 private:
595 void lowerGlobal(const VariableDeclaration &Var) const; 595 void lowerGlobal(const VariableDeclaration &Var) const;
596 ~TargetDataX8632() override {} 596 ~TargetDataX8632() override {}
597 template <typename T> static void emitConstantPool(GlobalContext *Ctx); 597 template <typename T> static void emitConstantPool(GlobalContext *Ctx);
598 }; 598 };
599 599
600 class TargetHeaderX8632 final : public TargetHeaderLowering {
601 TargetHeaderX8632() = delete;
602 TargetHeaderX8632(const TargetHeaderX8632 &) = delete;
603 TargetHeaderX8632 &operator=(const TargetHeaderX8632 &) = delete;
604
605 public:
606 static std::unique_ptr<TargetHeaderLowering> create(GlobalContext *Ctx) {
607 return std::unique_ptr<TargetHeaderLowering>(new TargetHeaderX8632(Ctx));
608 }
609
610 protected:
611 explicit TargetHeaderX8632(GlobalContext *Ctx);
612
613 private:
614 ~TargetHeaderX8632() = default;
615 };
616
600 } // end of namespace Ice 617 } // end of namespace Ice
601 618
602 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H 619 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698