| OLD | NEW |
| 1 //===- subzero/src/IceTranslator.h - ICE to machine code --------*- C++ -*-===// | 1 //===- subzero/src/IceTranslator.h - ICE to machine code --------*- 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 uint32_t getNextSequenceNumber() { return NextSequenceNumber++; } | 70 uint32_t getNextSequenceNumber() { return NextSequenceNumber++; } |
| 71 | 71 |
| 72 protected: | 72 protected: |
| 73 GlobalContext *Ctx; | 73 GlobalContext *Ctx; |
| 74 uint32_t NextSequenceNumber; | 74 uint32_t NextSequenceNumber; |
| 75 /// ErrorCode of the translation. | 75 /// ErrorCode of the translation. |
| 76 ErrorCode ErrorStatus; | 76 ErrorCode ErrorStatus; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 class CfgOptWorkItem final : public OptWorkItem { |
| 80 CfgOptWorkItem() = delete; |
| 81 CfgOptWorkItem(const CfgOptWorkItem &) = delete; |
| 82 CfgOptWorkItem &operator=(const CfgOptWorkItem &) = delete; |
| 83 |
| 84 public: |
| 85 CfgOptWorkItem(std::unique_ptr<Cfg> Func) : Func(std::move(Func)) {} |
| 86 std::unique_ptr<Cfg> getParsedCfg() override { return std::move(Func); } |
| 87 ~CfgOptWorkItem() override = default; |
| 88 |
| 89 private: |
| 90 std::unique_ptr<Ice::Cfg> Func; |
| 91 }; |
| 92 |
| 79 } // end of namespace Ice | 93 } // end of namespace Ice |
| 80 | 94 |
| 81 #endif // SUBZERO_SRC_ICETRANSLATOR_H | 95 #endif // SUBZERO_SRC_ICETRANSLATOR_H |
| OLD | NEW |