Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: src/IceCfg.h

Issue 865973006: Subzero: Make thread_local work under MacOS 10.6. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: ATTRIBUTE_TLS --> ICE_ATTRIBUTE_TLS Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/IceCfg.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | src/IceCfg.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698