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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 void placePhiLoads(); | 74 void placePhiLoads(); |
75 void placePhiStores(); | 75 void placePhiStores(); |
76 void deletePhis(); | 76 void deletePhis(); |
77 void advancedPhiLowering(); | 77 void advancedPhiLowering(); |
78 void doAddressOpt(); | 78 void doAddressOpt(); |
79 void doNopInsertion(); | 79 void doNopInsertion(); |
80 void genCode(); | 80 void genCode(); |
81 void livenessLightweight(); | 81 void livenessLightweight(); |
82 bool liveness(Liveness *Liveness); | 82 bool liveness(Liveness *Liveness); |
83 void livenessPostprocess(LivenessMode Mode, Liveness *Liveness); | 83 void livenessAddIntervals(Liveness *Liveness, InstNumberT FirstInstNum, |
| 84 InstNumberT LastInstNum); |
84 void contractIfEmpty(); | 85 void contractIfEmpty(); |
85 void doBranchOpt(const CfgNode *NextNode); | 86 void doBranchOpt(const CfgNode *NextNode); |
86 void emit(Cfg *Func) const; | 87 void emit(Cfg *Func) const; |
87 void emitIAS(Cfg *Func) const; | 88 void emitIAS(Cfg *Func) const; |
88 void dump(Cfg *Func) const; | 89 void dump(Cfg *Func) const; |
89 | 90 |
90 private: | 91 private: |
91 CfgNode(Cfg *Func, SizeT LabelIndex); | 92 CfgNode(Cfg *Func, SizeT LabelIndex); |
92 Cfg *const Func; | 93 Cfg *const Func; |
93 const SizeT Number; // label index | 94 const SizeT Number; // label index |
94 Cfg::IdentifierIndexType NameIndex; // index into Cfg::NodeNames table | 95 Cfg::IdentifierIndexType NameIndex; // index into Cfg::NodeNames table |
95 bool HasReturn; // does this block need an epilog? | 96 bool HasReturn; // does this block need an epilog? |
96 bool NeedsPlacement; | 97 bool NeedsPlacement; |
97 InstNumberT InstCountEstimate; // rough instruction count estimate | 98 InstNumberT InstCountEstimate; // rough instruction count estimate |
98 NodeList InEdges; // in no particular order | 99 NodeList InEdges; // in no particular order |
99 NodeList OutEdges; // in no particular order | 100 NodeList OutEdges; // in no particular order |
100 PhiList Phis; // unordered set of phi instructions | 101 PhiList Phis; // unordered set of phi instructions |
101 InstList Insts; // ordered list of non-phi instructions | 102 InstList Insts; // ordered list of non-phi instructions |
102 }; | 103 }; |
103 | 104 |
104 } // end of namespace Ice | 105 } // end of namespace Ice |
105 | 106 |
106 #endif // SUBZERO_SRC_ICECFGNODE_H | 107 #endif // SUBZERO_SRC_ICECFGNODE_H |
OLD | NEW |