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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 doBranchOpt(const CfgNode *NextNode); |
69 void emit(Cfg *Func) const; | 69 void emit(Cfg *Func) const; |
70 void dump(Cfg *Func) const; | 70 void dump(Cfg *Func) const; |
71 | 71 |
72 private: | 72 private: |
73 CfgNode(Cfg *Func, SizeT LabelIndex, IceString Name); | 73 CfgNode(Cfg *Func, SizeT LabelIndex, IceString Name); |
74 CfgNode(const CfgNode &) LLVM_DELETED_FUNCTION; | 74 CfgNode(const CfgNode &) = delete; |
75 CfgNode &operator=(const CfgNode &) LLVM_DELETED_FUNCTION; | 75 CfgNode &operator=(const CfgNode &) = delete; |
76 Cfg *const Func; | 76 Cfg *const Func; |
77 const SizeT Number; // label index | 77 const SizeT Number; // label index |
78 IceString Name; // for dumping only | 78 IceString Name; // for dumping only |
79 bool HasReturn; // does this block need an epilog? | 79 bool HasReturn; // does this block need an epilog? |
80 NodeList InEdges; // in no particular order | 80 NodeList InEdges; // in no particular order |
81 NodeList OutEdges; // in no particular order | 81 NodeList OutEdges; // in no particular order |
82 PhiList Phis; // unordered set of phi instructions | 82 PhiList Phis; // unordered set of phi instructions |
83 InstList Insts; // ordered list of non-phi instructions | 83 InstList Insts; // ordered list of non-phi instructions |
84 }; | 84 }; |
85 | 85 |
86 } // end of namespace Ice | 86 } // end of namespace Ice |
87 | 87 |
88 #endif // SUBZERO_SRC_ICECFGNODE_H | 88 #endif // SUBZERO_SRC_ICECFGNODE_H |
OLD | NEW |