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

Owen Anderson resistor at me.com
Thu Oct 14 10:30:46 PDT 2010


On Oct 14, 2010, at 1:25 AM, John McCall wrote:
> 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.

The problem is that we're trying to do lazy implicit initialization, hidden in the pass constructors.  It's not unreasonable for users to be instantiating passes on different threads.

--Owen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20101014/46336d61/attachment.html>


More information about the llvm-commits mailing list