| OLD | NEW |
| 1 //===- subzero/src/IceCfgNode.h - Control flow graph node -------*- C++ -*-===// | 1 //===- subzero/src/IceCfgNode.h - Control flow graph node -------*- 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 CfgNode class, which represents a single | 10 // This file declares the CfgNode class, which represents a single |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 void placePhiLoads(); | 59 void placePhiLoads(); |
| 60 void placePhiStores(); | 60 void placePhiStores(); |
| 61 void deletePhis(); | 61 void deletePhis(); |
| 62 void doAddressOpt(); | 62 void doAddressOpt(); |
| 63 void doNopInsertion(); | 63 void doNopInsertion(); |
| 64 void genCode(); | 64 void genCode(); |
| 65 void livenessLightweight(); | 65 void livenessLightweight(); |
| 66 bool liveness(Liveness *Liveness); | 66 bool liveness(Liveness *Liveness); |
| 67 void livenessPostprocess(LivenessMode Mode, Liveness *Liveness); | 67 void livenessPostprocess(LivenessMode Mode, Liveness *Liveness); |
| 68 void doBranchOpt(const CfgNode *NextNode); |
| 68 void emit(Cfg *Func) const; | 69 void emit(Cfg *Func) const; |
| 69 void dump(Cfg *Func) const; | 70 void dump(Cfg *Func) const; |
| 70 | 71 |
| 71 private: | 72 private: |
| 72 CfgNode(Cfg *Func, SizeT LabelIndex, IceString Name); | 73 CfgNode(Cfg *Func, SizeT LabelIndex, IceString Name); |
| 73 CfgNode(const CfgNode &) LLVM_DELETED_FUNCTION; | 74 CfgNode(const CfgNode &) LLVM_DELETED_FUNCTION; |
| 74 CfgNode &operator=(const CfgNode &) LLVM_DELETED_FUNCTION; | 75 CfgNode &operator=(const CfgNode &) LLVM_DELETED_FUNCTION; |
| 75 Cfg *const Func; | 76 Cfg *const Func; |
| 76 const SizeT Number; // label index | 77 const SizeT Number; // label index |
| 77 IceString Name; // for dumping only | 78 IceString Name; // for dumping only |
| 78 bool HasReturn; // does this block need an epilog? | 79 bool HasReturn; // does this block need an epilog? |
| 79 NodeList InEdges; // in no particular order | 80 NodeList InEdges; // in no particular order |
| 80 NodeList OutEdges; // in no particular order | 81 NodeList OutEdges; // in no particular order |
| 81 PhiList Phis; // unordered set of phi instructions | 82 PhiList Phis; // unordered set of phi instructions |
| 82 InstList Insts; // ordered list of non-phi instructions | 83 InstList Insts; // ordered list of non-phi instructions |
| 83 }; | 84 }; |
| 84 | 85 |
| 85 } // end of namespace Ice | 86 } // end of namespace Ice |
| 86 | 87 |
| 87 #endif // SUBZERO_SRC_ICECFGNODE_H | 88 #endif // SUBZERO_SRC_ICECFGNODE_H |
| OLD | NEW |