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