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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 doNopInsertion(); |
92 void genCode(); | 92 void genCode(); |
93 void genFrame(); | 93 void genFrame(); |
94 void livenessLightweight(); | 94 void livenessLightweight(); |
95 void liveness(LivenessMode Mode); | 95 void liveness(LivenessMode Mode); |
96 bool validateLiveness() const; | 96 bool validateLiveness() const; |
| 97 void doBranchOpt(); |
97 | 98 |
98 // Manage the CurrentNode field, which is used for validating the | 99 // Manage the CurrentNode field, which is used for validating the |
99 // Variable::DefNode field during dumping/emitting. | 100 // Variable::DefNode field during dumping/emitting. |
100 void setCurrentNode(const CfgNode *Node) { CurrentNode = Node; } | 101 void setCurrentNode(const CfgNode *Node) { CurrentNode = Node; } |
101 const CfgNode *getCurrentNode() const { return CurrentNode; } | 102 const CfgNode *getCurrentNode() const { return CurrentNode; } |
102 | 103 |
103 void emit(); | 104 void emit(); |
104 void dump(const IceString &Message = ""); | 105 void dump(const IceString &Message = ""); |
105 | 106 |
106 // Allocate data of type T using the per-Cfg allocator. | 107 // Allocate data of type T using the per-Cfg allocator. |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 // avoid spurious validation failures. | 159 // avoid spurious validation failures. |
159 const CfgNode *CurrentNode; | 160 const CfgNode *CurrentNode; |
160 | 161 |
161 Cfg(const Cfg &) LLVM_DELETED_FUNCTION; | 162 Cfg(const Cfg &) LLVM_DELETED_FUNCTION; |
162 Cfg &operator=(const Cfg &) LLVM_DELETED_FUNCTION; | 163 Cfg &operator=(const Cfg &) LLVM_DELETED_FUNCTION; |
163 }; | 164 }; |
164 | 165 |
165 } // end of namespace Ice | 166 } // end of namespace Ice |
166 | 167 |
167 #endif // SUBZERO_SRC_ICECFG_H | 168 #endif // SUBZERO_SRC_ICECFG_H |
OLD | NEW |