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

Side by Side Diff: src/IceCfgNode.h

Issue 1197223002: Subzero: Use C++11 member initializers where practical. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rebase Created 5 years, 6 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.cpp ('k') | src/IceCfgNode.cpp » ('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
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 void doBranchOpt(const CfgNode *NextNode); 89 void doBranchOpt(const CfgNode *NextNode);
90 void emit(Cfg *Func) const; 90 void emit(Cfg *Func) const;
91 void emitIAS(Cfg *Func) const; 91 void emitIAS(Cfg *Func) const;
92 void dump(Cfg *Func) const; 92 void dump(Cfg *Func) const;
93 93
94 void profileExecutionCount(VariableDeclaration *Var); 94 void profileExecutionCount(VariableDeclaration *Var);
95 95
96 private: 96 private:
97 CfgNode(Cfg *Func, SizeT LabelIndex); 97 CfgNode(Cfg *Func, SizeT LabelIndex);
98 Cfg *const Func; 98 Cfg *const Func;
99 SizeT Number; // label index 99 SizeT Number; // label index
100 Cfg::IdentifierIndexType NameIndex; // index into Cfg::NodeNames table 100 Cfg::IdentifierIndexType NameIndex =
101 bool HasReturn; // does this block need an epilog? 101 Cfg::IdentifierIndexInvalid; // index into Cfg::NodeNames table
102 bool NeedsPlacement; 102 bool HasReturn = false; // does this block need an epilog?
103 InstNumberT InstCountEstimate; // rough instruction count estimate 103 bool NeedsPlacement = false;
104 NodeList InEdges; // in no particular order 104 InstNumberT InstCountEstimate = 0; // rough instruction count estimate
105 NodeList OutEdges; // in no particular order 105 NodeList InEdges; // in no particular order
106 PhiList Phis; // unordered set of phi instructions 106 NodeList OutEdges; // in no particular order
107 InstList Insts; // ordered list of non-phi instructions 107 PhiList Phis; // unordered set of phi instructions
108 InstList Insts; // ordered list of non-phi instructions
108 }; 109 };
109 110
110 } // end of namespace Ice 111 } // end of namespace Ice
111 112
112 #endif // SUBZERO_SRC_ICECFGNODE_H 113 #endif // SUBZERO_SRC_ICECFGNODE_H
OLDNEW
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceCfgNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698