[LLVMdev] API CHANGE: Alloca with LLVMContext

Owen Anderson resistor at mac.com
Wed Jul 15 15:14:39 PDT 2009

On Jul 15, 2009, at 10:06 AM, Jeffrey Yasskin wrote:
> I must have missed something. I think you've said that all Types will
> have a Context, in which case the AllocaInst could pull the context
> from its type.

After considering this more, and some discussion on IRC, I've decided  
that this is a good way to proceed, and will hopefully obviate the  
need to pass LLVMContext's into most APIs, including the AllocaInst  

Look for the introduction of contexts-on-types in the near future, and  
the removal of LLVMContext parameters from methods where it can be  
inferred from a Type.


More information about the llvm-dev mailing list