| 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 #include "IceInst.h" // InstList traits |
| 21 | 21 |
| 22 namespace Ice { | 22 namespace Ice { |
| 23 | 23 |
| 24 class CfgNode { | 24 class CfgNode { |
| 25 CfgNode() = delete; |
| 25 CfgNode(const CfgNode &) = delete; | 26 CfgNode(const CfgNode &) = delete; |
| 26 CfgNode &operator=(const CfgNode &) = delete; | 27 CfgNode &operator=(const CfgNode &) = delete; |
| 27 | 28 |
| 28 public: | 29 public: |
| 29 static CfgNode *create(Cfg *Func, SizeT LabelIndex) { | 30 static CfgNode *create(Cfg *Func, SizeT LabelIndex) { |
| 30 return new (Func->allocate<CfgNode>()) CfgNode(Func, LabelIndex); | 31 return new (Func->allocate<CfgNode>()) CfgNode(Func, LabelIndex); |
| 31 } | 32 } |
| 32 | 33 |
| 33 // Access the label number and name for this node. | 34 // Access the label number and name for this node. |
| 34 SizeT getIndex() const { return Number; } | 35 SizeT getIndex() const { return Number; } |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 InstNumberT InstCountEstimate; // rough instruction count estimate | 99 InstNumberT InstCountEstimate; // rough instruction count estimate |
| 99 NodeList InEdges; // in no particular order | 100 NodeList InEdges; // in no particular order |
| 100 NodeList OutEdges; // in no particular order | 101 NodeList OutEdges; // in no particular order |
| 101 PhiList Phis; // unordered set of phi instructions | 102 PhiList Phis; // unordered set of phi instructions |
| 102 InstList Insts; // ordered list of non-phi instructions | 103 InstList Insts; // ordered list of non-phi instructions |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 } // end of namespace Ice | 106 } // end of namespace Ice |
| 106 | 107 |
| 107 #endif // SUBZERO_SRC_ICECFGNODE_H | 108 #endif // SUBZERO_SRC_ICECFGNODE_H |
| OLD | NEW |