| 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 /// \file | 10 /// \file |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 void advancedPhiLowering(); | 89 void advancedPhiLowering(); |
| 90 void doAddressOpt(); | 90 void doAddressOpt(); |
| 91 void doNopInsertion(); | 91 void doNopInsertion(); |
| 92 void genCode(); | 92 void genCode(); |
| 93 void livenessLightweight(); | 93 void livenessLightweight(); |
| 94 bool liveness(Liveness *Liveness); | 94 bool liveness(Liveness *Liveness); |
| 95 void livenessAddIntervals(Liveness *Liveness, InstNumberT FirstInstNum, | 95 void livenessAddIntervals(Liveness *Liveness, InstNumberT FirstInstNum, |
| 96 InstNumberT LastInstNum); | 96 InstNumberT LastInstNum); |
| 97 void contractIfEmpty(); | 97 void contractIfEmpty(); |
| 98 void doBranchOpt(const CfgNode *NextNode); | 98 void doBranchOpt(const CfgNode *NextNode); |
| 99 void emit(Cfg *Func) const; | 99 void emit() const; |
| 100 void emitIAS(Cfg *Func) const; | 100 void emitIAS() const; |
| 101 void dump(Cfg *Func) const; | 101 void dump() const; |
| 102 | 102 |
| 103 void profileExecutionCount(VariableDeclaration *Var); | 103 void profileExecutionCount(VariableDeclaration *Var); |
| 104 | 104 |
| 105 private: | 105 private: |
| 106 CfgNode(Cfg *Func, SizeT LabelIndex); | 106 CfgNode(Cfg *Func, SizeT LabelIndex); |
| 107 Cfg *const Func; | 107 Cfg *const Func; |
| 108 SizeT Number; /// label index | 108 SizeT Number; /// label index |
| 109 Cfg::IdentifierIndexType NameIndex = | 109 Cfg::IdentifierIndexType NameIndex = |
| 110 Cfg::IdentifierIndexInvalid; /// index into Cfg::NodeNames table | 110 Cfg::IdentifierIndexInvalid; /// index into Cfg::NodeNames table |
| 111 bool HasReturn = false; /// does this block need an epilog? | 111 bool HasReturn = false; /// does this block need an epilog? |
| 112 bool NeedsPlacement = false; | 112 bool NeedsPlacement = false; |
| 113 InstNumberT InstCountEstimate = 0; /// rough instruction count estimate | 113 InstNumberT InstCountEstimate = 0; /// rough instruction count estimate |
| 114 NodeList InEdges; /// in no particular order | 114 NodeList InEdges; /// in no particular order |
| 115 NodeList OutEdges; /// in no particular order | 115 NodeList OutEdges; /// in no particular order |
| 116 PhiList Phis; /// unordered set of phi instructions | 116 PhiList Phis; /// unordered set of phi instructions |
| 117 InstList Insts; /// ordered list of non-phi instructions | 117 InstList Insts; /// ordered list of non-phi instructions |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 } // end of namespace Ice | 120 } // end of namespace Ice |
| 121 | 121 |
| 122 #endif // SUBZERO_SRC_ICECFGNODE_H | 122 #endif // SUBZERO_SRC_ICECFGNODE_H |
| OLD | NEW |