| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 void advancedPhiLowering(); | 80 void advancedPhiLowering(); |
| 81 void doAddressOpt(); | 81 void doAddressOpt(); |
| 82 void doNopInsertion(); | 82 void doNopInsertion(); |
| 83 void genCode(); | 83 void genCode(); |
| 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() const; |
| 91 void emitIAS(Cfg *Func) const; | 91 void emitIAS() const; |
| 92 void dump(Cfg *Func) const; | 92 void dump() 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 = | 100 Cfg::IdentifierIndexType NameIndex = |
| 101 Cfg::IdentifierIndexInvalid; // index into Cfg::NodeNames table | 101 Cfg::IdentifierIndexInvalid; // index into Cfg::NodeNames table |
| 102 bool HasReturn = false; // does this block need an epilog? | 102 bool HasReturn = false; // does this block need an epilog? |
| 103 bool NeedsPlacement = false; | 103 bool NeedsPlacement = false; |
| 104 InstNumberT InstCountEstimate = 0; // rough instruction count estimate | 104 InstNumberT InstCountEstimate = 0; // rough instruction count estimate |
| 105 NodeList InEdges; // in no particular order | 105 NodeList InEdges; // in no particular order |
| 106 NodeList OutEdges; // in no particular order | 106 NodeList OutEdges; // in no particular order |
| 107 PhiList Phis; // unordered set of phi instructions | 107 PhiList Phis; // unordered set of phi instructions |
| 108 InstList Insts; // ordered list of non-phi instructions | 108 InstList Insts; // ordered list of non-phi instructions |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 } // end of namespace Ice | 111 } // end of namespace Ice |
| 112 | 112 |
| 113 #endif // SUBZERO_SRC_ICECFGNODE_H | 113 #endif // SUBZERO_SRC_ICECFGNODE_H |
| OLD | NEW |