Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Side by Side Diff: src/IceCfg.h

Issue 952953002: Subzero: Improve class definition hygiene. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix typo Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceAPInt.h ('k') | src/IceCfgNode.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/IceAPInt.h ('k') | src/IceCfgNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698