OLD | NEW |
1 //===- subzero/src/IceCfg.h - Control flow graph ----------------*- C++ -*-===// | 1 //===- subzero/src/IceCfg.h - Control flow graph ----------------*- 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 Cfg class, which represents the control flow | 10 // This file declares the Cfg class, which represents the control flow |
11 // graph and the overall per-function compilation context. | 11 // graph and the overall per-function compilation context. |
12 // | 12 // |
13 //===----------------------------------------------------------------------===// | 13 //===----------------------------------------------------------------------===// |
14 | 14 |
15 #ifndef SUBZERO_SRC_ICECFG_H | 15 #ifndef SUBZERO_SRC_ICECFG_H |
16 #define SUBZERO_SRC_ICECFG_H | 16 #define SUBZERO_SRC_ICECFG_H |
17 | 17 |
18 #include "assembler.h" | 18 #include "assembler.h" |
19 #include "IceClFlags.h" | 19 #include "IceClFlags.h" |
20 #include "IceDefs.h" | 20 #include "IceDefs.h" |
21 #include "IceGlobalContext.h" | 21 #include "IceGlobalContext.h" |
22 #include "IceTypes.h" | 22 #include "IceTypes.h" |
23 | 23 |
24 namespace Ice { | 24 namespace Ice { |
25 | 25 |
26 class Cfg { | 26 class Cfg { |
| 27 Cfg() = delete; |
27 Cfg(const Cfg &) = delete; | 28 Cfg(const Cfg &) = delete; |
28 Cfg &operator=(const Cfg &) = delete; | 29 Cfg &operator=(const Cfg &) = delete; |
29 | 30 |
30 public: | 31 public: |
31 ~Cfg(); | 32 ~Cfg(); |
32 | 33 |
33 static std::unique_ptr<Cfg> create(GlobalContext *Ctx, | 34 static std::unique_ptr<Cfg> create(GlobalContext *Ctx, |
34 uint32_t SequenceNumber) { | 35 uint32_t SequenceNumber) { |
35 return std::unique_ptr<Cfg>(new Cfg(Ctx, SequenceNumber)); | 36 return std::unique_ptr<Cfg>(new Cfg(Ctx, SequenceNumber)); |
36 } | 37 } |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 // other uses are possible. | 222 // other uses are possible. |
222 ICE_TLS_DECLARE_FIELD(const Cfg *, CurrentCfg); | 223 ICE_TLS_DECLARE_FIELD(const Cfg *, CurrentCfg); |
223 | 224 |
224 public: | 225 public: |
225 static void TlsInit() { ICE_TLS_INIT_FIELD(CurrentCfg); } | 226 static void TlsInit() { ICE_TLS_INIT_FIELD(CurrentCfg); } |
226 }; | 227 }; |
227 | 228 |
228 } // end of namespace Ice | 229 } // end of namespace Ice |
229 | 230 |
230 #endif // SUBZERO_SRC_ICECFG_H | 231 #endif // SUBZERO_SRC_ICECFG_H |
OLD | NEW |