| 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 13 matching lines...) Expand all  Loading... | 
| 24 class CfgNode { | 24 class CfgNode { | 
| 25   CfgNode() = delete; | 25   CfgNode() = delete; | 
| 26   CfgNode(const CfgNode &) = delete; | 26   CfgNode(const CfgNode &) = delete; | 
| 27   CfgNode &operator=(const CfgNode &) = delete; | 27   CfgNode &operator=(const CfgNode &) = delete; | 
| 28 | 28 | 
| 29 public: | 29 public: | 
| 30   static CfgNode *create(Cfg *Func, SizeT LabelIndex) { | 30   static CfgNode *create(Cfg *Func, SizeT LabelIndex) { | 
| 31     return new (Func->allocate<CfgNode>()) CfgNode(Func, LabelIndex); | 31     return new (Func->allocate<CfgNode>()) CfgNode(Func, LabelIndex); | 
| 32   } | 32   } | 
| 33 | 33 | 
|  | 34   Cfg *getCfg() const { return Func; } | 
|  | 35 | 
| 34   /// Access the label number and name for this node. | 36   /// Access the label number and name for this node. | 
| 35   SizeT getIndex() const { return Number; } | 37   SizeT getIndex() const { return Number; } | 
| 36   void resetIndex(SizeT NewNumber) { Number = NewNumber; } | 38   void resetIndex(SizeT NewNumber) { Number = NewNumber; } | 
| 37   IceString getName() const; | 39   IceString getName() const; | 
| 38   void setName(const IceString &NewName) { | 40   void setName(const IceString &NewName) { | 
| 39     // Make sure that the name can only be set once. | 41     // Make sure that the name can only be set once. | 
| 40     assert(NameIndex == Cfg::IdentifierIndexInvalid); | 42     assert(NameIndex == Cfg::IdentifierIndexInvalid); | 
| 41     if (!NewName.empty()) | 43     if (!NewName.empty()) | 
| 42       NameIndex = Func->addIdentifierName(NewName); | 44       NameIndex = Func->addIdentifierName(NewName); | 
| 43   } | 45   } | 
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 123   InstNumberT InstCountEstimate = 0; /// rough instruction count estimate | 125   InstNumberT InstCountEstimate = 0; /// rough instruction count estimate | 
| 124   NodeList InEdges;                  /// in no particular order | 126   NodeList InEdges;                  /// in no particular order | 
| 125   NodeList OutEdges;                 /// in no particular order | 127   NodeList OutEdges;                 /// in no particular order | 
| 126   PhiList Phis;                      /// unordered set of phi instructions | 128   PhiList Phis;                      /// unordered set of phi instructions | 
| 127   InstList Insts;                    /// ordered list of non-phi instructions | 129   InstList Insts;                    /// ordered list of non-phi instructions | 
| 128 }; | 130 }; | 
| 129 | 131 | 
| 130 } // end of namespace Ice | 132 } // end of namespace Ice | 
| 131 | 133 | 
| 132 #endif // SUBZERO_SRC_ICECFGNODE_H | 134 #endif // SUBZERO_SRC_ICECFGNODE_H | 
| OLD | NEW | 
|---|