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 /// \file | 10 /// \file |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 /// \name Access predecessor and successor edge lists. | 69 /// \name Access predecessor and successor edge lists. |
70 /// @{ | 70 /// @{ |
71 const NodeList &getInEdges() const { return InEdges; } | 71 const NodeList &getInEdges() const { return InEdges; } |
72 const NodeList &getOutEdges() const { return OutEdges; } | 72 const NodeList &getOutEdges() const { return OutEdges; } |
73 /// @} | 73 /// @} |
74 | 74 |
75 /// \name Manage the instruction list. | 75 /// \name Manage the instruction list. |
76 /// @{ | 76 /// @{ |
77 InstList &getInsts() { return Insts; } | 77 InstList &getInsts() { return Insts; } |
78 PhiList &getPhis() { return Phis; } | 78 PhiList &getPhis() { return Phis; } |
| 79 const InstList &getInsts() const { return Insts; } |
| 80 const PhiList &getPhis() const { return Phis; } |
79 void appendInst(Inst *Instr); | 81 void appendInst(Inst *Instr); |
80 void renumberInstructions(); | 82 void renumberInstructions(); |
81 /// Rough and generally conservative estimate of the number of instructions in | 83 /// Rough and generally conservative estimate of the number of instructions in |
82 /// the block. It is updated when an instruction is added, but not when | 84 /// the block. It is updated when an instruction is added, but not when |
83 /// deleted. It is recomputed during renumberInstructions(). | 85 /// deleted. It is recomputed during renumberInstructions(). |
84 InstNumberT getInstCountEstimate() const { return InstCountEstimate; } | 86 InstNumberT getInstCountEstimate() const { return InstCountEstimate; } |
85 /// @} | 87 /// @} |
86 | 88 |
87 /// \name Manage predecessors and successors. | 89 /// \name Manage predecessors and successors. |
88 /// @{ | 90 /// @{ |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 InstNumberT InstCountEstimate = 0; /// rough instruction count estimate | 143 InstNumberT InstCountEstimate = 0; /// rough instruction count estimate |
142 NodeList InEdges; /// in no particular order | 144 NodeList InEdges; /// in no particular order |
143 NodeList OutEdges; /// in no particular order | 145 NodeList OutEdges; /// in no particular order |
144 PhiList Phis; /// unordered set of phi instructions | 146 PhiList Phis; /// unordered set of phi instructions |
145 InstList Insts; /// ordered list of non-phi instructions | 147 InstList Insts; /// ordered list of non-phi instructions |
146 }; | 148 }; |
147 | 149 |
148 } // end of namespace Ice | 150 } // end of namespace Ice |
149 | 151 |
150 #endif // SUBZERO_SRC_ICECFGNODE_H | 152 #endif // SUBZERO_SRC_ICECFGNODE_H |
OLD | NEW |