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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 // CurrentNode is maintained during dumping/emitting just for | 206 // CurrentNode is maintained during dumping/emitting just for |
207 // validating Variable::DefNode. Normally, a traversal over | 207 // validating Variable::DefNode. Normally, a traversal over |
208 // CfgNodes maintains this, but before global operations like | 208 // CfgNodes maintains this, but before global operations like |
209 // register allocation, resetCurrentNode() should be called to avoid | 209 // register allocation, resetCurrentNode() should be called to avoid |
210 // spurious validation failures. | 210 // spurious validation failures. |
211 const CfgNode *CurrentNode; | 211 const CfgNode *CurrentNode; |
212 | 212 |
213 // Maintain a pointer in TLS to the current Cfg being translated. | 213 // Maintain a pointer in TLS to the current Cfg being translated. |
214 // This is primarily for accessing its allocator statelessly, but | 214 // This is primarily for accessing its allocator statelessly, but |
215 // other uses are possible. | 215 // other uses are possible. |
216 thread_local static const Cfg *CurrentCfg; | 216 ICE_ATTRIBUTE_TLS static const Cfg *CurrentCfg; |
217 }; | 217 }; |
218 | 218 |
219 } // end of namespace Ice | 219 } // end of namespace Ice |
220 | 220 |
221 #endif // SUBZERO_SRC_ICECFG_H | 221 #endif // SUBZERO_SRC_ICECFG_H |
OLD | NEW |