| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |