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