[LLVMdev] Transforming ConstantExprs to Instructions

Chris Lattner sabre at nondot.org
Wed Jun 18 22:19:03 PDT 2008

On Jun 18, 2008, at 1:36 AM, Matthijs Kooijman wrote:
>> Is it possible to design the pass to work with both?  The general  
>> approach
>> is to make stuff handle "User"s instead of Instructions.  It is  
>> much more
>> compile time efficient to just handle the two forms rather than  
>> converting
>> them back and forth.
> With both I assume you mean both GEP instrs and GEP constantexprs?  
> If so then
> yes, I am intending to make it work with both, and that's exactly  
> why I need
> to convert the constantexprs to instructions (Since, unless I'm very  
> much
> mistaken, a gepconstantexpr won't work with an alloca, so I can't  
> leave them
> intact).

What do you mean?  A constantexpr gep can be used as the size of an  


More information about the llvm-dev mailing list