| 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 |
| 11 // basic block as its instruction list, in-edge list, and out-edge | 11 // basic block as its instruction list, in-edge list, and out-edge |
| 12 // list. | 12 // list. |
| 13 // | 13 // |
| 14 //===----------------------------------------------------------------------===// | 14 //===----------------------------------------------------------------------===// |
| 15 | 15 |
| 16 #ifndef SUBZERO_SRC_ICECFGNODE_H | 16 #ifndef SUBZERO_SRC_ICECFGNODE_H |
| 17 #define SUBZERO_SRC_ICECFGNODE_H | 17 #define SUBZERO_SRC_ICECFGNODE_H |
| 18 | 18 |
| 19 #include "IceDefs.h" | 19 #include "IceDefs.h" |
| 20 #include "IceInst.h" // InstList traits |
| 20 | 21 |
| 21 namespace Ice { | 22 namespace Ice { |
| 22 | 23 |
| 23 class CfgNode { | 24 class CfgNode { |
| 24 CfgNode(const CfgNode &) = delete; | 25 CfgNode(const CfgNode &) = delete; |
| 25 CfgNode &operator=(const CfgNode &) = delete; | 26 CfgNode &operator=(const CfgNode &) = delete; |
| 26 | 27 |
| 27 public: | 28 public: |
| 28 static CfgNode *create(Cfg *Func, SizeT LabelIndex, IceString Name = "") { | 29 static CfgNode *create(Cfg *Func, SizeT LabelIndex, IceString Name = "") { |
| 29 return new (Func->allocate<CfgNode>()) CfgNode(Func, LabelIndex, Name); | 30 return new (Func->allocate<CfgNode>()) CfgNode(Func, LabelIndex, Name); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 InstNumberT InstCountEstimate; // rough instruction count estimate | 96 InstNumberT InstCountEstimate; // rough instruction count estimate |
| 96 NodeList InEdges; // in no particular order | 97 NodeList InEdges; // in no particular order |
| 97 NodeList OutEdges; // in no particular order | 98 NodeList OutEdges; // in no particular order |
| 98 PhiList Phis; // unordered set of phi instructions | 99 PhiList Phis; // unordered set of phi instructions |
| 99 InstList Insts; // ordered list of non-phi instructions | 100 InstList Insts; // ordered list of non-phi instructions |
| 100 }; | 101 }; |
| 101 | 102 |
| 102 } // end of namespace Ice | 103 } // end of namespace Ice |
| 103 | 104 |
| 104 #endif // SUBZERO_SRC_ICECFGNODE_H | 105 #endif // SUBZERO_SRC_ICECFGNODE_H |
| OLD | NEW |