| OLD | NEW |
| 1 //===- subzero/src/IceTargetLoweringMIPS32.h - MIPS32 lowering ---*- C++-*-===// | 1 //===- subzero/src/IceTargetLoweringMIPS32.h - MIPS32 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 TargetLoweringMIPS32 class, which implements the | 10 // This file declares the TargetLoweringMIPS32 class, which implements the |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 class TargetDataMIPS32 final : public TargetDataLowering { | 130 class TargetDataMIPS32 final : public TargetDataLowering { |
| 131 TargetDataMIPS32() = delete; | 131 TargetDataMIPS32() = delete; |
| 132 TargetDataMIPS32(const TargetDataMIPS32 &) = delete; | 132 TargetDataMIPS32(const TargetDataMIPS32 &) = delete; |
| 133 TargetDataMIPS32 &operator=(const TargetDataMIPS32 &) = delete; | 133 TargetDataMIPS32 &operator=(const TargetDataMIPS32 &) = delete; |
| 134 | 134 |
| 135 public: | 135 public: |
| 136 static std::unique_ptr<TargetDataLowering> create(GlobalContext *Ctx) { | 136 static std::unique_ptr<TargetDataLowering> create(GlobalContext *Ctx) { |
| 137 return std::unique_ptr<TargetDataLowering>(new TargetDataMIPS32(Ctx)); | 137 return std::unique_ptr<TargetDataLowering>(new TargetDataMIPS32(Ctx)); |
| 138 } | 138 } |
| 139 | 139 |
| 140 void lowerGlobals(std::unique_ptr<VariableDeclarationList> Vars) override; | 140 void lowerGlobals(const VariableDeclarationList &Vars, |
| 141 void lowerConstants() override; | 141 const IceString &SectionSuffix) override; |
| 142 void lowerConstants(const IceString &SectionSuffix) override; |
| 142 | 143 |
| 143 protected: | 144 protected: |
| 144 explicit TargetDataMIPS32(GlobalContext *Ctx); | 145 explicit TargetDataMIPS32(GlobalContext *Ctx); |
| 145 | 146 |
| 146 private: | 147 private: |
| 147 ~TargetDataMIPS32() override {} | 148 ~TargetDataMIPS32() override {} |
| 148 template <typename T> static void emitConstantPool(GlobalContext *Ctx); | 149 template <typename T> static void emitConstantPool(GlobalContext *Ctx); |
| 149 }; | 150 }; |
| 150 | 151 |
| 151 class TargetHeaderMIPS32 final : public TargetHeaderLowering { | 152 class TargetHeaderMIPS32 final : public TargetHeaderLowering { |
| 152 TargetHeaderMIPS32() = delete; | 153 TargetHeaderMIPS32() = delete; |
| 153 TargetHeaderMIPS32(const TargetHeaderMIPS32 &) = delete; | 154 TargetHeaderMIPS32(const TargetHeaderMIPS32 &) = delete; |
| 154 TargetHeaderMIPS32 &operator=(const TargetHeaderMIPS32 &) = delete; | 155 TargetHeaderMIPS32 &operator=(const TargetHeaderMIPS32 &) = delete; |
| 155 | 156 |
| 156 public: | 157 public: |
| 157 static std::unique_ptr<TargetHeaderLowering> create(GlobalContext *Ctx) { | 158 static std::unique_ptr<TargetHeaderLowering> create(GlobalContext *Ctx) { |
| 158 return std::unique_ptr<TargetHeaderLowering>(new TargetHeaderMIPS32(Ctx)); | 159 return std::unique_ptr<TargetHeaderLowering>(new TargetHeaderMIPS32(Ctx)); |
| 159 } | 160 } |
| 160 | 161 |
| 161 protected: | 162 protected: |
| 162 explicit TargetHeaderMIPS32(GlobalContext *Ctx); | 163 explicit TargetHeaderMIPS32(GlobalContext *Ctx); |
| 163 | 164 |
| 164 private: | 165 private: |
| 165 ~TargetHeaderMIPS32() = default; | 166 ~TargetHeaderMIPS32() = default; |
| 166 }; | 167 }; |
| 167 | 168 |
| 168 } // end of namespace Ice | 169 } // end of namespace Ice |
| 169 | 170 |
| 170 #endif // SUBZERO_SRC_ICETARGETLOWERINGMIPS32_H | 171 #endif // SUBZERO_SRC_ICETARGETLOWERINGMIPS32_H |
| OLD | NEW |