[LLVMdev] getelementptr instruction

Chris Lattner clattner at apple.com
Fri Apr 10 09:43:17 PDT 2009


On Apr 10, 2009, at 9:24 AM, aparna kotha wrote:

> All:
>
> I am looking at a optimization which requires me to lower the  
> getelementptr instruction in llvm. Is there a way to do this in llvm  
> or do i have to write a new pass for this?

Take a look at the EmitGEPOffset function in the instcombine pass.

-Chris



More information about the llvm-dev mailing list