OLD | NEW |
1 //===- subzero/src/IceCfg.h - Control flow graph ----------------*- C++ -*-===// | 1 //===- subzero/src/IceCfg.h - Control flow graph ----------------*- 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 Cfg class, which represents the control flow | 10 // This file declares the Cfg class, which represents the control flow |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 void addImplicitArg(Variable *Arg); | 87 void addImplicitArg(Variable *Arg); |
88 const VarList &getImplicitArgs() const { return ImplicitArgs; } | 88 const VarList &getImplicitArgs() const { return ImplicitArgs; } |
89 | 89 |
90 // Miscellaneous accessors. | 90 // Miscellaneous accessors. |
91 TargetLowering *getTarget() const { return Target.get(); } | 91 TargetLowering *getTarget() const { return Target.get(); } |
92 VariablesMetadata *getVMetadata() const { return VMetadata.get(); } | 92 VariablesMetadata *getVMetadata() const { return VMetadata.get(); } |
93 Liveness *getLiveness() const { return Live.get(); } | 93 Liveness *getLiveness() const { return Live.get(); } |
94 template <typename T> T *getAssembler() const { | 94 template <typename T> T *getAssembler() const { |
95 return static_cast<T *>(TargetAssembler.get()); | 95 return static_cast<T *>(TargetAssembler.get()); |
96 } | 96 } |
97 bool UseIntegratedAssembler() const { | 97 bool useIntegratedAssembler() const { |
98 return getContext()->getFlags().UseIntegratedAssembler; | 98 return getContext()->getFlags().UseIntegratedAssembler; |
99 } | 99 } |
100 bool hasComputedFrame() const; | 100 bool hasComputedFrame() const; |
101 bool getFocusedTiming() const { return FocusedTiming; } | 101 bool getFocusedTiming() const { return FocusedTiming; } |
102 void setFocusedTiming() { FocusedTiming = true; } | 102 void setFocusedTiming() { FocusedTiming = true; } |
103 | 103 |
104 // Passes over the CFG. | 104 // Passes over the CFG. |
105 void translate(); | 105 void translate(); |
106 // After the CFG is fully constructed, iterate over the nodes and | 106 // After the CFG is fully constructed, iterate over the nodes and |
107 // compute the predecessor edges, in the form of | 107 // compute the predecessor edges, in the form of |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 // validating Variable::DefNode. Normally, a traversal over | 186 // validating Variable::DefNode. Normally, a traversal over |
187 // CfgNodes maintains this, but before global operations like | 187 // CfgNodes maintains this, but before global operations like |
188 // register allocation, resetCurrentNode() should be called to avoid | 188 // register allocation, resetCurrentNode() should be called to avoid |
189 // spurious validation failures. | 189 // spurious validation failures. |
190 const CfgNode *CurrentNode; | 190 const CfgNode *CurrentNode; |
191 }; | 191 }; |
192 | 192 |
193 } // end of namespace Ice | 193 } // end of namespace Ice |
194 | 194 |
195 #endif // SUBZERO_SRC_ICECFG_H | 195 #endif // SUBZERO_SRC_ICECFG_H |
OLD | NEW |