| 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 /// \file | 10 /// \file |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 | 395 |
| 396 protected: | 396 protected: |
| 397 void emitGlobal(const VariableDeclaration &Var, | 397 void emitGlobal(const VariableDeclaration &Var, |
| 398 const IceString &SectionSuffix); | 398 const IceString &SectionSuffix); |
| 399 | 399 |
| 400 /// For now, we assume .long is the right directive for emitting 4 byte | 400 /// For now, we assume .long is the right directive for emitting 4 byte |
| 401 /// emit global relocations. However, LLVM MIPS usually uses .4byte instead. | 401 /// emit global relocations. However, LLVM MIPS usually uses .4byte instead. |
| 402 /// Perhaps there is some difference when the location is unaligned. | 402 /// Perhaps there is some difference when the location is unaligned. |
| 403 static const char *getEmit32Directive() { return ".long"; } | 403 static const char *getEmit32Directive() { return ".long"; } |
| 404 | 404 |
| 405 explicit TargetDataLowering(GlobalContext *Ctx) : Ctx(Ctx) {} | 405 explicit TargetDataLowering(GlobalContext *MyCtx) : Ctx(MyCtx) {} |
| 406 GlobalContext *Ctx; | 406 GlobalContext *Ctx; |
| 407 }; | 407 }; |
| 408 | 408 |
| 409 /// TargetHeaderLowering is used to "lower" the header of an output file. | 409 /// TargetHeaderLowering is used to "lower" the header of an output file. |
| 410 /// It writes out the target-specific header attributes. E.g., for ARM | 410 /// It writes out the target-specific header attributes. E.g., for ARM |
| 411 /// this writes out the build attributes (float ABI, etc.). | 411 /// this writes out the build attributes (float ABI, etc.). |
| 412 class TargetHeaderLowering { | 412 class TargetHeaderLowering { |
| 413 TargetHeaderLowering() = delete; | 413 TargetHeaderLowering() = delete; |
| 414 TargetHeaderLowering(const TargetHeaderLowering &) = delete; | 414 TargetHeaderLowering(const TargetHeaderLowering &) = delete; |
| 415 TargetHeaderLowering &operator=(const TargetHeaderLowering &) = delete; | 415 TargetHeaderLowering &operator=(const TargetHeaderLowering &) = delete; |
| 416 | 416 |
| 417 public: | 417 public: |
| 418 static std::unique_ptr<TargetHeaderLowering> | 418 static std::unique_ptr<TargetHeaderLowering> |
| 419 createLowering(GlobalContext *Ctx); | 419 createLowering(GlobalContext *Ctx); |
| 420 virtual ~TargetHeaderLowering(); | 420 virtual ~TargetHeaderLowering(); |
| 421 | 421 |
| 422 virtual void lower() {} | 422 virtual void lower() {} |
| 423 | 423 |
| 424 protected: | 424 protected: |
| 425 explicit TargetHeaderLowering(GlobalContext *Ctx) : Ctx(Ctx) {} | 425 explicit TargetHeaderLowering(GlobalContext *MyCtx) : Ctx(MyCtx) {} |
| 426 GlobalContext *Ctx; | 426 GlobalContext *Ctx; |
| 427 }; | 427 }; |
| 428 | 428 |
| 429 } // end of namespace Ice | 429 } // end of namespace Ice |
| 430 | 430 |
| 431 #endif // SUBZERO_SRC_ICETARGETLOWERING_H | 431 #endif // SUBZERO_SRC_ICETARGETLOWERING_H |
| OLD | NEW |