[llvm-commits] [llvm] r116426 - /llvm/trunk/include/llvm/PassSupport.h

John McCall rjmccall at apple.com
Thu Oct 14 01:25:06 PDT 2010


On Oct 14, 2010, at 1:08 AM, Sebastian Redl wrote:

> On 13.10.2010 22:24, Owen Anderson wrote:
>> Author: resistor
>> Date: Wed Oct 13 15:24:34 2010
>> New Revision: 116426
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=116426&view=rev
>> Log:
>> Take advantage of C++'s thread-safe static local initialization to simplify thread-safe pass initialization.
>> 
> There's no such thing in C++03! GCC has it, but MS's static local 
> initialization not thread-safe.

While I agree with Sebastian, I wonder if we care.  Is there any good
reason to not just require the user to ensure that pass initialization
is thread-safe?  "Don't try to concurrently initialize the standard pass
registry" does not seem like an unreasonable constraint.

John.



More information about the llvm-commits mailing list