[LLVMdev] How to insert phi

Nick Lewycky nicholas at mxc.ca
Wed May 12 23:14:11 PDT 2010


Chayan Sarkar wrote:
> Hi,
> I am new to llvm. I have project in llvm. For that I need SSA form,
> which is already implemented in llvm. Basically I want to know which
> pass insert phi and converts it to SSA form in llvm .

http://llvm.org/docs/Passes.html#mem2reg which is 
lib/Transforms/Utils/PromoteMemoryToRegister.cpp.

Nick



More information about the llvm-dev mailing list