| OLD | NEW |
| 1 //===- subzero/src/IceTargetLoweringARM32.h - ARM32 lowering ----*- C++ -*-===// | 1 //===- subzero/src/IceTargetLoweringARM32.h - ARM32 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 TargetLoweringARM32 class, which implements the | 10 // This file declares the TargetLoweringARM32 class, which implements the |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 private: | 301 private: |
| 302 ~TargetARM32() override {} | 302 ~TargetARM32() override {} |
| 303 }; | 303 }; |
| 304 | 304 |
| 305 class TargetDataARM32 : public TargetDataLowering { | 305 class TargetDataARM32 : public TargetDataLowering { |
| 306 TargetDataARM32() = delete; | 306 TargetDataARM32() = delete; |
| 307 TargetDataARM32(const TargetDataARM32 &) = delete; | 307 TargetDataARM32(const TargetDataARM32 &) = delete; |
| 308 TargetDataARM32 &operator=(const TargetDataARM32 &) = delete; | 308 TargetDataARM32 &operator=(const TargetDataARM32 &) = delete; |
| 309 | 309 |
| 310 public: | 310 public: |
| 311 static TargetDataLowering *create(GlobalContext *Ctx) { | 311 static std::unique_ptr<TargetDataLowering> create(GlobalContext *Ctx) { |
| 312 return new TargetDataARM32(Ctx); | 312 return std::unique_ptr<TargetDataLowering>(new TargetDataARM32(Ctx)); |
| 313 } | 313 } |
| 314 | 314 |
| 315 void lowerGlobals(std::unique_ptr<VariableDeclarationList> Vars) const final; | 315 void lowerGlobals(std::unique_ptr<VariableDeclarationList> Vars) const final; |
| 316 void lowerConstants() const final; | 316 void lowerConstants() const final; |
| 317 | 317 |
| 318 protected: | 318 protected: |
| 319 explicit TargetDataARM32(GlobalContext *Ctx); | 319 explicit TargetDataARM32(GlobalContext *Ctx); |
| 320 | 320 |
| 321 private: | 321 private: |
| 322 void lowerGlobal(const VariableDeclaration &Var) const; | 322 void lowerGlobal(const VariableDeclaration &Var) const; |
| 323 ~TargetDataARM32() override {} | 323 ~TargetDataARM32() override {} |
| 324 template <typename T> static void emitConstantPool(GlobalContext *Ctx); | 324 template <typename T> static void emitConstantPool(GlobalContext *Ctx); |
| 325 }; | 325 }; |
| 326 | 326 |
| 327 class TargetHeaderARM32 final : public TargetHeaderLowering { |
| 328 TargetHeaderARM32() = delete; |
| 329 TargetHeaderARM32(const TargetHeaderARM32 &) = delete; |
| 330 TargetHeaderARM32 &operator=(const TargetHeaderARM32 &) = delete; |
| 331 |
| 332 public: |
| 333 static std::unique_ptr<TargetHeaderLowering> create(GlobalContext *Ctx) { |
| 334 return std::unique_ptr<TargetHeaderLowering>(new TargetHeaderARM32(Ctx)); |
| 335 } |
| 336 |
| 337 void lower(); |
| 338 |
| 339 protected: |
| 340 explicit TargetHeaderARM32(GlobalContext *Ctx); |
| 341 |
| 342 private: |
| 343 ~TargetHeaderARM32() = default; |
| 344 }; |
| 345 |
| 327 } // end of namespace Ice | 346 } // end of namespace Ice |
| 328 | 347 |
| 329 #endif // SUBZERO_SRC_ICETARGETLOWERINGARM32_H | 348 #endif // SUBZERO_SRC_ICETARGETLOWERINGARM32_H |
| OLD | NEW |