[LLVMdev] RFC: Constant Creation API
clattner at apple.com
Fri Jul 24 10:03:54 PDT 2009
On Jul 24, 2009, at 9:30 AM, Duncan Sands wrote:
>> The ones that don't can be static functions on the type class that
>> take a context. For example, Type::Int32Ty needs to become a
>> that takes a context at some point.
> Why is that? If it is read-only then it should be possible to share
> it between all threads.
Type's aren't readonly, see all the mutable fields in them. While we
might be able to get away with a special case for these, I'd rather
have a clean model where no IR is shared across contexts.
More information about the llvm-dev