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 // This file declares the general driver class for translating ICE to | 10 // This file declares the general driver class for translating ICE to |
11 // machine code. | 11 // machine code. |
12 // | 12 // |
13 //===----------------------------------------------------------------------===// | 13 //===----------------------------------------------------------------------===// |
14 | 14 |
15 #ifndef SUBZERO_SRC_ICETRANSLATOR_H | 15 #ifndef SUBZERO_SRC_ICETRANSLATOR_H |
16 #define SUBZERO_SRC_ICETRANSLATOR_H | 16 #define SUBZERO_SRC_ICETRANSLATOR_H |
17 | 17 |
18 #include "llvm/ADT/OwningPtr.h" | 18 #include <memory> |
19 | 19 |
20 namespace llvm { | 20 namespace llvm { |
21 class Module; | 21 class Module; |
22 } | 22 } |
23 | 23 |
24 namespace Ice { | 24 namespace Ice { |
25 | 25 |
26 class ClFlags; | 26 class ClFlags; |
27 class Cfg; | 27 class Cfg; |
28 class GlobalContext; | 28 class GlobalContext; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // otherwise. | 68 // otherwise. |
69 bool ErrorStatus; | 69 bool ErrorStatus; |
70 // Ideally, Func would be inside the methods that converts IR to | 70 // Ideally, Func would be inside the methods that converts IR to |
71 // functions. However, emitting the constant pool requires a valid | 71 // functions. However, emitting the constant pool requires a valid |
72 // Cfg object, so we need to defer deleting the last non-empty Cfg | 72 // Cfg object, so we need to defer deleting the last non-empty Cfg |
73 // object to emit the constant pool (via emitConstants). TODO: | 73 // object to emit the constant pool (via emitConstants). TODO: |
74 // Since all constants are globally pooled in the GlobalContext | 74 // Since all constants are globally pooled in the GlobalContext |
75 // object, change all Constant related functions to use | 75 // object, change all Constant related functions to use |
76 // GlobalContext instead of Cfg, and then make emitConstantPool use | 76 // GlobalContext instead of Cfg, and then make emitConstantPool use |
77 // that. | 77 // that. |
78 llvm::OwningPtr<Cfg> Func; | 78 std::unique_ptr<Cfg> Func; |
79 | 79 |
80 private: | 80 private: |
81 Translator(const Translator &) LLVM_DELETED_FUNCTION; | 81 Translator(const Translator &) LLVM_DELETED_FUNCTION; |
82 Translator &operator=(const Translator &) LLVM_DELETED_FUNCTION; | 82 Translator &operator=(const Translator &) LLVM_DELETED_FUNCTION; |
83 }; | 83 }; |
84 } | 84 } |
85 | 85 |
86 #endif // SUBZERO_SRC_ICETRANSLATOR_H | 86 #endif // SUBZERO_SRC_ICETRANSLATOR_H |
OLD | NEW |