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

Side by Side Diff: src/IceCfgNode.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/IceCfg.h ('k') | src/IceConditionCodesX8632.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/IceCfgNode.h - Control flow graph node -------*- C++ -*-===// 1 //===- subzero/src/IceCfgNode.h - Control flow graph node -------*- 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 CfgNode class, which represents a single 10 // This file declares the CfgNode class, which represents a single
11 // basic block as its instruction list, in-edge list, and out-edge 11 // basic block as its instruction list, in-edge list, and out-edge
12 // list. 12 // list.
13 // 13 //
14 //===----------------------------------------------------------------------===// 14 //===----------------------------------------------------------------------===//
15 15
16 #ifndef SUBZERO_SRC_ICECFGNODE_H 16 #ifndef SUBZERO_SRC_ICECFGNODE_H
17 #define SUBZERO_SRC_ICECFGNODE_H 17 #define SUBZERO_SRC_ICECFGNODE_H
18 18
19 #include "IceDefs.h" 19 #include "IceDefs.h"
20 #include "IceInst.h" // InstList traits 20 #include "IceInst.h" // InstList traits
21 21
22 namespace Ice { 22 namespace Ice {
23 23
24 class CfgNode { 24 class CfgNode {
25 CfgNode() = delete;
25 CfgNode(const CfgNode &) = delete; 26 CfgNode(const CfgNode &) = delete;
26 CfgNode &operator=(const CfgNode &) = delete; 27 CfgNode &operator=(const CfgNode &) = delete;
27 28
28 public: 29 public:
29 static CfgNode *create(Cfg *Func, SizeT LabelIndex) { 30 static CfgNode *create(Cfg *Func, SizeT LabelIndex) {
30 return new (Func->allocate<CfgNode>()) CfgNode(Func, LabelIndex); 31 return new (Func->allocate<CfgNode>()) CfgNode(Func, LabelIndex);
31 } 32 }
32 33
33 // Access the label number and name for this node. 34 // Access the label number and name for this node.
34 SizeT getIndex() const { return Number; } 35 SizeT getIndex() const { return Number; }
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 InstNumberT InstCountEstimate; // rough instruction count estimate 99 InstNumberT InstCountEstimate; // rough instruction count estimate
99 NodeList InEdges; // in no particular order 100 NodeList InEdges; // in no particular order
100 NodeList OutEdges; // in no particular order 101 NodeList OutEdges; // in no particular order
101 PhiList Phis; // unordered set of phi instructions 102 PhiList Phis; // unordered set of phi instructions
102 InstList Insts; // ordered list of non-phi instructions 103 InstList Insts; // ordered list of non-phi instructions
103 }; 104 };
104 105
105 } // end of namespace Ice 106 } // end of namespace Ice
106 107
107 #endif // SUBZERO_SRC_ICECFGNODE_H 108 #endif // SUBZERO_SRC_ICECFGNODE_H
OLDNEW
« no previous file with comments | « src/IceCfg.h ('k') | src/IceConditionCodesX8632.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698