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 -- -- Aparna -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090410/49208b9c/attachment.html>
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