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