getelementptr instruction

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?

Thanks a lot for ur help

Aparna Kotha
Graduate Student
Electrical and Computer Engineering department
University of Maryland, College Park

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

-Chris