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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 void placePhiStores(); | 112 void placePhiStores(); |
113 void deletePhis(); | 113 void deletePhis(); |
114 void doAddressOpt(); | 114 void doAddressOpt(); |
115 void doArgLowering(); | 115 void doArgLowering(); |
116 void doNopInsertion(); | 116 void doNopInsertion(); |
117 void genCode(); | 117 void genCode(); |
118 void genFrame(); | 118 void genFrame(); |
119 void livenessLightweight(); | 119 void livenessLightweight(); |
120 void liveness(LivenessMode Mode); | 120 void liveness(LivenessMode Mode); |
121 bool validateLiveness() const; | 121 bool validateLiveness() const; |
| 122 void deleteRedundantAssignments(); |
122 void doBranchOpt(); | 123 void doBranchOpt(); |
123 | 124 |
124 // Manage the CurrentNode field, which is used for validating the | 125 // Manage the CurrentNode field, which is used for validating the |
125 // Variable::DefNode field during dumping/emitting. | 126 // Variable::DefNode field during dumping/emitting. |
126 void setCurrentNode(const CfgNode *Node) { CurrentNode = Node; } | 127 void setCurrentNode(const CfgNode *Node) { CurrentNode = Node; } |
127 void resetCurrentNode() { setCurrentNode(NULL); } | 128 void resetCurrentNode() { setCurrentNode(NULL); } |
128 const CfgNode *getCurrentNode() const { return CurrentNode; } | 129 const CfgNode *getCurrentNode() const { return CurrentNode; } |
129 | 130 |
130 void emit(); | 131 void emit(); |
131 void dump(const IceString &Message = ""); | 132 void dump(const IceString &Message = ""); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 // validating Variable::DefNode. Normally, a traversal over | 187 // validating Variable::DefNode. Normally, a traversal over |
187 // CfgNodes maintains this, but before global operations like | 188 // CfgNodes maintains this, but before global operations like |
188 // register allocation, resetCurrentNode() should be called to avoid | 189 // register allocation, resetCurrentNode() should be called to avoid |
189 // spurious validation failures. | 190 // spurious validation failures. |
190 const CfgNode *CurrentNode; | 191 const CfgNode *CurrentNode; |
191 }; | 192 }; |
192 | 193 |
193 } // end of namespace Ice | 194 } // end of namespace Ice |
194 | 195 |
195 #endif // SUBZERO_SRC_ICECFG_H | 196 #endif // SUBZERO_SRC_ICECFG_H |
OLD | NEW |