| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 void livenessLightweight(); | 84 void livenessLightweight(); |
| 85 bool liveness(Liveness *Liveness); | 85 bool liveness(Liveness *Liveness); |
| 86 void livenessAddIntervals(Liveness *Liveness, InstNumberT FirstInstNum, | 86 void livenessAddIntervals(Liveness *Liveness, InstNumberT FirstInstNum, |
| 87 InstNumberT LastInstNum); | 87 InstNumberT LastInstNum); |
| 88 void contractIfEmpty(); | 88 void contractIfEmpty(); |
| 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); |
| 95 |
| 94 private: | 96 private: |
| 95 CfgNode(Cfg *Func, SizeT LabelIndex); | 97 CfgNode(Cfg *Func, SizeT LabelIndex); |
| 96 Cfg *const Func; | 98 Cfg *const Func; |
| 97 SizeT Number; // label index | 99 SizeT Number; // label index |
| 98 Cfg::IdentifierIndexType NameIndex; // index into Cfg::NodeNames table | 100 Cfg::IdentifierIndexType NameIndex; // index into Cfg::NodeNames table |
| 99 bool HasReturn; // does this block need an epilog? | 101 bool HasReturn; // does this block need an epilog? |
| 100 bool NeedsPlacement; | 102 bool NeedsPlacement; |
| 101 InstNumberT InstCountEstimate; // rough instruction count estimate | 103 InstNumberT InstCountEstimate; // rough instruction count estimate |
| 102 NodeList InEdges; // in no particular order | 104 NodeList InEdges; // in no particular order |
| 103 NodeList OutEdges; // in no particular order | 105 NodeList OutEdges; // in no particular order |
| 104 PhiList Phis; // unordered set of phi instructions | 106 PhiList Phis; // unordered set of phi instructions |
| 105 InstList Insts; // ordered list of non-phi instructions | 107 InstList Insts; // ordered list of non-phi instructions |
| 106 }; | 108 }; |
| 107 | 109 |
| 108 } // end of namespace Ice | 110 } // end of namespace Ice |
| 109 | 111 |
| 110 #endif // SUBZERO_SRC_ICECFGNODE_H | 112 #endif // SUBZERO_SRC_ICECFGNODE_H |
| OLD | NEW |