search for: resetsession

Displaying 3 results from an estimated 3 matches for "resetsession".

2010 Dec 13
0
[LLVMdev] tblgen internals
...ited constrained version of a global. Since we are not threaded anyway, we could turn the reference into a singleton for the duration of an initial parse and use session. The concept would be to instead make the reference a static pointer, make RecordKeeper a friend of Record, and add RecordKeeper::resetSession(void). resetSession would set the static pointer to itself. Asserts would also have to be added to the methods which needed a Record to have a non-NULL RecordKeeper pointer. Although we would in effect still be using a global, we would be allowing it to be controlled while simultaneously removing t...
2010 Dec 15
1
[LLVMdev] tblgen internals
...d version of a global. Since we are not threaded anyway, > we could turn the reference into a singleton for the duration of an initial parse and use session. > The concept would be to instead make the reference a static pointer, make RecordKeeper > a friend of Record, and add RecordKeeper::resetSession(void). resetSession would set > the static pointer to itself. Asserts would also have to be added to the methods which needed > a Record to have a non-NULL RecordKeeper pointer. Although we would in effect still be > using a global, we would be allowing it to be controlled while simultaneo...
2010 Dec 13
4
[LLVMdev] tblgen internals
Hi Chris, Thanks for the review! I believe I caught most of the syntax style issues with the attached patch. It only contains these style changes. On Dec 12, 2010, at 19:30, Chris Lattner wrote: > > On Dec 12, 2010, at 10:54 AM, Garrison Venn wrote: > >> >> Hey Chris, >> >> The following patch removes all global references to a RecordKeeper instance for the