OLD | NEW |
1 //===- subzero/src/IceCfg.h - Control flow graph ----------------*- C++ -*-===// | 1 //===- subzero/src/IceCfg.h - Control flow graph ----------------*- 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 Cfg class, which represents the control flow | 10 // This file declares the Cfg class, which represents the control flow |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // After the CFG is fully constructed, iterate over the nodes and | 81 // After the CFG is fully constructed, iterate over the nodes and |
82 // compute the predecessor edges, in the form of | 82 // compute the predecessor edges, in the form of |
83 // CfgNode::InEdges[]. | 83 // CfgNode::InEdges[]. |
84 void computePredecessors(); | 84 void computePredecessors(); |
85 void renumberInstructions(); | 85 void renumberInstructions(); |
86 void placePhiLoads(); | 86 void placePhiLoads(); |
87 void placePhiStores(); | 87 void placePhiStores(); |
88 void deletePhis(); | 88 void deletePhis(); |
89 void doAddressOpt(); | 89 void doAddressOpt(); |
90 void doArgLowering(); | 90 void doArgLowering(); |
| 91 void doNopInsertion(); |
91 void genCode(); | 92 void genCode(); |
92 void genFrame(); | 93 void genFrame(); |
93 void livenessLightweight(); | 94 void livenessLightweight(); |
94 void liveness(LivenessMode Mode); | 95 void liveness(LivenessMode Mode); |
95 bool validateLiveness() const; | 96 bool validateLiveness() const; |
96 | 97 |
97 // Manage the CurrentNode field, which is used for validating the | 98 // Manage the CurrentNode field, which is used for validating the |
98 // Variable::DefNode field during dumping/emitting. | 99 // Variable::DefNode field during dumping/emitting. |
99 void setCurrentNode(const CfgNode *Node) { CurrentNode = Node; } | 100 void setCurrentNode(const CfgNode *Node) { CurrentNode = Node; } |
100 const CfgNode *getCurrentNode() const { return CurrentNode; } | 101 const CfgNode *getCurrentNode() const { return CurrentNode; } |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 // avoid spurious validation failures. | 158 // avoid spurious validation failures. |
158 const CfgNode *CurrentNode; | 159 const CfgNode *CurrentNode; |
159 | 160 |
160 Cfg(const Cfg &) LLVM_DELETED_FUNCTION; | 161 Cfg(const Cfg &) LLVM_DELETED_FUNCTION; |
161 Cfg &operator=(const Cfg &) LLVM_DELETED_FUNCTION; | 162 Cfg &operator=(const Cfg &) LLVM_DELETED_FUNCTION; |
162 }; | 163 }; |
163 | 164 |
164 } // end of namespace Ice | 165 } // end of namespace Ice |
165 | 166 |
166 #endif // SUBZERO_SRC_ICECFG_H | 167 #endif // SUBZERO_SRC_ICECFG_H |
OLD | NEW |