| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 return static_cast<T *>(TargetAssembler.get()); | 128 return static_cast<T *>(TargetAssembler.get()); |
| 129 } | 129 } |
| 130 Assembler *releaseAssembler() { return TargetAssembler.release(); } | 130 Assembler *releaseAssembler() { return TargetAssembler.release(); } |
| 131 bool hasComputedFrame() const; | 131 bool hasComputedFrame() const; |
| 132 bool getFocusedTiming() const { return FocusedTiming; } | 132 bool getFocusedTiming() const { return FocusedTiming; } |
| 133 void setFocusedTiming() { FocusedTiming = true; } | 133 void setFocusedTiming() { FocusedTiming = true; } |
| 134 | 134 |
| 135 // Passes over the CFG. | 135 // Passes over the CFG. |
| 136 void translate(); | 136 void translate(); |
| 137 // After the CFG is fully constructed, iterate over the nodes and | 137 // After the CFG is fully constructed, iterate over the nodes and |
| 138 // compute the predecessor edges, in the form of | 138 // compute the predecessor and successor edges, in the form of |
| 139 // CfgNode::InEdges[]. | 139 // CfgNode::InEdges[] and CfgNode::OutEdges[]. |
| 140 void computePredecessors(); | 140 void computeInOutEdges(); |
| 141 void renumberInstructions(); | 141 void renumberInstructions(); |
| 142 void placePhiLoads(); | 142 void placePhiLoads(); |
| 143 void placePhiStores(); | 143 void placePhiStores(); |
| 144 void deletePhis(); | 144 void deletePhis(); |
| 145 void advancedPhiLowering(); | 145 void advancedPhiLowering(); |
| 146 void reorderNodes(); | 146 void reorderNodes(); |
| 147 void doAddressOpt(); | 147 void doAddressOpt(); |
| 148 void doArgLowering(); | 148 void doArgLowering(); |
| 149 void doNopInsertion(); | 149 void doNopInsertion(); |
| 150 void genCode(); | 150 void genCode(); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 // other uses are possible. | 222 // other uses are possible. |
| 223 ICE_TLS_DECLARE_FIELD(const Cfg *, CurrentCfg); | 223 ICE_TLS_DECLARE_FIELD(const Cfg *, CurrentCfg); |
| 224 | 224 |
| 225 public: | 225 public: |
| 226 static void TlsInit() { ICE_TLS_INIT_FIELD(CurrentCfg); } | 226 static void TlsInit() { ICE_TLS_INIT_FIELD(CurrentCfg); } |
| 227 }; | 227 }; |
| 228 | 228 |
| 229 } // end of namespace Ice | 229 } // end of namespace Ice |
| 230 | 230 |
| 231 #endif // SUBZERO_SRC_ICECFG_H | 231 #endif // SUBZERO_SRC_ICECFG_H |
| OLD | NEW |