[LLVMdev] Alloca with LLVMContext

John Criswell criswell at cs.uiuc.edu
Wed Jul 15 08:14:55 PDT 2009


Dear All,

Is there a reason why the AllocaInst constructor takes an LLVMContext
argument?  Can't it just determine the context from either the basic
block or instruction pointer argument?

If the constructor can infer the context automatically, that would save
one API change.

If the constructor can't infer it, would it be possible to make the
context the last parameter and have it use a default LLVMContext (say,
the one from getGlobalContext())?

Either of these would ease the transition effort.

-- John T.




More information about the llvm-dev mailing list