| OLD | NEW |
| 1 //===- subzero/src/IceTargetLowering.h - Lowering interface -----*- C++ -*-===// | 1 //===- subzero/src/IceTargetLowering.h - Lowering interface -----*- 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 TargetLowering, LoweringContext, and | 10 // This file declares the TargetLowering, LoweringContext, and |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 | 382 |
| 383 virtual void | 383 virtual void |
| 384 lowerGlobals(std::unique_ptr<VariableDeclarationList> Vars) const = 0; | 384 lowerGlobals(std::unique_ptr<VariableDeclarationList> Vars) const = 0; |
| 385 virtual void lowerConstants() const = 0; | 385 virtual void lowerConstants() const = 0; |
| 386 | 386 |
| 387 protected: | 387 protected: |
| 388 explicit TargetDataLowering(GlobalContext *Ctx) : Ctx(Ctx) {} | 388 explicit TargetDataLowering(GlobalContext *Ctx) : Ctx(Ctx) {} |
| 389 GlobalContext *Ctx; | 389 GlobalContext *Ctx; |
| 390 }; | 390 }; |
| 391 | 391 |
| 392 // TargetHeaderLowering is used to "lower" the header of an output file. |
| 393 // It writes out the target-specific header attributes. E.g., for ARM |
| 394 // this writes out the build attributes (float ABI, etc.). |
| 395 class TargetHeaderLowering { |
| 396 TargetHeaderLowering() = delete; |
| 397 TargetHeaderLowering(const TargetHeaderLowering &) = delete; |
| 398 TargetHeaderLowering &operator=(const TargetHeaderLowering &) = delete; |
| 399 |
| 400 public: |
| 401 static std::unique_ptr<TargetHeaderLowering> createLowering(GlobalContext *Ctx
); |
| 402 virtual ~TargetHeaderLowering(); |
| 403 |
| 404 virtual void lower() {} |
| 405 |
| 406 protected: |
| 407 explicit TargetHeaderLowering(GlobalContext *Ctx) : Ctx(Ctx) {} |
| 408 GlobalContext *Ctx; |
| 409 }; |
| 410 |
| 392 } // end of namespace Ice | 411 } // end of namespace Ice |
| 393 | 412 |
| 394 #endif // SUBZERO_SRC_ICETARGETLOWERING_H | 413 #endif // SUBZERO_SRC_ICETARGETLOWERING_H |
| OLD | NEW |